Skip to content

Nurik-tech/monte-carlo-simulation-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monte Carlo Simulation in C++

A C++ simulation project that uses the Monte Carlo method to estimate probabilities through repeated random experiments.


About The Project

I built this project to better understand how simulations can be used to estimate mathematical probabilities.

The program runs repeated randomized trials, records the outcomes, and uses the results to approximate probability values. This helped me practice C++ programming, probability concepts, loops, random number generation, and basic statistical thinking.


Tech Stack

  • C++
  • Probability
  • Random Number Generation
  • Simulation
  • Statistical Analysis

Features

  • Runs repeated randomized experiments
  • Estimates probability based on simulation results
  • Uses C++ logic for calculation and outcome tracking
  • Demonstrates the Monte Carlo method in a practical way
  • Shows how probability can be approximated using code

Screenshot

Monte Carlo Simulation Screenshot


How To Run

Compile the program:

g++ main.cpp -o monte-carlo

Run the program:

./monte-carlo

If your main file has a different name, replace main.cpp with the correct filename.


What I Learned

While building this project, I improved my understanding of:

  • how Monte Carlo simulations work
  • random number generation in C++
  • probability estimation through repeated trials
  • writing cleaner calculation logic
  • using code to model mathematical problems

Contact

Portfolio: https://anurika.dev
GitHub: https://github.com/Nurik-tech
LinkedIn: https://www.linkedin.com/in/anurika-osuji/

About

C++ Monte Carlo simulation project for probability estimation and outcome analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors