





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!






Random variables assign a number to each possible outcome of a random process.
Random variables have a distribution. A probability function, p(x) = Pr(X = x). or a density function, f (x) (for which areas under the curve correspond to probabilities)
Mean (or expected value) of R.V., E(X ) The typical value.
Standard deviation , SD(X ) A measure of the spread of the distribution. The typical deviation from the mean. 1
If X is a random variable, and a and b are numbers, Y = a + b X is another random variable. E(Y) = a + b E(X) SD(Y) = |b| SD(X)
Important example: If Z = [ X โ E(X) ] / SD(X) then E(Z) = 0 and SD(Z) = 1.
75th percentile
75%
3
Suppose the heights of adult males in the U.S. are approximately normal distributed, with mean = 69 in and SD = 3 in. What is the 25th percentile?
67 69 โ0.67 0
25%
X โผ N(ฮผ=69, ฯ=3) Z = (X โ 69)/3 โผ N(0,1) X = Z ร 3 + 69 Pr(Z โค โ0.67) โ 0. Pr(X โค โ0.67 ร 3 + 69) โ 0. Pr(X โค 67) โ 0.
X = gender (0 if female, 1 if male) Y = OS (0 if Windows, 1 if Mac, 2 if both)
y 0 1 2 x 0 0.55 0.14 0.01 0. 1 0.22 0.06 0.01 0. 0.77 0.20 0.
Pr(X=x) = โ y Pr(X=x and Y=y) Pr(Y=y) = โ x Pr(X=x and Y=y)
7
X = gender (0 if female, 1 if male) Y = OS (0 if Windows, 1 if Mac, 2 if both)
y 0 1 2 x 0 0.55 0.14 0.01 0. 1 0.22 0.06 0.01 0. 0.77 0.20 0.
Pr(Y=0 | X=1) = Pr(X=1 and Y=0) / Pr(X=1) = 0.22/0.30 โ 0. Pr(Y=1 | X=1) = Pr(X=1 and Y=1) / Pr(X=1) = 0.06/0.30 = 0. Pr(Y=2 | X=1) = Pr(X=1 and Y=2) / Pr(X=1) = 0.01/0.30 โ 0.
Random variables X and Y are independent if:
pXY(x,y) = pX(x) pY(y) for every pair x,y
In other words/symbols: Pr(X = x and Y = y) = Pr(X = x) Pr(Y = y) for every pair x,y
Equivalently, Pr(X = x | Y = y) = Pr(X = x) for all x,y Pr(Y = y | X = x) = Pr(Y = y) for all x,y
9
Sample a couple who are both carriers of some disease gene X = no. children they have Y = no. affected children they have x pXY(x,y) 0 1 2 3 4 5 pY(y) 0 0.160 0.248 0.124 0.063 0.025 0.014 0. 1 0 0.082 0.082 0.063 0.034 0.024 0. y 2 0 0 0.014 0.021 0.017 0.016 0. 3 0 0 0 0.003 0.004 0.005 0. 4 0 0 0 0 0.000 0.001 0. 5 0 0 0 0 0 0.000 0. pX(x) 0.160 0.330 0.220 0.150 0.080 0.
Sample a random rat from Baltimore. X = 1 if the rat is infected with virus A, and = 0 otherwise Y = 1 if the rat is infected with virus B, and = 0 otherwise
x pXY(x,y) 0 1 pY(y) y 0 0.72 0.18 0. 1 0.08 0.02 0. pX(x) 0.80 0.
13
Continuous random variables have joint densities, say fXY(x,y).
x
y
z
Continuous random variables have joint densities, say fXY(x,y).
The marginal densities are obtained by integration (areas of slices):
fX(x) =
fXY(x, y) dy and fY(y) =
fXY(x, y) dx
Conditional densities: fX|Y=y(x) = fXY(x, y)/fY(y) fY|X=x(y) = fXY(x, y)/fX(x)
X and Y are independent if fXY(x,y) = fX(x) fY(y) for all x,y 15
More jargon:
Random variables X 1 , X 2 , X 3 ,... , X (^) n are said to be independent and identically distributed (iid) if: (a) they are independent and (b) they all have the same distribution
Usually: