The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 4. Discrete Probability Distributions Section 4.2. Expected Values of Random Variables Jiaping.

Slides:



Advertisements
Similar presentations
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 5. Continuous Probability Distributions Section 5.6: Normal Distributions Jiaping Wang Department.
Advertisements

Continuous Random Variables Chapter 5 Nutan S. Mishra Department of Mathematics and Statistics University of South Alabama.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 4. Discrete Probability Distributions Section 4.11: Markov Chains Jiaping Wang Department of Mathematical.
Joint and marginal distribution functions For any two random variables X and Y defined on the same sample space, the joint c.d.f. is For an example, see.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 5. Continuous Probability Distributions Sections 5.4, 5.5: Exponential and Gamma Distributions.
Jiaping Wang Department of Mathematical Science 02/13/2013, Monday
Chapter 4 Mathematical Expectation.
Random Variables A random variable is a variable (usually we use x), that has a single numerical value, determined by chance, for each outcome of a procedure.
1 Set #3: Discrete Probability Functions Define: Random Variable – numerical measure of the outcome of a probability experiment Value determined by chance.
Independence of random variables
4.4 Mean and Variance. Mean How do we compute the mean of a probability distribution? Actually, what does that even mean? Let’s look at an example on.
Chapter 5 Basic Probability Distributions
Chapter 6 Continuous Random Variables and Probability Distributions
Probability Mass Function Expectation 郭俊利 2009/03/16
Continuous Random Variables and Probability Distributions
Week 51 Theorem For g: R  R If X is a discrete random variable then If X is a continuous random variable Proof: We proof it for the discrete case. Let.
Chris Morgan, MATH G160 February 3, 2012 Lecture 11 Chapter 5.3: Expectation (Mean) and Variance 1.
Copyright © Cengage Learning. All rights reserved. 4 Continuous Random Variables and Probability Distributions.
Probability Distributions W&W Chapter 4. Continuous Distributions Many variables we wish to study in Political Science are continuous, rather than discrete.
Chapter 16: Random Variables
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 4 and 5 Probability and Discrete Random Variables.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Discrete Random Variables Chapter 4.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 5. Continuous Probability Distributions Sections 5.2, 5.3: Expected Value of Continuous Random.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Review of Exam 2 Sections 4.6 – 5.6 Jiaping Wang Department of Mathematical Science 04/01/2013, Monday.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 4. Discrete Probability Distributions Sections 4.3, 4.4. Bernoulli and Binomial Distributions Jiaping.
1 Dr. Jerrell T. Stracener, SAE Fellow Leadership in Engineering EMIS 7370/5370 STAT 5340 : PROBABILITY AND STATISTICS FOR SCIENTISTS AND ENGINEERS Systems.
Random Variables A random variable is simply a real-valued function defined on the sample space of an experiment. Example. Three fair coins are flipped.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 8. Some Approximations to Probability Distributions: Limit Theorems Sections 8.4: The Central Limit.
A study of education followed a large group of fourth-grade children to see how many years of school they eventually completed. Let x be the highest year.
Continuous Distributions The Uniform distribution from a to b.
Chapter 5 Discrete Probability Distributions
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 4. Discrete Probability Distributions Sections 4.7, 4.8: Poisson and Hypergeometric Distributions.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Binomial Experiment A binomial experiment (also known as a Bernoulli trial) is a statistical experiment that has the following properties:
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Review of Exam I Sections Jiaping Wang Department of Mathematical Science 02/18/2013, Monday.
Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 5 Discrete Random Variables.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 5 Discrete Random Variables.
Chapter 4. Discrete Random Variables A random variable is a way of recording a quantitative variable of a random experiment. A variable which can take.
Mean and Standard Deviation of Discrete Random Variables.
Chapter 16: Random Variables
Discrete Random Variables. Numerical Outcomes Consider associating a numerical value with each sample point in a sample space. (1,1) (1,2) (1,3) (1,4)
STA347 - week 51 More on Distribution Function The distribution of a random variable X can be determined directly from its cumulative distribution function.
3.3 Expected Values.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 4. Discrete Probability Distributions Section 4.6: Negative Binomial Distribution Jiaping Wang.
Expectation. Let X denote a discrete random variable with probability function p(x) (probability density function f(x) if X is continuous) then the expected.
BUS304 – Probability Theory1 Probability Distribution  Random Variable:  A variable with random (unknown) value. Examples 1. Roll a die twice: Let x.
Chapter 2: Random Variable and Probability Distributions Yang Zhenlin.
Random Variables. Numerical Outcomes Consider associating a numerical value with each sample point in a sample space. (1,1) (1,2) (1,3) (1,4) (1,5) (1,6)
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 4. Discrete Probability Distributions Sections 4.9, 4.10: Moment Generating Function and Probability.
Continuous Random Variables and Probability Distributions
The Mean of a Discrete Random Variable Lesson
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 5 Discrete Random Variables.
Chapter 6 Large Random Samples Weiqi Luo ( 骆伟祺 ) School of Data & Computer Science Sun Yat-Sen University :
7.2 Means & Variances of Random Variables AP Statistics.
1 Dr. Jerrell T. Stracener, SAE Fellow Leadership in Engineering EMIS 7370/5370 STAT 5340 : PROBABILITY AND STATISTICS FOR SCIENTISTS AND ENGINEERS Systems.
1 Chapter 4 Mathematical Expectation  4.1 Mean of Random Variables  4.2 Variance and Covariance  4.3 Means and Variances of Linear Combinations of Random.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Review of Final Part I Sections Jiaping Wang Department of Mathematics 02/29/2013, Monday.
Chapter 7 Lesson 7.4a Random Variables and Probability Distributions 7.4: Mean and Standard Deviation of a Random Variable.
Week 61 Poisson Processes Model for times of occurrences (“arrivals”) of rare phenomena where λ – average number of arrivals per time period. X – number.
Jiaping Wang Department of Mathematical Science 04/22/2013, Monday
Section 7.3: Probability Distributions for Continuous Random Variables
Random Variables and Probability Distribution (2)
Chapter 16 Random Variables.
Reference: (Material source and pages)
Chapter. 5_Probability Distributions
Chapter 4: Mathematical Expectation:
Chapter 3: Averages and Variation
Quantitative Methods Varsha Varde.
Handout Ch 4 實習.
Mathematical Expectation
Presentation transcript:

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 4. Discrete Probability Distributions Section 4.2. Expected Values of Random Variables Jiaping Wang Department of Mathematical Science 02/06/2013, Monday

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Outline Expected Values Variance and Standard Deviation Some Properties Tchebysheff’s Theorem Homework #4

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Part 1. Expected Values

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Long-run Relative Frequency of Occurrence From these flipping coins, you win +1 and -1 (lose money) in half of the time, so the average is (-1)(1/2)+(1)(1/2) = 0. Suppose you and your friend are matching balanced coins. Each of you flips a coin. If the upper faces match, you win $1; if they do not match, you lose $1. So on average, how much will you win per game in a long run? Suppose you and your friend are matching balanced coins. Each of you flips a coin. If the upper faces match, you win $1; if they do not match, you lose $1. So on average, how much will you win per game in a long run?

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Definition 4.4 The expected value of a discrete random variable X with probability distribution p(x) is given as (The sum is over all values of x for which p(x)>0) We sometimes use the notation E(X)=μ for this equivalence. Definition 4.4 The expected value of a discrete random variable X with probability distribution p(x) is given as (The sum is over all values of x for which p(x)>0) We sometimes use the notation E(X)=μ for this equivalence. Definition 4.4 Note: Not all expected values exist, the sum above must converge absolutely, ∑|x|p(x)<∞.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Theorem 4.1 Theorem 4.1 If X is a discrete random variable with probability p(x) and if g(x) is any real-valued function of X, then E(g(x)=∑g(x)p(x). Theorem 4.1 If X is a discrete random variable with probability p(x) and if g(x) is any real-valued function of X, then E(g(x)=∑g(x)p(x). Now if we change the wining function, g(x)=3x, which means, if coins are matched, then you win $3, otherwise, you lose $3. So the expected value becomes (3)(1/2)+(-3)(1/2)=0

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Part 2. Variance and Standard Deviation

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Definitions 4.5 and 4.6 The variance of a random variable X with expected value μ is given by V(X)=E[(X- μ) 2 ] Sometimes we use the notation σ 2 = E[(X- μ) 2 ] For this equivalence. The variance of a random variable X with expected value μ is given by V(X)=E[(X- μ) 2 ] Sometimes we use the notation σ 2 = E[(X- μ) 2 ] For this equivalence. The standard deviation is a measure of variation that maintains the original units of measure. The standard deviation of a random variable is the square root of the variance and is given by

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Cont. Case I: μ = (-1.0)(1/2)+(1)(1/2)=0; σ 2 =(-1) 2 (1/2)+(1) 2 (1/2)=1. Case II: μ = (-1.5)(1/2)+(1)(1/4)+ (2)(1/4)=0; σ 2 =(-1.5) 2 (1/2)+(1) 2 (1/4)+ 1) 2 (1/4)=2.375.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Cont. Consider the percentages as probabilities, then for 2000 μ = 3(0.069)+8(0.073)+…+(90)(0.033) =36.6, and σ 2 = (3-36.6) 2 (0.069)+ ( ) 2 (0.073) + … + ( ) 2 (0.033) = Similarly, we can find for 2100, μ = 42.5 and σ 2 = Age Interval Age Midpoint Under 536.9%6.3% %6.2% %12.8% %12.3% %12.0% %11.6% % %9.8% %8.3% 80 and over 903.3%9.9%

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Example 4.3 A department supervisor is considering purchasing a photocopy machine. One consideration is how often the machine will need repairs. Let X denote the number of repairs during one year. Base on past performance, the distribution of X is shown as follows Number of Repairs, x 0123 p(x) What is the expected number of repairs during a year? 2.What are the variance and standard deviation of the number of repairs during a year?

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Solution 1.E(X)=∑xp(x) = (0)(0.2)+(1)(0.3)+(2)(0.4)+(3)(0.1)=1.4 2.V(X)= ∑(x-E(X)) 2 p(x) = (0-1.4) 2 (0.2)+(1-1.4) 2 (0.3)+(2-1.4) 2 (0.4)+(3-1.4) 2 (0.1) = So the standard deviation is 0.92.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Part 3. Some Properties

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Theorem 4.2 For any random variable X and constants a and b. 1.E(aX + b) = aE(X) + b 2. V(aX + b) = a 2 V(X) Theorem 4.2 For any random variable X and constants a and b. 1.E(aX + b) = aE(X) + b 2. V(aX + b) = a 2 V(X) Standardized random variable: If X has mean μ and standard deviation σ, then Y=(X – μ)/ σ has E(Y)=0 and V(Y)=1, thus Y can be called the standardized random variable of X. Standardized random variable: If X has mean μ and standard deviation σ, then Y=(X – μ)/ σ has E(Y)=0 and V(Y)=1, thus Y can be called the standardized random variable of X. Theorem 4.3 If X is a random variable with mean μ, then V(X)= E(X 2 ) – μ 2 Theorem 4.3 If X is a random variable with mean μ, then V(X)= E(X 2 ) – μ 2

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL The department supervisor in Example 4.3 wants to consider the cost of maintenance before purchasing the photocopy machine. The cost of maintenance consists of the expense of a service agreement and the cost of repairs. The service agreement can be purchased for $200. With the agreement, the cost of each repair is $50. Find the mean, variance and standard deviation of the annual costs of repair for the photocopy machine. Example 4.4 Solution: Now the annual cost of the maintenance is 50X Recall that E(X)=1.4 and V(X)=0.84 from Example 4.3, so we have E(50X+200)=50E(X)+200=(50)(1.4)+200=270; V(50X+200)=2500V(X)= (2500)(0.84)=2100, so the standard deviation is $45.83.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Use the results of Theorem 4.3 to compute the variance of X as given in Example 4.3. Example 4.5 Solution: E(X)=1.4, E(X 2 )=∑x 2 p(x)=0 2 (0.2)+1 2 (0.3)+2 2 (0.4)+3 2 (0.1)=2.8 Then V(X)= E(X 2 )-E 2 (X) = =0.84. Number of Repairs, x 0123 p(x)

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Part 4. Tchebysheff’s Inequality

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Theorem 4.4 Tchebysheff’s Theorem. Let X be a random variable with mean μ and standard deviation σ. Then for any positive k, P(|X – μ|/ σ < k) ≥ 1/k 2 Tchebysheff’s Theorem. Let X be a random variable with mean μ and standard deviation σ. Then for any positive k, P(|X – μ|/ σ < k) ≥ 1/k 2 Consider Y=(X- μ)/ σ, then E(Y)=0 and V(Y)=1.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Example 4.6 The daily production of electric motors at a certain factory averaged 120 with a standard deviation of What can be said about the fraction of days on which the production level falls between 100 and 140? 2.Find the shortest interval certain to contain at least 90% of the daily production levels. The daily production of electric motors at a certain factory averaged 120 with a standard deviation of What can be said about the fraction of days on which the production level falls between 100 and 140? 2.Find the shortest interval certain to contain at least 90% of the daily production levels. Solution: The interval from 100 to 140 means k=2 so that |X-μ|<2σ for μ=120 and σ=10. So based on Chebysheff’s inequality, we have 1-1/4=0.75, which mean at least 75% of all days will have a total production values that falls in this interval. TO find k, we set (1-1/k 2 )=0.9, then k=3.16, the interval will be from 120-(3.16)(10) to 120+(3.16)(10), or 88.4 to

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Example 4.7 The annual cost of maintenance for a certain photocopy machine has a mean of $270 and a variance of $2100 (see example 4.4). The manager wants to budget enough for maintenance that he is likely to go over the budget amount. He is considering budgeting $400 for maintenance. How often will the maintenance cost exceed this amount? Solution: Let X=400, so k=( )/45.8=2.84, then the interval 270- (2.84)(45.8) to (2.84)(45.8) or 140 to 400 contains at least 1- 1/(2.84*2.84) = 0.88, thus at most 0.12 of the probability mass can exceed $400.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Example 4.8 Suppose the random variable X has the probability mass function given in the table Evaluate Tchebysheff’s inequality for k=2. Suppose the random variable X has the probability mass function given in the table Evaluate Tchebysheff’s inequality for k=2. x01 p(x)1/83/41/8 Solution: Find mean E(X)=0, find V(X)=1/8 + 1/8=0.25, so σ = 0.5, thus P(|X-E(X)|<2(0.5))=P(|X-E(X)|<1)=P(X=0)=3/4. By Chebysheff’s inequality, P(|X- E(X)|<2 σ) ≥1-1/4=0.75.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Homework #4 Page 100: 4.2 Page 101: 4.8 Page 102: 4.12 Page 116: 4.17 Page 118: 4.26 Page 119: 4.33 Page 120: 4.42 Homework #4 Page 100: 4.2 Page 101: 4.8 Page 102: 4.12 Page 116: 4.17 Page 118: 4.26 Page 119: 4.33 Page 120: 4.42