Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Finding the Value of Pi from a Random Walk Using Python

Dot Physics via YouTube

Overview

Explore a Python walkthrough that demonstrates how to determine the value of pi using a one-dimensional random walk. Learn to create code for a 1D random walk, implement counters, and generate graphs to visualize the process. Extend your understanding by examining additional examples of 3D and 2D random walks in Python. Follow along with provided code samples and gain insights into the mathematical concepts behind this unique approach to calculating pi.

Syllabus

Intro
Onedimensional walk
Making a counter
Making a graph
Making a 3D walk
Making a 2D walk

Taught by

Dot Physics

Reviews

Start your review of Finding the Value of Pi from a Random Walk Using Python

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.