


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















1
Slide 1
Slide 2
2
Slide 3
Why we should care
Slide 4
Why we should care
4
Slide 7
Properties of PDFs
That means…
h
P x h X x h px
⎟ ⎠ ⎜ ⎞ ⎝
→
( )^22
=
< ≤ =
b x a
P a X b p ( x ) dx
Slide 8
Properties of PDFs
=
< ≤ =
b x a
P a X b p ( x ) dx
Therefore…
Therefore…
∞ x =−∞
p xdx
∀ x : p ( x )≥ 0
5
Slide 9
Talking to your stomach
If p(5.31) = 0.06 and p(5.92) = 0. then when a value X is sampled from the distribution, you are 2 times as likely to find that X is “very close to” 5.31 than that X is “very close to” 5.92.
Slide 10
Talking to your stomach
If p(5.31) = 0.06 and p(5.92) = 0. then when a value X is sampled from the distribution, you are 2 times as likely to find that X is “very close to” 5.31 than that X is “very close to” 5.92.b
a
a
b
7
Slide 13
Talking to your stomach
If
then when a value X is sampled from the distribution, you are α times as likely to find that X is “very close to” 5.31 than that X is “very close to” 5.92.b
a
Slide 14
Talking to your stomach
If
then
h
0
8
Slide 15
Yet another way to view a PDF A recipe for sampling a random age.
Slide 16
Test your understanding
∀ x : P ( X = x )= 0
10
Slide 19
Expectation of a function μ=E[f(X)] = the expected value of f(x) where x is drawn from X’s distribution. = the average value we’d see if we took a very large number of random samples of f(X)
∞ =−∞
= x
μ f ( x ) p ( x ) dx
Note that in general: E [ f ( x )]≠ f ( E [ X ])
E [age 2 ]= 1786. 64 ( E [age])^2 = 1288. 62
Slide 20
Variance σ^2 = Var[X] = the expected squared difference between
∞ =−∞
= − x
σ^2 ( x μ)^2 p ( x ) dx = amount you’d expect to lose if you must guess an unknown person’s age and you’ll be fined the square of your error, and assuming you play optimally
Var[ age]= 498. 02
11
Slide 21
Standard Deviation σ^2 = Var[X] = the expected squared difference between
∞ =−∞
= − x
σ^2 ( x μ)^2 p ( x ) dx = amount you’d expect to lose if you must guess an unknown person’s age and you’ll be fined the square of your error, and assuming you play optimally σ = Standard Deviation = “typical” deviation of X from its mean
Var[ age]= 498. 02
σ = Var[ X ]
σ= 22. 32
Slide 22
In 2 dimensions
p(x,y) = probability density of random variables (X,Y) at location (x,y)
13
Slide 25
In 2 dimensions
LetX,Y be a pair of continuous random variables, and let R be some region of (X,Y) space…
∫∫ ∈
xy R
P X Y R p x y dydx ( , )
P( [(mpg-25)/10]^2 + [(weight-3300)/1500] 2 < 1 ) = area under the 2-d surface within the red oval
Slide 26
In 2 dimensions
LetX,Y be a pair of continuous random variables, and let R be some region of (X,Y) space…
∫∫ ∈
xy R
P X Y R p x y dydx ( , )
Take the special case of region R = “everywhere”. Remember that with probability 1, (X,Y) will be drawn from “somewhere”. So..
∫ ∫
∞
=−∞
∞
=−∞
x y
p ( x , y ) dydx 1
14
Slide 27
LetX,Y be a pair of continuous random variables, and let R be some region of (X,Y) space…
∈
xy R
P X Y R p x y dydx ( , )
h 0 2
2 2 2 2
P x h X x h y h Y y h ⎟ ⎠ ⎜ ⎞ ⎝
⎛ (^) − < ≤ + ∧ − < ≤ +
→
Slide 28
Let (X 1 ,X 2 ,…Xm ) be ann-tuple of continuous random variables, and let R be some region of R m^ …
x x x ∈ R
m m m
( , ,..., )
1 2 2 1 1 2
16
Slide 31
E[mpg,weight] = (24.5,2600)
The centroid of the cloud
Slide 32
17
Slide 33
Test your understanding Question :When(ifever)does E [ X + Y ]= E [ X ]+ E [ Y ]?
•All the time? •Only when X and Y are independent? •It can fail even if X and Y are independent?
Slide 34
Bivariate Expectation
if f ( x , y )= x then E [ f ( X , Y )]= ∫ xp ( x , y ) dydx
E [ f ( x , y )]= (^) ∫ f ( x , y ) p ( x , y ) dydx
if f ( x , y )= y then E [ f ( X , Y )]= ∫ yp ( x , y ) dydx
if f ( x , y )= x + y then E [ f ( X , Y )]= ∫ ( x + y ) p ( x , y ) dydx
E [ X + Y ]= E [ X ]+ E [ Y ]
19
Slide 37
Covariance Intuition
E[mpg,weight] = (24.5,2600)
σmpg = 8 σmpg = 8
σweight = 700
σweight = 700
Slide 38
Covariance Intuition
E[mpg,weight] = (24.5,2600)
σmpg = 8 σmpg = 8
σweight = 700
σweight = 700
Principal Eigenvector of Σ
20
Slide 39
Covariance Fun Facts
xy y
T x xy E ( x )( x) 2
2 [ ] [ ] σ σ
σ σ Cov X X μ X μ Σ
•True or False: If σxy = 0 then X and Y are independent •True or False: If X and Y are independent then σxy = 0 •True or False: If σxy = σx σy then X and Y are deterministically related •True or False: If X and Y are deterministically related then σxy = σx σy
How could you prove or disprove these?
Slide 40
General Covariance
Cov [ X ] = E [ ( X − μ x )( X − μ x)T ] = Σ
Let X = (X 1 ,X 2 , … X (^) k ) be a vector ofk continuous random variables
Σ ij = Cov [ Xi , Xj ]= σ xi x j
S is a k x k symmetric non-negative definite matrix If all distributions are linearly independent it is positive definite If the distributions are linearly dependent it has determinant zero