ì
Probability and Statistics for Computer Science
Can we call the exci-ng ?
Hongye Liu, Teaching Assistant Prof, CS361, UIUC, 9.29.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, 9.29.2020 Last time Objectives Poisson
Hongye Liu, Teaching Assistant Prof, CS361, UIUC, 9.29.2020 Credit: wikipedia
n→∞
Simeon D. Poisson (1781-1840) Credit: wikipedia
Simeon D. Poisson (1781-1840)
for integer k ≥ 0
λ is the average rate of the event′s occurrence
x
Simeon D. Poisson (1781-1840)
for integer k ≥ 0
λ is the average rate of the event′s occurrence
x
∞
∞
Simeon D. Poisson (1781-1840)
for integer k ≥ 0
λ is the average rate of the event′s occurrence
x
∞
∞
x
Simeon D. Poisson (1781-1840)
for integer k ≥ 0
x
✺ How many calls does a call center get in an hour? ✺ How many muta-ons occur per 100k
✺ How many independent incidents occur in an
for integer k ≥ 0
✺ If a call center receives 10
calls per hour on average, what is the probability that it receives 15 calls in a given hour?
✺ What is λ here? ✺ What is P(k=15)?
Credit: wikipedia
If a call center receives 4 calls per hour on average. What is intensity λ here for an hour?
Credit: wikipedia
If a call center receives 4 calls per hour on average. What is probability the center receives 0 calls in an hour?
Credit: wikipedia
Credit: wikipedia
✺ Given a call center receives
10 calls per hour on average, what is the intensity λ of the distribu-on for calls in Two hours?
✺ For a con-nuous random variable X, the
✺ Instead, we define the probability density
✺ For a < b
a
−∞
✺ Suppose the spinner has equal chance
✺ For this func-on to be a pdf,
2π c
p(θ) =
if θ ∈ (0, 2π]
−∞
✺ What the probability that the spin angle θ is
π 12, π 7
✺ What is the constant c given the spin angle θ
2π
π
−∞
−∞
x
weight
✺ Given the probability density of the spin angle θ ✺ The expected value of spin angle is
2π
−∞
✺ Suppose a con-nuous variable has pdf
−∞
b a 1 1 b − a
p(x)
p(x) =
b−a
for x ∈ [a, b]
E[X] = a + b 2 & var[X] = (b − a)2 12
b a 1
p(x)
1 b − a
target
p(x) =
b−a
for x ∈ [a, b]
E[X] = a + b 2 & var[X] = (b − a)2 12
b a 1
p(x)
1 b − a
target 2) Olen associated with random sampling
p(x) =
b−a
for x ∈ [a, b]
E[X] = a + b 2 & var[X] = (b − a)2 12
b a 1
p(x)
1 b − a
✺ Cumula-ve distribu-on func-on (CDF)
b a 1
p(x)
1 b − a
b a
−∞
1
✺ Common
✺ Associated
Credit: wikipedia
✺ A con-nuous random variable X is exponen-al
✺ It’s similar to Geometric distribu;on – the
✺ Both are memory-less. See Degroot et al Pg
✺ 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
✺ 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
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
✺ A store staff mixed their fuji and gala
✺ A store staff mixed their fuji and gala
✺ A store staff mixed their fuji and gala
✺ A store staff mixed their fuji and gala
✺ A store staff mixed their fuji and gala