Continuous Random Variables

Slides:



Advertisements
Similar presentations
Sampling Distribution of a Sample Proportion Lecture 26 Sections 8.1 – 8.2 Wed, Mar 8, 2006.
Advertisements

Continuous Random Variables and Probability Distributions
Continuous Random Variables and Probability Distributions
LECTURE UNIT 4.3 Normal Random Variables and Normal Probability Distributions.
Testing Distributions Section Starter Elite distance runners are thinner than the rest of us. Skinfold thickness, which indirectly measures.
L Berkley Davis Copyright 2009 MER301: Engineering Reliability Lecture 3 1 MER301: Engineering Reliability LECTURE 3: Random variables and Continuous Random.
Confidence Interval Estimation for a Population Proportion Lecture 31 Section 9.4 Wed, Nov 17, 2004.
Chapter 7 Sampling and Sampling Distributions ©. Simple Random Sample simple random sample Suppose that we want to select a sample of n objects from a.
Probabilistic & Statistical Techniques Eng. Tamer Eshtawi First Semester Eng. Tamer Eshtawi First Semester
Continuous Random Variables Lecture 25 Section Mon, Feb 28, 2005.
Test of Goodness of Fit Lecture 43 Section 14.1 – 14.3 Fri, Apr 8, 2005.
Continuous Random Variables Lecture 24 Section Tue, Mar 7, 2006.
© 2010 Pearson Prentice Hall. All rights reserved Chapter The Normal Probability Distribution © 2010 Pearson Prentice Hall. All rights reserved 3 7.
Review Lecture 51 Tue, Dec 13, Chapter 1 Sections 1.1 – 1.4. Sections 1.1 – 1.4. Be familiar with the language and principles of hypothesis testing.
Uniform Distributions and Random Variables Lecture 23 Sections 6.3.2, Mon, Oct 25, 2004.
Modeling Discrete Variables Lecture 22, Part 1 Sections 6.4 Fri, Oct 13, 2006.
Continuous Random Variables Lecture 22 Section Mon, Feb 25, 2008.
Testing Hypotheses about a Population Proportion Lecture 31 Sections 9.1 – 9.3 Wed, Mar 22, 2006.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter The Normal Probability Distribution 7.
Continuous Random Variables Lecture 26 Section Mon, Mar 5, 2007.
Chapter 7 The Normal Probability Distribution 7.1 Properties of the Normal Distribution.
Continuous Random Variables Lecture 24 Section Tue, Oct 18, 2005.
Sampling Distribution of a Sample Proportion Lecture 28 Sections 8.1 – 8.2 Wed, Mar 7, 2007.
Test of Goodness of Fit Lecture 41 Section 14.1 – 14.3 Wed, Nov 14, 2007.
Discrete and Continuous Random Variables
Continuous Random Variables
Uniform Distributions and Random Variables
STA 291 Spring 2010 Lecture 21 Dustin Lueker.
The Standard Normal Distribution
This Week Review of estimation and hypothesis testing
Probablity Density Functions
Sampling Distribution of a Sample Proportion
Chapter 4 Continuous Random Variables and Probability Distributions
The Standard Normal Distribution
AP Statistics: Chapter 7
Suppose you roll two dice, and let X be sum of the dice. Then X is
The Normal Probability Distribution Summary
Hypothesis Testing Two Proportions
Lecture 26 Section – Tue, Mar 2, 2004
POPULATION (of “units”)
Modeling Continuous Variables
Lecture 36 Section 14.1 – 14.3 Mon, Nov 27, 2006
The Normal Distribution
Hypothesis tests for the difference between two proportions
Chapter 6: Normal Distributions
Sampling Distribution of a Sample Mean
Mean and Standard Deviation
Sampling Distribution of a Sample Proportion
Lecture 23 Section Mon, Oct 25, 2004
Lecture 41 Section 14.1 – 14.3 Wed, Nov 14, 2007
Statistics Lecture 12.
Continuous Random Variables
Continuous Random Variables
Testing Hypotheses about a Population Proportion
Uniform Distributions and Random Variables
Modeling Discrete Variables
Simple Random Sampling
Continuous Random Variables 2
Independent Samples: Comparing Proportions
Sampling Distributions (§ )
Sampling Distribution of a Sample Proportion
Testing Hypotheses about a Population Proportion
STA 291 Summer 2008 Lecture 21 Dustin Lueker.
Normal as Approximation to Binomial
Continuous Random Variables
Uniform Probability Distribution
STA 291 Spring 2008 Lecture 21 Dustin Lueker.
Testing Hypotheses about a Population Proportion
Modeling Discrete Variables
Lecture 43 Section 14.1 – 14.3 Mon, Nov 28, 2005
Presentation transcript:

Continuous Random Variables Lecture 25 Section 7.5.3 Wed, Oct 19, 2005

Continuous Probability Distribution Functions Continuous Probability Distribution Function (pdf) – For a random variable X, it is a function with the property that the area between the graph of the function and an interval a ≤ x ≤ b equals the probability that a ≤ X ≤ b. In other words, AREA = PROBABILITY

Example The TI-83 will return a random number between 0 and 1 if we enter rand and press ENTER. These numbers have a uniform distribution from 0 to 1. Let X be the random number returned by the TI-83.

Example The graph of the pdf of X. f(x) 1 x 1

Example What is the probability that the random number is at least 0.3?

Example What is the probability that the random number is at least 0.3? f(x) 1 x 0.3 1

Example What is the probability that the random number is at least 0.3? f(x) 1 x 0.3 1

Example What is the probability that the random number is at least 0.3? f(x) 1 x 0.3 1

Example What is the probability that the random number is at least 0.3? Probability = 70%. f(x) 1 Area = 0.7 x 0.3 1

Example What is the probability that the random number is between 0.25 and 0.75? f(x) 1 x 0.3 0.9 1

Example What is the probability that the random number is between 0.25 and 0.75? f(x) 1 x 0.25 0.75 1

Example What is the probability that the random number is between 0.25 and 0.75? f(x) 1 x 0.25 0.75 1

Example What is the probability that the random number is between 0.25 and 0.75? Probability = 50%. f(x) 1 Area = 0.5 x 0.25 0.75 1

Experiment Use the TI-83 to generate 500 values of X. Use rand(500) to do this. Check to see what proportion of them are between 0.25 and 0.75. Use a TI-83 histogram and Trace to do this.

Hypothesis Testing (n = 1) An experiment is designed to determine whether a random variable X has the distribution U(0, 1) or U(0.5, 1.5). H0: X is U(0, 1). H1: X is U(0.5, 1.5). One value of X is sampled (n = 1). If X is more than 0.75, then H0 will be rejected.

Hypothesis Testing (n = 1) Distribution of X under H0: Distribution of X under H1: 0.5 1 1.5 0.5 1 1.5

Hypothesis Testing (n = 1) What are  and ? 0.5 1 1.5 0.5 1 1.5

Hypothesis Testing (n = 1) What are  and ? 0.5 1 1.5 0.75 0.5 1 1.5 0.75

Hypothesis Testing (n = 1) What are  and ? 0.5 1 1.5 0.75 0.5 1 1.5 0.75

Hypothesis Testing (n = 1) What are  and ? 0.5 1 1.5  = ¼ = 0.25 0.75 0.5 1 1.5 0.75

Hypothesis Testing (n = 1) What are  and ? 0.5 1 1.5  = ¼ = 0.25 0.75 0.5 1 1.5  = ¼ = 0.25 0.75

Example Now suppose we use the TI-83 to get two random numbers from 0 to 1, and then add them together. Let Y = the sum of the two random numbers. What is the pdf of Y?

Example The graph of the pdf of Y. f(y) 1 y 1 2

Example The graph of the pdf of Y. f(y) 1 Area = 1 y 1 2

Example What is the probability that Y is between 0.5 and 1.5? f(y) 1 0.5 1 1.5 2

Example What is the probability that Y is between 0.5 and 1.5? f(y) 1 0.5 1 1.5 2

Example The probability equals the area under the graph from 0.5 to 1.5. f(y) 1 y 0.5 1 1.5 2

Example Cut it into two simple shapes, with areas 0.25 and 0.5. f(y) 1 0.5 1 1.5 2

Example The total area is 0.75. The probability is 75%. Area = 0.75 f(y) 1 Area = 0.75 y 0.5 1 1.5 2

Verification Use the TI-83 to generate 500 values of Y. Use rand(500) + rand(500). Use a histogram to find out how many are between 0.5 and 1.5.

Hypothesis Testing (n = 2) An experiment is designed to determine whether a random variable X has the distribution U(0, 1) or U(0.5, 1.5). H0: X is U(0, 1). H1: X is U(0.5, 1.5). Two values of X are sampled (n = 2). Let Y be the sum. If Y is more than 1.5, then H0 will be rejected.

Hypothesis Testing (n = 2) Distribution of Y under H0: Distribution of Y under H1: 1 2 3 1 2 3

Hypothesis Testing (n = 2) What are  and ? 1 2 3

Hypothesis Testing (n = 2) What are  and ? 1 2 3 1.5

Hypothesis Testing (n = 2) What are  and ? 1 2 3 1.5

Hypothesis Testing (n = 2) What are  and ?  = 1/8 = 0.125 1 2 3 1.5

Hypothesis Testing (n = 2) What are  and ?  = 1/8 = 0.125  = 1/8 = 0.125 1 2 3 1.5

Conclusion By increasing the sample size, we can lower both  and  simultaneously.

Example Now suppose we use the TI-83 to get three random numbers from 0 to 1, and then add them together. Let Y = the sum of the three random numbers. What is the pdf of Y?

Example The graph of the pdf of Y. f(y) 1 y 1 2 3

Example The graph of the pdf of Y. f(y) 1 Area = 1 y 1 2 3

Example What is the probability that Y is between 1 and 2? f(y) 1 y 1 1 2 3

Example What is the probability that Y is between 1 and 2? f(y) 1 y 1 1 2 3

Example The probability equals the area under the graph from 1 to 2. 1 1 2 3

Verification Use Excel to generate 500 values of Y. Uniform3.xls. Test to see if about 2/3 of the values lie between 1 and 2.

Example Suppose we get 12 random numbers, uniformly distributed between 0 and 1, from the TI-83 and add them all up. Let X = sum of 12 random numbers from 0 to 1. What is the pdf of X?

Example It turns out that the pdf of X is nearly exactly normal with a mean of 6 and a standard of 1. N(6, 1) x 3 4 5 6 7 8 9

Example What is the probability that the sum will be between 5 and 7? P(5 < X < 7) = P(–1 < Z < 1) = 0.8413 – 0.1587 = 0.6826.

Example What is the probability that the sum will be between 4 and 8? P(4 < X < 8) = P(–2 < Z < 2) = 0.9772 – 0.0228 = 0.9544.

Experiment Use the Excel spreadsheet Uniform12.xls to generate 1000 values of X, where X is the sum of 12 random numbers from U(0, 1). We should see a value between 5 and 7 about 68% of the time. We should see a value between 4 and 8 about 95% of the time. We should see a value between 3 and 9 nearly always (99.7%).