Git Product home page Git Product logo

basicstatisticsandprobability's Introduction

Basic Statistics and Probability using Python 3.0

This module is dedicated to the formulation, usage and visualizations of statistical theory, models and formulas.

Coin Toss Problemset

  1. Think about one experiment where you toss a coin for Ntrial = 200 times, with each toss having a 50% probability for the head. In this experiment, you count the total number of heads Nhead. Write a python code that gives you Nhead. This is a random number and should provide a different number if the experiment is run again.
  2. Now run this experiment 1000 times. Plot a histogram of the 1000 Nhead values from these 1000 experiments. What distribution does the histogram look like?
  3. What is the mean and standard deviation of these 1000 numbers? Does it match the predicted mean and standard deviation using formulae for the Binomial distribution?
  4. Now, think about a coin for which the probability of a head is 0.1%. You toss the coin Ntrial = 10000 times for one experiment. If you repeat the experiment 1000 times, what does the distribution look like? Take the mean and standard deviations of the 1000 Nhead values. Do they match the predicted mean and standard deviation of the Poisson distribution?
  5. Think about the average probability for one resident in Dhaka city to visit the Star Kabab restaurant between 7-8pm. The average probability is not zero. Otherwise, the restaurant won’t have any customers, but we know that they do have customers every day at that time. The number of customers between 7-8pm for different days will be different random numbers. If you collect 50 of these numbers from 50 different days, what distribution would these numbers follow?
  6. If you have counted the number of customers between 7-8pm to be 100 today, what is the expected number and uncertainty for tomorrow 7-8pm?

basicstatisticsandprobability's People

Contributors

kmshariat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.