Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 1.49 KB

README.md

File metadata and controls

18 lines (12 loc) · 1.49 KB

Coin Toss Simulator

This is a simple application built using Streamlit that simulates random coin flips. It allows users to specify the number of trials and observe the resulting outcomes in real-time through a line chart.

Description: The Coin Toss Simulator is a Python application designed to simulate random coin flips. It utilizes the scipy.stats module for statistical functions and Streamlit for the web interface. The user interface allows users to specify the number of trials for the simulation. Upon clicking the 'Run' button, the application conducts the specified number of trials and displays the outcome of each trial in real-time using a line chart.

The application is designed to provide a simple and interactive way to visualize the results of multiple coin flips and observe how the frequency of heads (or tails) evolves over the course of the simulation. It serves as a demonstration of using Streamlit for building interactive data science applications.

How to Use:

  1. Clone the repository to your local machine.
  2. Install the required dependencies by running pip install -r requirements.txt.
  3. Run the application using Streamlit by executing streamlit run coin_toss_simulator.py in your terminal.
  4. Adjust the slider to specify the number of trials.
  5. Click the 'Run' button to start the simulation and observe the results.

✧ Feel free to explore and modify the code to suit your needs or extend the functionality of the application.