STAT 211 Topic 5

From Notes
Jump to navigation Jump to search
Lecture 11 Notes

« previous | Tuesday, March 1, 2011 | next »


Review

Topic 3: Discrete Random Variables

  • PMF, CDF
  • Expected value and variance

Topic 4: Continuous Random Variables

  • PDF, CDF
  • Epxected value and variance


Topic 5 Overview

Consider 2 or more random variables.

  • Joint PMF or PDF
  • Expected value and variance

Central Limit Theorem (CLT)


What is Joint Distribution?

Discrete

Given 2 Bernoulli discrete random variables X and Y (not independent)

Joint Probability Mass Function
p(x,y)=P(X=x and Y=y)
  1. xy(p(x,y)0)
  2. xyp(x,y)=1
  3. Marginal PMF of X: pX(x)=yp(x,y) (also satisfies 1 & 2)
  4. Marginal PMF of Y: pY(y)=xp(x,y) (also satisfies 1 & 2)

Continuous

Let X and Y be continuous random variables:

f(x,y)=P[(X,Y)A]=Af(x,y) dx dy

P(aXb,cYd)=abcdf(x,y) dx dy

Note that whatever comes first in P() is the outer integral

Marginal Cases:

fX(x)=f(x,y) dyfY(y)=f(x,y) dx

Example

010165(x+y2) dy dx=01[65(xy+y33)]01 dx=0165(x+13) dx=65(x22+x3)|01=1


Independence

if discrete
p(x,y)=pX(x)pY(y)
if continuous
f(x,y)=fX(x)fY(y)
You should be able to factor joint PDF into two functions: x alone and y alone

For example, if X and Y are independent, p(1,1)=pX(1)pY(1).


Conditional Distributions

P(X>0.5|Y=0.3)=P(X>0.5,Y=0.3)P(Y=0.3)

If X and Y are continuous, the result of the above equation will be 00 since Y is set to a certain constant number.

The way to get around it is by looking at the joint PDF and marginal PDF:

fX|Y(x|y)=f(x,y)fY(y)

After finding symbolic conditional PDF, integrate over X and plug in Y


Example

Suppose X and Y denote the air pressure in the front tires of a car (left and right) and their joint PDF is given by:

f(x,y)={K(x2+y2)20x,y300otherwise

The tires are supposed to be filled to 26 psi.

  1. What is K?
    do double integral, set equal to 1, and solve for K
  2. What is the probability that both tires are underfilled?
    double-integrate from 20 to 26 on both integrals


Lecture 12

Lecture 12 Notes

Thursday, March 3, 2011

(continued from lecture 11)

Homework Example

Given 2 independent continuous rv's X,Y as Uniform distribution between 0 and 3, find P(|XY|<1)

P(|XY|<1)={(x,y):|xy|<1}f(x,y) dx dy

We don't know f(x,y), but we do know the marginal PDFS:

{fX(x)=130<x<3fY(y)=130<y<3

By independence, the joint PDF is just the product of the two marginal PDFs:

f(x,y)=190<x,y<3

Plot the function as a square with bottom left corner at origin and sides of length 3

Solve function inside probability (|xy|<1) for y and plot bounded area:

y<x+1,y>x1

Find the area of the bounded area using either the graph or the integral above

=59


Expected Value

For any arbitrary function h(x)

E(h(x,y))={xyh(x,y)p(x,y)h(x,y)f(x,y) dx dy

Easier way:

E(aX+aY+)=aE(X)+aE(Y)+

Variance

ONLY IF X AND Y ARE INDEPENDENT!

V(aX+aY+)=a2V(X)+a2V(Y)+


(lecture 12)

Random Sample

A collection of independent random variables with same distribution as population(recall from Topic 1) that can be used to estimate a parameter. The numbers we get to estimate parameters are called statistics

Central Limit Theorem

The original rv X may have any distribution.

If we let E(X)=μ and V(X)=σ2, we know that:

E(X¯)=μ
V(X¯)=σ2n

Suppose we pick a random sample X1 through Xn from X:

As sample size n gets larger, the average of the sample approaches a normal distribution:
X¯N(μ,σ2n)

Proof

Let X Be a uniform distribution

Take a 15 random samples of size 30. The expected value of the sample average should be the average of the population and have a normal distribution

E(X¯)=E(X1n+X2n++Xnn)=μ

Variance of the sample average should be the variance of the population average divided by the sample size: V(X¯)=V(X1n+X2n++Xnn)=σ2n

Example 1

Flipping a fair coin (p=0.5 for getting Heads or Tails)

  • μ=12
  • σ2=14

Therefore by CLT, the average of 1000 flips will approach X¯N(12,1/41000)


Example 2

Suppose the weight of 50 yr-old males has a certain distribution with mean 150 lbs. and std. dev. 32 lbs. What is the approximate probability that the sample mean weight for a random sample of 64 is 160 lbs?

X¯N(150,32264)

P(X¯>160)=P(Z>16015032/8)=P(Z>2.5)=1Φ(2.5)