laurita / law_of_large_numbers_demo

Illustration of the law of large numbers using a run of rolls of a single die

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Law of Large Numbers Demo

In probability theory, the law of large numbers (LLN) is a theorem that describes the result of performing the same experiment a large number of times. This projects illustrates the law of large numbers using a run of rolls of a single die.

Requirements

Matplotlib is required.

Usage

import law_of_large_numbers_demo as loln

def run():
    numRolls = 2000
    lolnDemo = loln.LawOfLargeNumbersDemo(numRolls)

    lolnDemo.run_demo()

The code above produces the following graph. mean dice roll

About

Illustration of the law of large numbers using a run of rolls of a single die


Languages

Language:Python 100.0%