ì
Probability and Statistics for Computer Science
Can we call the exci-ng ?
Hongye Liu, Teaching Assistant Prof, CS361, UIUC, 10.1.2020 Credit: wikipedia
e = lim
n→∞
- 1 + 1
Probability and Statistics for Computer Science Can we call - - PowerPoint PPT Presentation
Probability and Statistics for Computer Science Can we call the e exci-ng ? e n 1 + 1 e = lim n n Credit: wikipedia Hongye Liu, Teaching Assistant Prof, CS361, UIUC, 10.1.2020 Last time Objectives Normal
Hongye Liu, Teaching Assistant Prof, CS361, UIUC, 10.1.2020 Credit: wikipedia
n→∞
✺ Cumula-ve distribu-on func-on (CDF)
b a 1
p(x)
1 b − a
b a
−∞
1
✺ The most famous con-nuous random variable
Carl F. Gauss (1777-1855) Credit: wikipedia
✺ The most famous con-nuous random variable
Carl F. Gauss (1777-1855) Credit: wikipedia
✺ The most famous con-nuous random variable
−∞
Carl F. Gauss (1777-1855) Credit: wikipedia
✺ A lot of data in nature are approximately
Carl F. Gauss (1777-1855) Credit: wikipedia
Credit: wikipedia
Credit: wikipedia
99.7% 95% 68%
✺ If we standardize the normal distribu-on (by
✺ A con-nuous random variable X is standard
+∞
−∞
p(x) dx = +∞
−∞
1 σ √ 2π exp(−(x − µ)2 2σ2 ) dx = +∞
−∞
1 σ √ 2π exp(− ˆ x2 2 )σ dˆ x = +∞
−∞
1 √ 2π exp(− ˆ x2 2 ) dˆ x = +∞
−∞
p(ˆ x) dx
Call this standard and omit using a hat ˆ x = x − µ σ
✺ If we standardize the normal distribu-on (by
✺ A con-nuous random variable X is standard
E[X] = 0 & var[X] = 1
✺ Frac-on of normal data within 1 standard
✺ Frac-on of normal data within k standard
1 √ 2π 1
−1
exp(−x2 2 )dx ≃ 0.68
1 √ 2π k
−k
exp(−x2 2 )dx
✺ If X ~ N (μ=3, σ2 =16) (normal distribu-on) P(X ≤ 5) =?
✺ If X ~ N (μ=3, σ2 =16) (normal distribu-on) P(X ≤ 5) =?
A . 0.5199 B. 0.5987 C. 0.6915
✺ The distribu-on of the sum of N independent
✺ Even when the component random variables
✺ CLT helps explain the prevalence of normal
✺ A binomial random variable tends toward a
10 20 30 40 0.00 0.05 0.10 0.15 0.20
Binomial
k probability
n=20,p=0.5 n=20,p=0.7 n=40,p=0.5
Binomial distribu-on
μ = 20, σ2 = 10 n= 40, p=0.5
10 20 30 40 0.00 0.05 0.10 0.15 0.20
Normal
k probability
Approxima-on with Normal
E[k] = np = 40 · 0.5 = 20 P(10 ≤ k ≤ 25) =
25
40 k
=
25
40 k
std[k] =
= √ 40 · 0.5 · 0.5 = √ 10 ✺ Let k be the number of heads appeared in 40
✺ The goal is to es-mate the following with normal
P(10 ≤ k ≤ 25) ≃ 1 σ √ 2π 25
10
exp(−(x − µ)2 2σ2 )dx = 1 √ 2π
3.16 10−20 3.16
exp(−x2 2 )dx ≃ 0.94
✺ Use the same mean and standard devia-on of
✺ Then standardize the normal to do the
✺ Common
✺ Associated
Credit: wikipedia
✺ A con-nuous random variable X is exponen-al
✺ It’s similar to Geometric distribu>on – the
✺ A con-nuous random variable X is exponen-al
x
✺ How long will it take un-l the next call to be
✺ A store has a number of customers coming on