Normal distributions

Foundations of Probability in Python

Alexander A. Ramírez M.

CEO @ Synergy Vision

Modeling for measures

Possible Normal measures

Foundations of Probability in Python

Adults' heights example

Normal probability density function for male and female heights

Foundations of Probability in Python

Probability density

Normal standard probability density function

Foundations of Probability in Python

Probability density examples

$$ $$ Normal standard probability density function of -1

$$ $$ Normal standard probability density function of 0

Foundations of Probability in Python

Probability density and probability

$$ $$ Normal standard probability density

$$ $$ Normal standard probability as area

Foundations of Probability in Python

Symmetry

Normal density function symmetric shape

Foundations of Probability in Python

Mean

Mean from a Normal density function

Foundations of Probability in Python

Mean (Cont.)

Normal density function with mean 1

Foundations of Probability in Python

Mean (Cont.)

Normal density function with mean -2

Foundations of Probability in Python

Standard deviation

Normal density function with standard deviation 0.64

Foundations of Probability in Python

Standard deviation (Cont.)

Normal density function with standard deviation 1

Foundations of Probability in Python

Standard deviation (Cont.)

Normal density function with standard deviation 2

Foundations of Probability in Python

One standard deviation

Plot of probability of being 1 standard deviation from the mean

Foundations of Probability in Python

Two standard deviations

Plot of probability of being 2 standard deviation from the mean

Foundations of Probability in Python

Three standard deviations

Plot of probability of being 3 standard deviation from the mean

Foundations of Probability in Python

Normal sampling

# Import norm, matplotlib.pyplot, and seaborn
from scipy.stats import norm
import matplotlib.pyplot as plt
import seaborn as sns
# Create the sample using norm.rvs()
sample = norm.rvs(loc=0, scale=1, size=10000, random_state=13)
# Plot the sample
sns.distplot(sample)
plt.show()
Foundations of Probability in Python

Normal sampling (Cont.)

Plot of probability density of a sample

Foundations of Probability in Python

Let's do some exercises with normal distributions

Foundations of Probability in Python

Preparing Video For Download...