The mean, variance and covariance. (Chs 3.4.1, 3.4.2)

Similar documents
Joint probability distributions: Discrete Variables. Two Discrete Random Variables. Example 1. Example 1

Notes for Math 324, Part 19

Analysis of Engineering and Scientific Data. Semester

Random Variables and Their Distributions

CHAPTER 4 MATHEMATICAL EXPECTATION. 4.1 Mean of a Random Variable

Jointly Distributed Random Variables

Chapter 4. Chapter 4 sections

Continuous Random Variables and Continuous Distributions

Chapter 4 continued. Chapter 4 sections

MA/ST 810 Mathematical-Statistical Modeling and Analysis of Complex Systems

Random Variables. Saravanan Vijayakumaran Department of Electrical Engineering Indian Institute of Technology Bombay

ECON Fundamentals of Probability

STAT 430/510: Lecture 16

STAT2201. Analysis of Engineering & Scientific Data. Unit 3

Joint Distribution of Two or More Random Variables

Random Variables. Cumulative Distribution Function (CDF) Amappingthattransformstheeventstotherealline.

CHAPTER 5. Jointly Probability Mass Function for Two Discrete Distributed Random Variables:

Random Variables. Lecture 6: E(X ), Var(X ), & Cov(X, Y ) Random Variables - Vocabulary. Random Variables, cont.

SDS 321: Introduction to Probability and Statistics

Expectation of Random Variables

Outline PMF, CDF and PDF Mean, Variance and Percentiles Some Common Distributions. Week 5 Random Variables and Their Distributions

3 Multiple Discrete Random Variables

STAT 414: Introduction to Probability Theory

STAT 430/510 Probability Lecture 7: Random Variable and Expectation

STAT 418: Probability and Stochastic Processes

Outline Properties of Covariance Quantifying Dependence Models for Joint Distributions Lab 4. Week 8 Jointly Distributed Random Variables Part II

f X, Y (x, y)dx (x), where f(x,y) is the joint pdf of X and Y. (x) dx

1 Probability and Random Variables

More on Distribution Function

Chapter 2. Some Basic Probability Concepts. 2.1 Experiments, Outcomes and Random Variables

Chapter 3 Discrete Random Variables

Random Variables. Random variables. A numerically valued map X of an outcome ω from a sample space Ω to the real line R

18.440: Lecture 28 Lectures Review

Definition: A random variable X is a real valued function that maps a sample space S into the space of real numbers R. X : S R

Introduction to Probability and Statistics Slides 3 Chapter 3

MATH/STAT 3360, Probability

Math438 Actuarial Probability

MAS113 Introduction to Probability and Statistics. Proofs of theorems

IAM 530 ELEMENTS OF PROBABILITY AND STATISTICS LECTURE 3-RANDOM VARIABLES

3. Probability and Statistics

Actuarial Science Exam 1/P

Random Variables and Expectations

Fundamental Tools - Probability Theory II

Part (A): Review of Probability [Statistics I revision]

Basics on Probability. Jingrui He 09/11/2007

BASICS OF PROBABILITY

Topic 3: The Expectation of a Random Variable

STAT Chapter 5 Continuous Distributions

1 Basic continuous random variable problems

Recall that if X 1,...,X n are random variables with finite expectations, then. The X i can be continuous or discrete or of any other type.

Notes 12 Autumn 2005

Introduction to Machine Learning

Notes for Math 324, Part 20

18.440: Lecture 28 Lectures Review

Probability- the good parts version. I. Random variables and their distributions; continuous random variables.

Arkansas Tech University MATH 3513: Applied Statistics I Dr. Marcel B. Finan

P (x). all other X j =x j. If X is a continuous random vector (see p.172), then the marginal distributions of X i are: f(x)dx 1 dx n

Chapter 4. Continuous Random Variables

MATHEMATICS 154, SPRING 2009 PROBABILITY THEORY Outline #11 (Tail-Sum Theorem, Conditional distribution and expectation)

Introduction to Machine Learning

Introduction to Computational Finance and Financial Econometrics Probability Review - Part 2

Probability Distributions

Continuous Random Variables

3 Continuous Random Variables

STT 441 Final Exam Fall 2013

CME 106: Review Probability theory

Probability and Distributions

EC212: Introduction to Econometrics Review Materials (Wooldridge, Appendix)

Exam P Review Sheet. for a > 0. ln(a) i=0 ari = a. (1 r) 2. (Note that the A i s form a partition)

Ch. 5 Joint Probability Distributions and Random Samples

1 Review of Probability

STA 111: Probability & Statistical Inference

STAT/MATH 395 PROBABILITY II

LIST OF FORMULAS FOR STK1100 AND STK1110

Preliminary Statistics Lecture 3: Probability Models and Distributions (Outline) prelimsoas.webs.com

1 Review of Probability and Distributions

1 Presessional Probability

Chapter 1: Revie of Calculus and Probability

SUMMARY OF PROBABILITY CONCEPTS SO FAR (SUPPLEMENT FOR MA416)

Continuous Random Variables. What continuous random variables are and how to use them. I can give a definition of a continuous random variable.

REVIEW OF MAIN CONCEPTS AND FORMULAS A B = Ā B. Pr(A B C) = Pr(A) Pr(A B C) =Pr(A) Pr(B A) Pr(C A B)

Problem Solving. Correlation and Covariance. Yi Lu. Problem Solving. Yi Lu ECE 313 2/51

6.041/6.431 Fall 2010 Quiz 2 Solutions

Statistics 427: Sample Final Exam

CMPSCI 240: Reasoning Under Uncertainty

Bivariate Distributions

Probability and Statistics Notes

Lecture 4: Proofs for Expectation, Variance, and Covariance Formula

Random variables (discrete)

ECE353: Probability and Random Processes. Lecture 7 -Continuous Random Variable

Probability. Paul Schrimpf. January 23, UBC Economics 326. Probability. Paul Schrimpf. Definitions. Properties. Random variables.

Tom Salisbury

Chapter 2. Continuous random variables

SDS 321: Introduction to Probability and Statistics

Bayesian statistics, simulation and software

Math 510 midterm 3 answers

Week 9 The Central Limit Theorem and Estimation Concepts

S n = x + X 1 + X X n.

Probability Theory and Statistics. Peter Jochumzen

Lecture 16 : Independence, Covariance and Correlation of Discrete Random Variables

Transcription:

4 The mean, variance and covariance (Chs 3.4.1, 3.4.2)

Mean (Expected Value) of X Consider a university having 15,000 students and let X equal the number of courses for which a randomly selected student is registered. The pdf of X is given to you as follows: Students pay more money when enrolled in more courses, and so the university wants to know what the average number of courses students take per semester. 2

Mean (Expected Value) of X For a discrete random variable X with pdf f(x), the expected value or mean value of X is denoted as E(X) and is calculated as:! " = $ % '(" = %) * 3

Example Consider a university having 15,000 students and let X equal the number of courses for which a randomly selected student is registered. The pdf of X is given to you as follows: What is E(X)? 4

Mean (Expected Value) of X For a discrete random variable X with pdf f(x), the expected value or mean value of X is denoted as as E(X) and is calculated as:! " = $ % '(" = %) * For a continuous random variable X with pdf f(x), the expected value or mean value of X is calculated as µ X = E(X) = Z 1 1 x f(x)dx 5

Example The lifetime (in years) of a certain brand of battery is exponentially distributed with λ = 0.25. How long, on average, will the battery last? 6

Example The lifetime (in years) of a certain brand of battery is exponentially distributed with λ = 0.25. How long, on average, will the battery last? Review: At what time will 50% of the batteries fail? 7

The Expected Value of a Function If the discrete r.v. X has a a pdf f(x), then the expected value of any function g(x), computed as:! " # = % " & ((# = &) + Note that E[g(X)] is computed in the same way that E(X) itself is, except that g(x) is substituted in place of x. 8

The Expected Value of a Function If the discrete r.v. X has pdf f(x), then the expected value of any function g(x) is computed as:! " # = % " & ((# = &) + Similarly, if the continuous r.v. X has pdf f(x), then the expected value of any function g(x) is computed as: µ h(x) = E[h(X)] = Z 1 1 h(x) f(x) dx 9

The Expected Value of a Function A random variable X is distributed f(x) such that f(x) = ¾(1-x 2 ), -1 <= x <= 1. What is E(X 3 )? 10

The Expected Value of a Function A random variable X is distributed f(x) such that f(x) = ¾(1-x 2 ), -1 <= x <= 1. What is E(X 3 )? Review: What is F(x)? 11

Expected Value of g(x) = ax+b If g(x) is a linear function of X (i.e., g(x) = ax + b) then E[g(X)] can be easily computed from E(X). Proposition E(aX + b) = a E(X) + b This works for continuous and discrete random variables. 12

Example Consider a university having 15,000 students and let X equal the number of courses for which a randomly selected student is registered. The pdf of X is given to you as follows: Earlier, we calculated that E(X) was 4.57. If students pay $500 per course plus a $100 per-semester registration fee, what is the average amount of money the university can expect a student to pay each a semester? 13

The Variance of X For a discrete random variable X with pdf f(x), the variance of X is denoted as Var(X) = s 2 X and is calculated as:!"# $ = &' $ ) * = & (, )) * /($ =,) The standard deviation (SD) of X is 0 14

Example Consider a university having 15,000 students and let X equal the number of courses for which a randomly selected student is registered. The pdf of X is given to you as follows: Earlier, we calculated that E(X) was 4.57. What is Var(X)? What about sd(x)? 15

The Variance of X For a discrete random variable X with pdf f(x), the variance of X is denoted as Var(X) = s 2 X and is calculated as:!"# $ = &' $ ) * = & (, )) * /($ =,) 0 Similarly, for a continuous random variable X with pdf f(x), the variance of X is denoted as Var(X) = s 2 X and is calculated as:!"# $ = & ( ) * & +&, 16

A Shortcut Formula for s 2 The variance can also be calculated using an alternative formula: V (x) = 2 = E(X 2 ) E(X) 2 Why would we use this equation instead? 17

The Variance of a Function The variance of g(x) is calculated similarly to what we have seen:!"# $ % = ' $ ( * $ ( +,(()/( with a similar form for the discrete case. 0 18

The Variance of a Function The variance of g(x) is calculated similarly to what we have seen:!"# $ % = ' $ ( * $ ( +,(()/( with a similar form for the discrete case. 0 As with the expected value, there is also a short-cut formula if g(x) is a linear function of X.!"#["% + '] = * " +!"#[%] Can we do a simple proof to show this is true? 19

Example Consider a university having 15,000 students and let X equal the number of courses for which a randomly selected student is registered. The pdf of X is given to you as follows: Earlier, we calculated that E(X) was 4.57. If students pay $500 per course plus a $100 per-semester registration fee, what is the expected standard deviation of the amount of money students to pay each a semester? 20

Classwork #1 A computer store has purchased 3 computers of a certain type at $500 apiece. It will sell them for $1000 apiece. The manufacturer has agreed to repurchase any computers still unsold after a specified period at $200 apiece. Let X denote the number of computers sold, and suppose that P(X = 0) = 0.1, P(X = 1) = 0.2, P(X = 2) = 0.3, P(X = 3) = 0.4. What is the expected profit? What is the standard deviation of the profit? 21

Classwork #2 Show that if then! " = $ % '(" = %) * E(aX + b) = a E(X) + b Show that E(X E(X)) 2 = E(X 2 ) (E(X)) 2 22

Binomial Mean and Variance If X ~ Bin(n, p), then Expectation: E(X) = np (let s prove this one) Variance: V(X) = np(1 p) = npq Example: A biased coin is tossed 10 times, so that the odds of heads are 3:1. What notation do we use to describe X? What is the mean of X? The variance? 23

Example cont d NOTE: Even though X can take on only integer values, E(X) need not be an integer. If we perform a large number of independent binomial experiments, each with n = 10 trials and p =.75, then the average number of successes per experiment will be close to 7.5. What is the probability that X is within 1 standard deviation of its mean value? 24

Distribution E(X) Var(X) Geom(π) 1/π (1-π)/π NB(r, π) r*π/(1-π) r*π/(1-π) 2 Poisson(λ) λ λ Uniform(a,b) ½(a+b) 1/12*(b-a) 2 Exp(λ) 1/λ 1/λ 2 Weib(α,β) βγ(1+1/α) β 2 {Γ(1+2/α)-[Γ(1+1/α)] 2 } Beta(α,β) α/(α+β) αβ/[(α+β) 2 (α+β+1)] 25

Covariance When two random variables X and Y are not independent, it is frequently of interest to assess how strongly they are related to one another. The covariance between two rv s X and Y is Cov(X, Y) = E[(X µ X )(Y µ Y )] X, Y discrete X, Y continuous 26

Covariance If both variables tend to deviate in the same direction (both go above their means or below their means at the same time), then the covariance will be positive. If the opposite is true, the covariance will be negative. If X and Y are not strongly related, the covariance will be near 0. 27

Covariance shortcut The following shortcut formula for Cov(X, Y) simplifies the computations. Proposition Cov(X, Y) = E(XY) µ X µ Y According to this formula, no intermediate subtractions are necessary;; only at the end of the computation is µ X µ Y subtracted from E(XY). This is analogous to the shortcut for the variance computation we saw earlier. 28

Covariance The covariance depends on both the set of possible pairs and the probabilities of those pairs. Below are examples of 3 types of co-varying : (a) positive covariance;; (b) negative covariance;; (c) covariance near zero 29

Example An insurance agency services customers who have both a homeowner s policy and an automobile policy. For each type of policy, a deductible amount must be specified. For an automobile policy, the choices are $100 and $250, whereas for a homeowner s policy, the choices are $0, $100, and $200. Suppose an individual Bob -- is selected at random from the agency s files. Let X = his deductible amount on the auto policy and Y = his deductible amount on the homeowner s policy. 30

Example cont d Suppose the joint pmf is given by the insurance company in the accompanying joint probability table: What is the covariance between X and Y? 31

Correlation Definition The correlation coefficient of X and Y, denoted by Corr(X, Y), r X,Y, or just r, is defined by It represents a scaled covariance correlation ranges between -1 and 1. 32

Example In the insurance example, what is the correlation between X and Y? 33

Correlation Propositions 1. Cov(aX + b, cy + d) = a c Cov (X, Y) 2. Corr(aX + b, cy + d) = sgn(ac) Corr(X, Y) 3. For any two rv s X and Y, 1 Corr(X, Y) 1 4. r = 1 or 1 iff Y = ax + b for some numbers a and b with a ¹ 0. 34

Correlation If X and Y are independent, then r = 0, but r = 0 does not imply independence. The correlation coefficient r is a measure of the linear relationship between X and Y, and only when the two variables are perfectly related in a linear manner will r be as positive or negative as it can be. Two variables could be uncorrelated yet highly dependent because there is a strong nonlinear relationship, so be careful not to conclude too much from knowing that r = 0. 35

Interpreting Correlation xkcd.com/552/ 36

Other Useful Rules 1. E(aX+bY) = ae(x) + be(y) 2. Var(aX + by) = a 2 Var(X) + b 2 Var(Y) + 2ab*Cov(X, Y) 3. Var(aX by) = a 2 Var(X) + b 2 Var(Y) - 2ab*Cov(X, Y) 37