Introduction to Probability

This lesson introduces you to the fundamental concepts of probability. You'll learn how to calculate the likelihood of events happening and understand key terms that form the foundation of statistical analysis and data science.

Learning Objectives

  • Define probability and understand its basic principles.
  • Calculate the probability of simple events.
  • Identify and differentiate between sample space and events.
  • Understand the difference between theoretical and experimental probability.

Text-to-Speech

Listen to the lesson content

Lesson Content

What is Probability?

Probability is the measure of how likely an event is to occur. It's a fundamental concept in statistics and data science, allowing us to quantify uncertainty and make predictions. Probability is expressed as a number between 0 and 1, inclusive. A probability of 0 means the event is impossible, and a probability of 1 means the event is certain. A probability of 0.5 means the event is equally likely to happen or not happen.

Example: Flipping a fair coin has two possible outcomes: heads or tails. The probability of getting heads is 0.5 (or 50%), and the probability of getting tails is also 0.5.

Probability is calculated using the following formula:

Probability (Event) = (Number of favorable outcomes) / (Total number of possible outcomes)

Sample Space and Events

The sample space is the set of all possible outcomes of an experiment. An event is a specific set of outcomes within the sample space.

Example:

  • Experiment: Rolling a six-sided die.
  • Sample Space: {1, 2, 3, 4, 5, 6} (All possible outcomes)
  • Event: Rolling an even number. This event consists of the outcomes {2, 4, 6}.

Let's calculate the probability of the event 'Rolling an even number'.

  • Favorable outcomes: 3 (2, 4, and 6)
  • Total possible outcomes: 6 (1, 2, 3, 4, 5, 6)
  • Probability (Rolling an even number) = 3 / 6 = 0.5

Theoretical vs. Experimental Probability

Theoretical probability is the probability of an event based on logical reasoning and the structure of the experiment. It's what we expect to happen.

Experimental probability (also called empirical probability) is based on the actual results of an experiment. It's calculated by performing the experiment multiple times and observing the outcomes.

Example:

  • Theoretical Probability (flipping a coin and getting heads): 0.5 (based on the coin's design)
  • Experimental Probability: You flip a coin 10 times and get heads 3 times. The experimental probability of getting heads is 3/10 = 0.3. This deviates from the theoretical because of random variation, but with more trials, experimental probability often converges on theoretical probability.

Law of Large Numbers: As you increase the number of trials in an experiment, the experimental probability will get closer to the theoretical probability.

Progress
0%