Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Solving the Task Using Inclusion-Exclusion Principle | Probability of Complex Events
Probability Theory Basics
course content

Course Content

Probability Theory Basics

Probability Theory Basics

1. Basic Concepts of Probability Theory
2. Probability of Complex Events
3. Commonly Used Discrete Distributions
4. Commonly Used Continuous Distributions
5. Covariance and Correlation

bookChallenge: Solving the Task Using Inclusion-Exclusion Principle

Task
test

Swipe to show code editor

Let's imagine one situation that may be real for you. You have a tasty basket with:

  • 5 cookies with a cherry jam,
  • 5 chocolate cookies,
  • 10 chocolate candies,
  • 5 chocolate bars,
  • 15 biscuits,
  • 10 bottles of lemonade.

Calculate the probability that you will randomly pull out an item that includes chocolate, or a cookie.

We can divide our food into influential groups:

  1. The first one: cookies (ones with cherry jam and chocolate).
  2. The second one: is chocolate items (chocolate bars, candies, and chocolate cookies).

Follow the algorithm:

  1. Calculate the probability of pulling out a cookie.
  2. Calculate the probability of pulling out item that includes chocolate (chocolate sweet).
  3. Calculate the probability of pulling out a chocolate cookie.
  4. Calculate the resulting probability.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 2. Chapter 2
toggle bottom row

bookChallenge: Solving the Task Using Inclusion-Exclusion Principle

Task
test

Swipe to show code editor

Let's imagine one situation that may be real for you. You have a tasty basket with:

  • 5 cookies with a cherry jam,
  • 5 chocolate cookies,
  • 10 chocolate candies,
  • 5 chocolate bars,
  • 15 biscuits,
  • 10 bottles of lemonade.

Calculate the probability that you will randomly pull out an item that includes chocolate, or a cookie.

We can divide our food into influential groups:

  1. The first one: cookies (ones with cherry jam and chocolate).
  2. The second one: is chocolate items (chocolate bars, candies, and chocolate cookies).

Follow the algorithm:

  1. Calculate the probability of pulling out a cookie.
  2. Calculate the probability of pulling out item that includes chocolate (chocolate sweet).
  3. Calculate the probability of pulling out a chocolate cookie.
  4. Calculate the resulting probability.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 2. Chapter 2
toggle bottom row

bookChallenge: Solving the Task Using Inclusion-Exclusion Principle

Task
test

Swipe to show code editor

Let's imagine one situation that may be real for you. You have a tasty basket with:

  • 5 cookies with a cherry jam,
  • 5 chocolate cookies,
  • 10 chocolate candies,
  • 5 chocolate bars,
  • 15 biscuits,
  • 10 bottles of lemonade.

Calculate the probability that you will randomly pull out an item that includes chocolate, or a cookie.

We can divide our food into influential groups:

  1. The first one: cookies (ones with cherry jam and chocolate).
  2. The second one: is chocolate items (chocolate bars, candies, and chocolate cookies).

Follow the algorithm:

  1. Calculate the probability of pulling out a cookie.
  2. Calculate the probability of pulling out item that includes chocolate (chocolate sweet).
  3. Calculate the probability of pulling out a chocolate cookie.
  4. Calculate the resulting probability.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Task
test

Swipe to show code editor

Let's imagine one situation that may be real for you. You have a tasty basket with:

  • 5 cookies with a cherry jam,
  • 5 chocolate cookies,
  • 10 chocolate candies,
  • 5 chocolate bars,
  • 15 biscuits,
  • 10 bottles of lemonade.

Calculate the probability that you will randomly pull out an item that includes chocolate, or a cookie.

We can divide our food into influential groups:

  1. The first one: cookies (ones with cherry jam and chocolate).
  2. The second one: is chocolate items (chocolate bars, candies, and chocolate cookies).

Follow the algorithm:

  1. Calculate the probability of pulling out a cookie.
  2. Calculate the probability of pulling out item that includes chocolate (chocolate sweet).
  3. Calculate the probability of pulling out a chocolate cookie.
  4. Calculate the resulting probability.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 2. Chapter 2
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt