Lecture Notes on Random Variables in Math331, Fall 2008, Study notes of Mathematics

A section of lecture notes from math331, a university course taught by david anderson in fall 2008. The notes cover the topic of random variables, with examples and calculations of probabilities for random variables x and x+y. The document also explains how to determine probabilities for functions of random variables, such as x2, x3, and sin(x).

Typology: Study notes

Pre 2010

Uploaded on 09/02/2009

koofers-user-qd7
koofers-user-qd7 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Sections 4.1 lecture notes
Math331, Fall 2008
Instructor: David Anderson
Section 4.1: Random Variables
Example 1. Consider rolling a fair die twice.
S={(i, j) : i, j {1,...,6}}.
Suppose we are interested in computing the sum. Let Xbe the sum. Then X {2,3,...,12}
is random as it depends upon the outcome of the experiment. It is a random variable. We
can compute probabilities associated with X.
P(X= 2) = P{(1,1)}= 1/36
P(X= 3) = P{(1,2),(2,1)}= 2/36
P(X= 4) = P{(1,3),(2,2),(1,3)}= 3/36.
Can write succinctly
Sum, i2 3 4 5 6 ... 12
P(X=i) 1/36 2/36 3/36 4/36 5/36 ··· 1/36
Loose Definition: Let Sbe a sample space. Then a function X:SRis a random
variable.
Technical Definition in book: Let Sbe a sample space. Then X:SRis a random
variable if for each interval IR,{sS:X(s)I}is an event. (has to do with sets
with no probability)
Terminology: Instead of {sS:X(s)I}, we usually write {XI}or XI.
Example 2. Consider a bin with 5 white and 4 red chips. Let Sbe the sample space
associated with selecting three chips, with replacement, from the bin. Let Xbe the number
of white chips chosen.
So, S={(a, b, c) : a, b, c {W, R}}. We have X(R, R, R) = 0, X(W, R, R) =
X(R, W, R) = X(R, R, W ) = 1, X(W, W, R) = X(W, R, W ) = X(R, W, W ) = 2, and
X(W, W, W) = 3. We want probabilities.
P(X= 0) = P(R, R, R) = (4/9)3
P(X= 1) = P((W, R, R)(R, W, R)(R, R, W ))
=P(W, R, R) + P(R, W, R) + P(R, R, W ) = 3 (5/9)(4/9)2
P(X= 2) = 3(5/9)2(4/9)
P(X= 3) = (5/9)3.
Note: (4/9)3+ 3 (5/9)(4/9)2+ 3(5/9)2(4/9) + (5/9)3= 1.
1
pf2

Partial preview of the text

Download Lecture Notes on Random Variables in Math331, Fall 2008 and more Study notes Mathematics in PDF only on Docsity!

Sections 4.1 lecture notes Math331, Fall 2008 Instructor: David Anderson

Section 4.1: Random Variables

Example 1. Consider rolling a fair die twice.

S = {(i, j) : i, j ∈ { 1 ,... , 6 }}.

Suppose we are interested in computing the sum. Let X be the sum. Then X ∈ { 2 , 3 ,... , 12 } is random as it depends upon the outcome of the experiment. It is a random variable. We can compute probabilities associated with X.

P (X = 2) = P {(1, 1)} = 1/ 36 P (X = 3) = P {(1, 2), (2, 1)} = 2/ 36 P (X = 4) = P {(1, 3), (2, 2), (1, 3)} = 3/ 36.

Can write succinctly

Sum, i 2 3 4 5 6... 12 P (X = i) 1 / 36 2 / 36 3 / 36 4 / 36 5/36 · · · 1 / 36

Loose Definition: Let S be a sample space. Then a function X : S → R is a random variable.

Technical Definition in book: Let S be a sample space. Then X : S → R is a random variable if for each interval I ⊂ R, {s ∈ S : X(s) ∈ I} is an event. (has to do with sets with no probability)

Terminology: Instead of {s ∈ S : X(s) ∈ I}, we usually write {X ∈ I} or X ∈ I.

Example 2. Consider a bin with 5 white and 4 red chips. Let S be the sample space associated with selecting three chips, with replacement, from the bin. Let X be the number of white chips chosen.

So, S = {(a, b, c) : a, b, c ∈ {W, R}}. We have X(R, R, R) = 0, X(W, R, R) = X(R, W, R) = X(R, R, W ) = 1, X(W, W, R) = X(W, R, W ) = X(R, W, W ) = 2, and X(W, W, W ) = 3. We want probabilities.

P (X = 0) = P (R, R, R) = (4/9)^3 P (X = 1) = P ((W, R, R) ∪ (R, W, R) ∪ (R, R, W )) = P (W, R, R) + P (R, W, R) + P (R, R, W ) = 3 ∗ (5/9)(4/9)^2 P (X = 2) = 3(5/9)^2 (4/9) P (X = 3) = (5/9)^3.

Note: (4/9)^3 + 3 ∗ (5/9)(4/9)^2 + 3(5/9)^2 (4/9) + (5/9)^3 = 1.

What if no replacement? Then,

P (X = 0) =

3

3

P (X = 1) =

1

2

3

P (X = 2) =

2

1

3

P (X = 3) =

3

3

Again, can show this sums to one.

Note that if X and Y are random variables on the sample space S, then so are X + Y , X − Y , aX + bY (for a, b ∈ R), XY , X/Y (so long as Y 6 = 0). Also, if f : R → R, then f (X) is also a random variable. So, X^2 , X^3 , sin(X), etc. are all random variables. Also have mix of two ideas: X^2 + Y 2 , X^2 + Y − 3 Z^4 , etc.

Example 3. Consider choosing a cube with side-length chosen randomly from the interval (0, 1). Let X be the side-length of the cube chosen. Let Y = X^2 be the side surface area of the cube chosen, and let Z = X^3 be the volume of the cube chosen. By assumption, P (X > 1 /2) = 1/2. What is P (Y > 1 /4) and P (Z > 1 /8)? We have

P (Y > 1 /4) = P (X^2 > 1 /4) = P (X > 1 /2) = 1/ 2 P (Z > 1 /8) = P (X^3 > 1 /8) = P (X > 1 /2) = 1/ 2 Also, P (Z < 1 /2) = P (X^3 < 1 /2) = P (X < .7937) =. 7937.