Presentation is loading. Please wait.

Presentation is loading. Please wait.

STA220 L0201 – October 1, 2013 Today: Random variables

Similar presentations


Presentation on theme: "STA220 L0201 – October 1, 2013 Today: Random variables"— Presentation transcript:

1 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 Note that my office hours are cancelled on Thursday this week.

2 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

3 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.

4 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) =

5 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?

6 Binomial(20,.2) Distribution What is the probability that you pass?

7 Binomial(20,.2) Distribution How many correct answers do you expect to get?

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

9 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”.

10 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

11 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%

12 A standard Normal random variable, Z, has mean 0 and variance 1.
Z~N(0,1)

13 Properties of mean and variance of random variables:

14 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

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

16

17

18

19 Solving problems with the Normal distribution:
Suppose X~N(10,4) What is P(X=8)?

20 Normal probability calculations:
Draw a picture. Standardize. Get the corresponding values from the standard normal table.

21 Question 3.10 in OpenIntro Statistics
Heights 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. What is the probability that a randomly chosen 10 year old is shorter than 48 inches? What is the probability that a randomly chosen 10 year old is between 60 and 65 inches? If the tallest 10% of the class is considered "very tall", what is the height cutoff for "very tall"? 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?

22 Question 3.10 in OpenIntro Statistics
Heights 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. What is the probability that a randomly chosen 10 year old is shorter than 48 inches?

23 Question 3.10 in OpenIntro Statistics
Heights 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?

24 Question 3.10 in OpenIntro Statistics
Heights 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”?

25 Question 3.10 in OpenIntro Statistics
Heights 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?

26

27

28 Which of these density functions shows a Normal distribution with a mean of 20 and a standard deviation of 4? A B C D

29 A

30 B

31 C

32 D


Download ppt "STA220 L0201 – October 1, 2013 Today: Random variables"

Similar presentations


Ads by Google