161. CDF

161.1. CDF (Cumulative Distribution Function)

Gives the probability that 𝑋 will take a value less than or equal to 𝑥

𝐹(𝑥)=𝑃(𝑋𝑥)
  1. Categorical
𝐹(𝑥)=𝑥𝑓(𝑡)𝑑𝑡
  1. Continuous
𝐹(𝑥)=𝑡𝑥𝑃(𝑋=𝑡)
cdf.py
from scipy.stats import norm

x = 1
mu = 0
sigma = 1

norm.cdf(x, loc=mu, scale=sigma)