Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Probability Mass Function (PMF) 1/2 | Probability Functions
Probability Theory Update
course content

Course Content

Probability Theory Update

Probability Theory Update

1. Probability Basics
2. Statistical Dependence
3. Learn Crucial Terms
4. Probability Functions
5. Distributions

bookProbability Mass Function (PMF) 1/2

What is it? The function calculates the probability that a discrete random variable equals the exact value. Example:

Calculate the probability that we will have success with the fair coin (the chance of getting head or tail is 50%) in 4 out of 15 trials. We assume that success means getting a head.

Python realization:

1234567891011121314
# Import required library import scipy.stats as stats # The desired number of success trial x = 4 # The number of attempts n = 15 # The probability of getting a success p = 0.5 # The resulting probability probability = stats.binom.pmf(x, n, p) print("The probability is", probability * 100, "%")
copy

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 4. Chapter 2
toggle bottom row

bookProbability Mass Function (PMF) 1/2

What is it? The function calculates the probability that a discrete random variable equals the exact value. Example:

Calculate the probability that we will have success with the fair coin (the chance of getting head or tail is 50%) in 4 out of 15 trials. We assume that success means getting a head.

Python realization:

1234567891011121314
# Import required library import scipy.stats as stats # The desired number of success trial x = 4 # The number of attempts n = 15 # The probability of getting a success p = 0.5 # The resulting probability probability = stats.binom.pmf(x, n, p) print("The probability is", probability * 100, "%")
copy

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 4. Chapter 2
toggle bottom row

bookProbability Mass Function (PMF) 1/2

What is it? The function calculates the probability that a discrete random variable equals the exact value. Example:

Calculate the probability that we will have success with the fair coin (the chance of getting head or tail is 50%) in 4 out of 15 trials. We assume that success means getting a head.

Python realization:

1234567891011121314
# Import required library import scipy.stats as stats # The desired number of success trial x = 4 # The number of attempts n = 15 # The probability of getting a success p = 0.5 # The resulting probability probability = stats.binom.pmf(x, n, p) print("The probability is", probability * 100, "%")
copy

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!

What is it? The function calculates the probability that a discrete random variable equals the exact value. Example:

Calculate the probability that we will have success with the fair coin (the chance of getting head or tail is 50%) in 4 out of 15 trials. We assume that success means getting a head.

Python realization:

1234567891011121314
# Import required library import scipy.stats as stats # The desired number of success trial x = 4 # The number of attempts n = 15 # The probability of getting a success p = 0.5 # The resulting probability probability = stats.binom.pmf(x, n, p) print("The probability is", probability * 100, "%")
copy

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 4. Chapter 2
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
some-alt