Docsity

Random Variables: Concept, Properties, and Distributions, Study Guides, Projects, Research of Probability and Statistics

Toggle sidebar
bg1
Random variables
Random variables assign a number to each possible outcome of a
random process.
Random variables have a distribution.
Aprobability 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
Y=a+bX
If Xis a random variable, and aand bare numbers,
Y=a+bXis another random variable.
E(Y) = a+bE(X)
SD(Y) = |b|SD(X)
Important example:
If Z= [ Xโ€“ E(X) ] / SD(X)
then E(Z) = 0 and SD(Z) = 1.
2
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Random Variables: Concept, Properties, and Distributions and more Study Guides, Projects, Research Probability and Statistics in PDF only on Docsity!

Random variables

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

Y = a + b X

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.

Percentiles

75th percentile

75%

3

Example

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.

Marginal distributions

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

Conditional distribution

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.

Independence

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

Another example

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.

Example

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

Continuous random variables have joint densities, say fXY(x,y).

x

y

z

Continuous random variables

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

iid

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:

  • Repeated independent measurements
  • Random sampling from a large population