Estimating Pi using the Monte Carlo Method - Python Coding Challenge

preview_player
Показать описание
Python Coding Challenge - Estimating Pi using the Monte Carlo Method

The method we are going to use to calculate the Pi using random numbers is called the Monte Carlo simulation, where we use randomness to solve mathematical problems. Monte Carlo simulations are used in many fields such as finance, physics, computer graphics and others.

We are going to use Python and the Pygame module.

0:00 Intro
0:34 Estimate Pi with Monte Carlo Simulation
2:16 Running the Simulation
4:34 The Algorithm
5:21 Python Implementation
8:05 Parallel Processing
Рекомендации по теме
Комментарии
Автор

I hope you took away lots from this video. Let me know below!
PS: I'm creating an OOP course! Sign up at for early access and a 50% launch discount.

programmingwithnick
Автор

Amazing thank you please more like this

oriyogi
Автор

I would love to see a video of you doing this script from scratch.

bblevins
Автор

Lovely work and a very helpful explanation, thank you. I am curious about the small and seemingly consistent downward bias in the result (if i understand, multiple runs of 50k pts all gave values ~0.3 ppt or so low, yes?). Does this resolve at larger n, or are we seeing some non-ideality somewhere in the system, like in the RNG or something?

aclearlight
Автор

Really love this vid! Thank you so much, it is the best one about this topic.
Would you mind, if I use a part of your graphics for my presentation I have to give in a few weeks? They are really great, I couldn’t do better. Would help me a lot :)

nofront
Автор

αμα δεν θελουμε να έχουμε ολο τον κυκλο για να πεσουν τα σημεια μεσα ή εχουμε κάποιο αλλο σχήμα οχι απο τα γνωστα τοτε πως προσεγγιζουμε το προβλημα για να βρουμε το εμβαδον?

lemonidisefthymis