Skip to content

A Python project simulates drawing balls from a hat and calculates the probability of meeting criteria based on user-defined expectations.

Notifications You must be signed in to change notification settings

aymane66/probabilities-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Probability Calculator

This Python project simulates drawing balls from a hat and calculates the probability of meeting certain criteria based on user-defined expectations.

Installation

  1. Ensure you have Python installed.
  2. Clone this repository in your machine.
    git clone https://github.com/aymane66/probabilities-calculator.git
  3. Move to project directory.
    cd probabilities-calculator
    
    

Usage

  • Open main.py to see an example of how to use the probability calculator.
  • Customize the hat and experiment parameters based on your requirements.

Features

  • Random Seed: The random.seed function is used to ensure reproducibility of the experiments.

  • Experiment Simulation: The experiment function simulates drawing balls from the hat for a specified number of experiments.

  • Probability Calculation: The code calculates the probability of meeting user-defined expectations based on the experiment results.

About

A Python project simulates drawing balls from a hat and calculates the probability of meeting criteria based on user-defined expectations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages