32
STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance The two most important random variables for us: o Binomial (discrete) o Normal (continuous) Thursday: conditional probability and Bayes rule with a special guest Note that my office hours are cancelled on Thursday this week.

STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

  • Upload
    kory

  • View
    70

  • Download
    0

Embed Size (px)

DESCRIPTION

STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance The two most important random variables for us: Binomial (discrete) Normal (continuous) Thursday: conditional probability and Bayes rule with a special guest - PowerPoint PPT Presentation

Citation preview

Page 1: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

STA220 L0201 – October 1, 2013

Today:

• Random variables

• Their mean and variance

• The two most important random variables for us:o Binomial (discrete)o Normal (continuous)

• Thursday: conditional probability and Bayes rule with a special guest

Note that my office hours are cancelled on Thursday this week.

Page 2: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

The set of all possible outcomes of a random experiment is the Sample Space.

Example:Suppose you’re writing an exam that consists of 20 multiple choice questions, each with 5 answer options. You guess for every question.

The Sample Space:All of the possible combinations of right and wrong answers that could result.One element of the sample space:

RRRWWWWWWWWWWRWRRWW

Page 3: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

A random variable gives a number to every element of the sample space.

Let X=number of correct answers on the exam

For this element of the sample space:RRRWWWWWWWWWWRWRRWW

X=6

X is an example of a discrete random variable because we can list all of the values it can be.

Page 4: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

Random variables have probability distributions.

For a discrete random variable, its distribution is the list of the probability of each of its values.

For our example:

P(X=0) =

P(X=20) =

P(X=10) =

Page 5: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

X has a Binomial probability distribution.

Properties of a Binomial distribution:• A simple random experiment with two possible outcomes is

repeated n times (n is fixed).• Each time it is repeated, there is a probability of “success”, p.• A Binomial(n,p) random variable is the count of the number of

successes.

What probability distribution does the random variable X, the number of correct answers, have?

Page 6: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

Binomial(20,.2)Distribution

What is the probability that you pass?

Page 7: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

Binomial(20,.2)Distribution

How many correct answers do you expect to get?

Page 8: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

Another use of the words “mean”, “variance”, & “standard deviation”:To describe the properties of a probability distribution.

Page 9: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

Continuous random variables: can take on any value (real number) in an interval.

Probabilities for continuous random variables are derived as areas under a “density function”.

Page 10: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

The most important continuous probability distribution for us:Normal(μ,σ2) (a.k.a. the Gaussian distribution)μ is the “centre” of the distribution.

If a random variable, X, has a Normal distribution, that is X~N(μ,σ2):• it can be any value from -∞ to +∞• E(X)=μ• Var(X)=σ2

Page 11: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

For a Normal random variable:The probability of being within one σ of μ is 68%The probability of being within two σ of μ is 95%The probability of being within three σ of μ is 99.7%

Page 12: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

A standard Normal random variable, Z, has mean 0 and variance 1.

Z~N(0,1)

Page 13: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

Properties of mean and variance of random variables:

Page 14: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

An important application of the properties of Expectation and Variance:

Suppose X~N(μ,σ2)

X/σ has variance 1

X-μ has expectation 0

So (X-μ)/σ has the standard Normal distribution

Page 15: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

Using the Normal probability table (for the standard Normal distribution)

Page 16: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance
Page 17: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance
Page 18: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance
Page 19: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

Solving problems with the Normal distribution:

Suppose X~N(10,4)What is P(X=8)?

Page 20: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

Normal probability calculations:

Draw a picture.

Standardize.

Get the corresponding values from the standard normal table.

Page 21: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

Question 3.10 in OpenIntro StatisticsHeights of 10 year olds, regardless of gender, closely follow a Normal distribution with mean 55 inches and standard deviation 6 inches.Sketch the answer for each of the following as the area under a standard Normal density function.

a) What is the probability that a randomly chosen 10 year old is shorter than 48 inches?

b) What is the probability that a randomly chosen 10 year old is between 60 and 65 inches?

c) If the tallest 10% of the class is considered "very tall", what is the height cutoff for "very tall"?

d) The height requirement for Batman the Ride at Six Flags Magic Mountain is 54 inches. What percent of 10 year olds cannot go on this ride?

Page 22: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

Question 3.10 in OpenIntro StatisticsHeights of 10 year olds, regardless of gender, closely follow a Normal distribution with mean 55 inches and standard deviation 6 inches.Sketch the answer for each of the following as the area under a standard Normal density function.

a) What is the probability that a randomly chosen 10 year old is shorter than 48 inches?

Page 23: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

Question 3.10 in OpenIntro StatisticsHeights of 10 year olds, regardless of gender, closely follow a Normal distribution with mean 55 inches and standard deviation 6 inches.Sketch the answer for each of the following as the area under a standard Normal density function.

b) What is the probability that a randomly chosen 10 year old is between 60 and 65 inches?

Page 24: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

Question 3.10 in OpenIntro StatisticsHeights of 10 year olds, regardless of gender, closely follow a Normal distribution with mean 55 inches and standard deviation 6 inches.Sketch the answer for each of the following as the area under a standard Normal density function.

c) If the tallest 10% of the class is considered "very tall", what is the height cutoff for "very tall”?

Page 25: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

Question 3.10 in OpenIntro StatisticsHeights of 10 year olds, regardless of gender, closely follow a Normal distribution with mean 55 inches and standard deviation 6 inches.Sketch the answer for each of the following as the area under a standard Normal density function.

d) The height requirement for Batman the Ride at Six Flags Magic Mountain is 54 inches. What percent of 10 year olds cannot go on this ride?

Page 26: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance
Page 27: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance
Page 28: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

Which of these density functions shows a Normal distribution with a mean of 20 and a standard deviation of 4?

A B

C D

Page 29: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

A

Page 30: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

B

Page 31: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

C

Page 32: STA220 L0201 – October 1, 2013 Today: Random variables Their mean and variance

D