The binomial distribution

Introduction to Statistics

George Boorman

Curriculum Manager, DataCamp

Coin flipping

Hand flipping coin with one side H with 50% chance, other side T with 50% chance.png

Introduction to Statistics

Binary outcomes

H and T, 1 and 0, Success and Failure, Win and Loss.png

Introduction to Statistics

One coin flip many times

Coin Flip Result
1 0
2 0
3 0
4 1
5 0
6 0
7 1
8 0
9 1
10 1
Introduction to Statistics

Binomial distribution

  • Probability distribution of the number of successes in a sequence of independent events

  • For example, the number of heads in a sequence of coin flips

  • Described by $n$ and $p$

    • $n$: total number of events
    • $p$: probability of success
Introduction to Statistics

Binomial distribution

Plot of binomial distribution with n=10, p=0.5.png

Introduction to Statistics

Probability of 7 or fewer heads

binomial_distribution_with_successes_less_than_or_equal_to_7_highlighted_probability_equals_99_point_four_five_percent.png

Introduction to Statistics

Probability of 8 or more heads

normal_distribution_shaded_blue_for_successes_above_seven_equal_to_five_point_five_five_percent.png

Introduction to Statistics

Expected value

${Expected \ value} = n \times p$

Expected number of heads out of 10 flips $= 10 \times 0.5 = 5$

If we don't know $p$, but know $n$ and the expected value:

${p} = \frac{expected \ value}{n} $

Introduction to Statistics

Independence

The binomial distribution is a probability distribution of the number of successes in a sequence of independent events

Box of tickets with three zeros and three ones. 50% chance of zero, 50% chance of one.png

Introduction to Statistics

Independence

The binomial distribution is a probability distribution of the number of successes in a sequence of independent events

 

Probabilities of second event are altered due to outcome of the first

 

If events are not independent, the binomial distribution does not apply!

Box of tickets with three zeros and two ones. 60% chance of zero, 40% chance of one.png

Introduction to Statistics

General applications

The binomial distribution can be used for independent events producing binary outcomes

  • Clinical trial measuring drug effectiveness
    • Effective or not

 

  • Betting on the result of a sports match
    • Bettor can win or lose

pills_spilling_out_of_a_container.jpg

1 Image credit: https://unsplash.com/@towfiqu999999
Introduction to Statistics

Let's practice!

Introduction to Statistics

Preparing Video For Download...