Outline
- Review
- Practice Problems!
Outline Review Practice Problems! Review Time! Random Variables - - PowerPoint PPT Presentation
Outline Review Practice Problems! Review Time! Random Variables Joint Distributions Joint RV Statistics Conditional Distribution General Inference Practice Problems! Probability Distributions Expectation &
Discrete definition Continuous definition
๐น ๐ = $
!:# ! $%
๐ ๐ฆ โ ๐ฆ
Properties of Expectation Properties of Variance
!
Discrete definition Continuous definition
๐น ๐ = $
!:# ! $%
๐ ๐ฆ โ ๐ฆ
Ber(p) Bin(n, p) Poi(ฮป) Geo(p) NegBin (r, p) P(X) = p
๐ ๐ ๐! 1 โ ๐ "#!
๐!๐"# ๐!
(1 โ p)kโ1p
๐ โ 1 ๐ โ 1 ๐$ 1 โ ๐ !#$
E[X] = p E[X] = np E[X] = ฮป E[X] = 1 / p E[X] = r / p Var(X) = p(1-p) Var(X) = np(1-p) Var(X) = ฮป
1 โ p p2 r(1 โ p) p2
1 experiment with prob p of success n independent trials with prob p of success Number of success over experiment duration, ฮป rate
Number of independent trials until first success Number of independent trials until r successes
! "
๐น ๐ = $
! "
๐ฆ โ ๐ ๐ฆ ๐๐ฆ
Discrete definition Continuous definition
๐น ๐ = $
!:# ! $%
๐ ๐ฆ โ ๐ฆ
Properties of Expectation Properties of Variance
!
Discrete definition Continuous definition
๐น ๐ = $
!:# ! $%
๐ ๐ฆ โ ๐ฆ
๐น ๐ = $
! "
๐ฆ โ ๐ ๐ฆ ๐๐ฆ
Uni(ฮฑ, ฮฒ) Exp(ฮป)
N(ฮผ, ฯ 2)
E[X] = 1 / ฮป E[X] = ฮผ
Duration of time until success
success
P(a โค X โค b)= &'(
)'*
f(x) =
! "โ$% ๐
! "!# $ $%$
Var(x) = ฯ2
๐ ๐ = ๐ ๐ธ โ ๐ท
๐ฎ ๐ = ๐ ๐ โ ๐ ๐ ๐ [๐] = ๐ท + ๐ธ ๐
Var(x) = !"# !
$%
Var(x) =
$ &!
When can we approximate a binomial?
*,)(๐, ๐ง)
Joint PMF ๐ ๐+ = ๐+, ๐, = ๐,, โฆ , ๐- = ๐- = ๐ ๐+, ๐, โฆ , ๐- ๐+
.!, ๐, ." โฆ ๐- .#
Where โ/0%
Generalize to Binomial RVs
Two discrete random variables X and Y are independent if for all x,y: ๐ ๐ = ๐ฆ, ๐ = ๐ง = ๐ ๐ = ๐ฆ ๐(๐ = ๐ง) Sum of independent Binomials ๐ + ๐~๐ถ๐๐ ๐+ + ๐,, ๐ Sum of independent Poisson RVs ๐ + ๐~๐๐๐(๐+ + ๐,)
๐ท๐๐ค ๐, ๐ = ๐น ๐ โ ๐น ๐ ๐ โ ๐น ๐ = ๐น ๐๐ โ ๐น ๐ ๐น[๐]
๐ท๐๐ค ๐, ๐ = ๐น ๐ โ ๐น ๐ ๐ โ ๐น ๐ = ๐น ๐๐ โ ๐น ๐ ๐น[๐] How do you calculate variance of two RVs? ๐๐๐ ๐ + ๐ = ๐๐๐ ๐ + 2 โ ๐ท๐๐ค ๐, ๐ + ๐๐๐ ๐
๐๐๐ ๐ + ๐ = ๐๐๐ ๐ + 2 โ ๐ท๐๐ค ๐, ๐ + ๐๐๐ ๐ When X and Y are independent ๐๐๐ ๐ + ๐ = ๐๐๐ ๐ + ๐๐๐ (๐) Note when we only know Cov(X,Y)=0 we canโt assume X and Y are independent
Correlation of X and Y ๐ ๐, ๐ = ๐ท๐๐ค(๐, ๐) ๐1๐2 Note: โ1 โค ๐ ๐, ๐ โค 1 Measures the linear relationship between X and Y
#(%&',)&*) #()&*)
'
*
General Inference
General Inference
Bayesian Networks
been estimated to flood at an average rate of 1 flood for every 500 years.
500 years?
next 100 years?
flood?
E[X^2 ] = 1/4(2^2 + 4^2 + E[(6 + X)^2 ] + E[(8 + X)^2 ] = 1/4(4 + 16 + 36 + 12E[X] + E[X^2 ] + 64 + 16E[X] + E[X^2 ]) = 1/4(120 + 28E[X] + 2E[X^2 ]) = 1/4(120 + 28(10) + 2E[X^2 ]) = 1/4(400 + 2E[X^2 ]) = 100 + 1/2E[X^2 ] So, E[X^2 ] = 2(100) = 200
E[Y^2 ] = 1/3(2^2 + E[(2 + X)^ 2 ]+ E[(4 + Y)^2 ] = 1/3(4 + 4 + 4E[X] + E[X^2 ] + 16 + 8E[Y] + E[Y^2 ]) = 1/3(24 + 40 + E[X^2 ] + 8(9) + E[Y^2 ]) = 1/3(136 + 200 + E[Y^2 ]) = 1/3(336 + E[Y^2 ]) So, E[Y^2 ] = 336/2 = 168