Skip to content

This repository contains an R simulation of Buffon's Needle problem, a classic probability experiment. The simulation visualizes the needle drops and estimates the probability of intersection with parallel lines.

Notifications You must be signed in to change notification settings

andreeaony/Buffon-s-Needle-Problem-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Buffon's Needle Problem - Simple version

This project simulates Buffon's Needle problem, a probability experiment that studies the chances of a randomly dropped needle crossing parallel lines. The probability of intersection depends on the needle’s length and the angle at which it falls.

1. The needle crosses the line - example

image image

2. The needle doesn't cross the line - example

image image

Buffon's Needle Problem - Cross version

Instead of a single needle, a cross (two needles) is dropped. The cross has a higher probability of intersecting a line.

image image

These programs...

  • Simulates multiple needle/cross drops
  • Generates a visual plot of the results
  • Computes the probability of intersection based on the simulation

About

This repository contains an R simulation of Buffon's Needle problem, a classic probability experiment. The simulation visualizes the needle drops and estimates the probability of intersection with parallel lines.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages