What is probability? · Statistics & Data Science | StemPy Lab
Course 3.1·Lesson 1 of 3
What is probability?
A probability is a number from 0 to 1 that says how likely an event is: 0 is impossible, 1 is certain. When all the outcomes are equally likely, the probability is the number of outcomes we want divided by the number of all the outcomes. The chance that an event does not happen is 1 minus its probability.
about 30 min1 simulation2 practice questions2 Python programs5 questions to check yourself
This lesson is free to read. Enroll free to keep your place and take the tests.
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
How likely is it?
A bag holds 3 red, 2 blue and 5 green marbles. You take one marble without looking. Which colour do you expect? Green is the most likely, because there are more green marbles. A probability puts a number on how likely.
A number line from 0 to 1 with five marked points. At 0 the event is impossible, for example a coin that lands on its edge and stays there. At 0.25 it is unlikely. At 0.5 it is an even chance, for example a coin that lands heads. At 0.75 it is likely. At 1 it is certain, for example the sun rising tomorrow.
A probability is always a number from 0 to 1.
0 means that it cannot happen.
1 means that it will happen.
0.5 means an even chance.
A probability is never less than 0 or more than 1.
Equally likely outcomes
When every outcome has the same chance, we find the probability by counting.
P(event)=number of all the outcomesnumber of outcomes we want
You should find that the three parts of the bar always fill it exactly, from 0 to 1. Add green marbles, and the red and blue parts shrink, though their counts stay the same.
Try it in Python
Listing the outcomes
One die has six outcomes, 1,2,3,4,5,6, all equally likely. To find a probability, list the outcomes that we want, and count them.
The chance that it does not happen
Either an event happens or it does not, so the two probabilities add up to 1.
P(not A)=1−P(A)
The chance of a six is 61, so the chance of not a six is 1−61=65. This is often the easy way to a hard probability.
Practise with new numbers
Common mistakes
A probability above 1, or below 0. It cannot be. Check the count again.
Dividing by the wrong total. Divide by all the outcomes, not by the ones you do not want.
Counting outcomes that are not equally likely. Win or lose is two outcomes, but they need not be equally likely.
Forgetting the short cut. For "not", take the chance away from 1.
Remember these
A probability is a number from 0 to 1.
With equally likely outcomes: the wanted outcomes divided by all the outcomes.
P(not A)=1−P(A).
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
A bag has 4 red and 6 blue marbles. What is P(blue)?
The chance of rain is 0.35. What is the chance of no rain?
A die is rolled. What is the probability of a number less than 3?
Which of 1.2, −0.4 and 0.85 could be a probability?
Enroll free in Chance
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.