Free preview
38 lessons
Essential Probability & Statistics for ML
Free preview
Essential Probability & Statistics for ML · 38 lessons
No surprise gaps
Actually remember it
Skip what you know
One subscription. All learning paths included.
Our content is best on a larger screen
Equally likely outcomes
We've seen that two identical dice, once labelled, give outcomes. Grouping them by the numbers that appear gives events instead: "a and a " holds and , while "double " holds only .
Leibniz, one of the two founders of calculus, claimed that "it is equally likely to throw twelve points, than to throw eleven; because one or the other can be done in only one manner". He was wrong. A sum of comes from die showing and die showing , or the other way round, while a sum of comes only from two s. Identical dice are still two separate dice; labelling them lets us count both ways.
This is where the difference between an outcome and an event matters. An outcome is one result the experiment can produce. An event is a set of outcomes, picked out by a description we choose: "a sum of " is the event . Leibniz treated events as if they were outcomes.
Definition
The outcomes of a random experiment are equally likely when every outcome in the sample space has the same chance of occurring.
The words fair, chosen at random, shuffled and dealt state that the labelled outcomes are equally likely. A stated bias, such as a die weighted towards , states that they are not.
For two fair dice, the outcomes are equally likely. An event's chance depends on how many of them it holds, so "a and a " is twice as likely as "double ", and the events are not equally likely.
Two fair coins are tossed. Are heads, head and heads equally likely?
Solution
We label the coins, coin and coin , so that an outcome records what each coin shows. The coins are fair, so these labelled outcomes are equally likely:
Each number of heads is an event, so we count the outcomes it holds:
The three events hold different numbers of outcomes, so they are not equally likely: head has a greater chance than heads. The equally likely outcomes are the four labelled ones, , , and .
Practice questions
6 questions
A jar holds green counters and yellow counters, identical apart from colour. One counter is drawn at random. Which statement is correct?
Select the correct answer:
+ 5 more questions
Probability as a ratio
Once the outcomes of an experiment are equally likely, finding the chance of an event is a matter of counting. We picture this with pebble world, a framing from Blitzstein and Hwang's Introduction to Probability.
We draw the sample space as a pile of pebbles, one per outcome. Every pebble has the same mass, and the whole pile has mass . An event is a handful of those pebbles, and its probability is the share of the mass that the handful holds.
On a fair die each of the six pebbles has mass . The even faces , and are three of them, so the chance of an even roll is .
: shaded
, ,
One pebble per face of a fair die.
Definition
Let be a finite sample space whose outcomes are equally likely, and let be an event. The probability of is
the number of favourable outcomes, the outcomes in , divided by the number of outcomes in .
So nothing here is new: a probability is one count divided by another, the number of outcomes in divided by the number in , and we already know how to count.
We read as "the probability of " and give it as a fraction in lowest terms.
Three fair coins are flipped and the sequence of results is recorded. Find the probability of getting exactly two heads.
Solution
The coins are fair, so every sequence of three results is equally likely, and each sequence is one outcome. We list them:
The event is "exactly two heads", so we keep the sequences with two s and one . Reading down the list:
These are the favourable outcomes, so
Practice questions
5 questions
A random experiment has equally likely outcomes, drawn as a pile of pebbles of equal mass. Five of the pebbles lie in the event . What is ?
Select the correct answer:
+ 4 more questions