Presentation is loading. Please wait.

Presentation is loading. Please wait.

NIPRL Chapter 2. Random Variables 2.1 Discrete Random Variables 2.2 Continuous Random Variables 2.3 The Expectation of a Random Variable 2.4 The Variance.

Similar presentations


Presentation on theme: "NIPRL Chapter 2. Random Variables 2.1 Discrete Random Variables 2.2 Continuous Random Variables 2.3 The Expectation of a Random Variable 2.4 The Variance."— Presentation transcript:

1 NIPRL Chapter 2. Random Variables 2.1 Discrete Random Variables 2.2 Continuous Random Variables 2.3 The Expectation of a Random Variable 2.4 The Variance of a Random Variable 2.5 Jointly Distributed Random Variables 2.6 Combinations and Functions of Random Variables

2 NIPRL 2.1 Discrete Random Variable 2.1.1 Definition of a Random Variable (1/2) Random variable –A numerical value to each outcome of a particular experiment 02 1 3 -2-3

3 NIPRL 2.1.1 Definition of a Random Variable (2/2) Example 1 : Machine Breakdowns –Sample space : –Each of these failures may be associated with a repair cost –State space : –Cost is a random variable : 50, 200, and 350

4 NIPRL 2.1.2 Probability Mass Function (1/2) Probability Mass Function (p.m.f.) –A set of probability value assigned to each of the values taken by the discrete random variable – and –Probability :

5 NIPRL 2.1.2 Probability Mass Function (1/2) Example 1 : Machine Breakdowns –P (cost=50)=0.3, P (cost=200)=0.2, P (cost=350)=0.5 –0.3 + 0.2 + 0.5 =1 50200350 0.30.20.5 0.3 50200350 0.2

6 NIPRL 2.1.3 Cumulative Distribution Function (1/2) Cumulative Distribution Function –Function : –Abbreviation : c.d.f 1.0 0.5 0.3 50200350 0

7 NIPRL 2.1.3 Cumulative Distribution Function (2/2) Example 1 : Machine Breakdowns

8 NIPRL 2.2 Continuous Random Variables 2.2.1 Example of Continuous Random Variables (1/1) Example 14 : Metal Cylinder Production –Suppose that the random variable is the diameter of a randomly chosen cylinder manufactured by the company. Since this random variable can take any value between 49.5 and 50.5, it is a continuous random variable.

9 NIPRL 2.2.2 Probability Density Function (1/4) Probability Density Function (p.d.f.) –Probabilistic properties of a continuous random variable

10 NIPRL 2.2.2 Probability Density Function (2/4) Example 14 –Suppose that the diameter of a metal cylinder has a p.d.f 49.550.5

11 NIPRL 2.2.2 Probability Density Function (3/4) This is a valid p.d.f.

12 NIPRL 2.2.2 Probability Density Function (4/4) The probability that a metal cylinder has a diameter between 49.8 and 50.1 mm can be calculated to be 49.550.5 49.850.1

13 NIPRL 2.2.3 Cumulative Distribution Function (1/3) Cumulative Distribution Function

14 NIPRL 2.2.2 Probability Density Function (2/3) Example 14

15 NIPRL 2.2.2 Probability Density Function (3/3) 49.5 50.549.750.0 1

16 NIPRL 2.3 The Expectation of a Random Variable 2.3.1 Expectations of Discrete Random Variables (1/2) Expectation of a discrete random variable with p.m.f Expectation of a continuous random variable with p.d.f f(x) The expected value of a random variable is also called the mean of the random variable

17 NIPRL 2.3.1 Expectations of Discrete Random Variables (2/2) Example 1 (discrete random variable) –The expected repair cost is

18 NIPRL 2.3.2 Expectations of Continuous Random Variables (1/2) Example 14 (continuous random variable) –The expected diameter of a metal cylinder is –Change of variable: y=x-50

19 NIPRL 2.3.2 Expectations of Continuous Random Variables (2/2) Symmetric Random Variables –If has a p.d.f that is symmetric about a point so that –Then, (why?) –So that the expectation of the random variable is equal to the point of symmetry

20 NIPRL

21 2.3.3 Medians of Random Variables (1/2) Median –Information about the “middle” value of the random variable Symmetric Random Variable –If a continuous random variable is symmetric about a point, then both the median and the expectation of the random variable are equal to

22 NIPRL 2.3.3 Medians of Random Variables (2/2) Example 14

23 NIPRL 2.4 The variance of a Random Variable 2.4.1 Definition and Interpretation of Variance (1/2) Variance( ) –A positive quantity that measures the spread of the distribution of the random variable about its mean value –Larger values of the variance indicate that the distribution is more spread out –Definition: Standard Deviation –The positive square root of the variance –Denoted by

24 NIPRL 2.4.1 Definition and Interpretation of Variance (2/2) Two distribution with identical mean values but different variances

25 NIPRL 2.4.2 Examples of Variance Calculations (1/1) Example 1

26 NIPRL Chebyshev’s Inequality –If a random variable has a mean and a variance, then –For example, taking gives 2.4.3 Chebyshev’s Inequality (1/1)

27 NIPRL Proof

28 NIPRL 2.4.4 Quantiles of Random Variables (1/2) Quantiles of Random variables –The th quantile of a random variable X –A probability of that the random variable takes a value less than the th quantile Upper quartile –The 75th percentile of the distribution Lower quartile –The 25th percentile of the distribution Interquartile range –The distance between the two quartiles

29 NIPRL 2.4.4 Quantiles of Random Variables (2/2) Example 14 –Upper quartile : –Lower quartile : –Interquartile range :

30 NIPRL 2.5 Jointly Distributed Random Variables 2.5.1 Jointly Distributed Random Variables (1/4) Joint Probability Distributions –Discrete –Continuous

31 NIPRL 2.5.1 Jointly Distributed Random Variables (2/4) Joint Cumulative Distribution Function –Discrete –Continuous

32 NIPRL 2.5.1 Jointly Distributed Random Variables (3/4) Example 19 : Air Conditioner Maintenance –A company that services air conditioner units in residences and office blocks is interested in how to schedule its technicians in the most efficient manner –The random variable X, taking the values 1,2,3 and 4, is the service time in hours –The random variable Y, taking the values 1,2 and 3, is the number of air conditioner units

33 NIPRL 2.5.1 Jointly Distributed Random Variables (4/4) Joint p.m.f Joint cumulative distribution function Y= number of units X=service time 1234 10.120.080.070.05 20.080.150.210.13 30.01 0.020.07

34 NIPRL 2.5.2 Marginal Probability Distributions (1/2) Marginal probability distribution –Obtained by summing or integrating the joint probability distribution over the values of the other random variable –Discrete –Continuous

35 NIPRL 2.5.2 Marginal Probability Distributions (2/2) Example 19 –Marginal p.m.f of X –Marginal p.m.f of Y

36 NIPRL Example 20: (a jointly continuous case) Joint pdf: Marginal pdf’s of X and Y:

37 NIPRL 2.5.3 Conditional Probability Distributions (1/2) Conditional probability distributions –The probabilistic properties of the random variable X under the knowledge provided by the value of Y –Discrete –Continuous –The conditional probability distribution is a probability distribution.

38 NIPRL 2.5.3 Conditional Probability Distributions (2/2) Example 19 –Marginal probability distribution of Y –Conditional distribution of X

39 NIPRL 2.5.4 Independence and Covariance (1/5) Two random variables X and Y are said to be independent if –Discrete –Continuous –How is this independency different from the independence among events?

40 NIPRL 2.5.4 Independence and Covariance (2/5) Covariance –May take any positive or negative numbers. –Independent random variables have a covariance of zero –What if the covariance is zero?

41 NIPRL 2.5.4 Independence and Covariance (3/5) Example 19 (Air conditioner maintenance)

42 NIPRL 2.5.4 Independence and Covariance (4/5) Correlation: –Values between -1 and 1, and independent random variables have a correlation of zero

43 NIPRL 2.5.4 Independence and Covariance (5/5) Example 19: (Air conditioner maintenance)

44 NIPRL What if random variable X and Y have linear relationship, that is, where That is, Corr(X,Y)=1 if a>0; -1 if a<0.

45 NIPRL 2.6 Combinations and Functions of Random Variables 2.6.1 Linear Functions of Random Variables (1/4) Linear Functions of a Random Variable –If X is a random variable and for some numbers then and Standardization -If a random variable has an expectation of and a variance of, has an expectation of zero and a variance of one.

46 NIPRL 2.6.1 Linear Functions of Random Variables (2/4) Example 21:Test Score Standardization –Suppose that the raw score X from a particular testing procedure are distributed between -5 and 20 with an expected value of 10 and a variance 7. In order to standardize the scores so that they lie between 0 and 100, the linear transformation is applied to the scores.

47 NIPRL 2.6.1 Linear Functions of Random Variables (3/4) –For example, x=12 corresponds to a standardized score of y=(4 ⅹ 12)+20=68

48 NIPRL 2.6.1 Linear Functions of Random Variables (4/4) Sums of Random Variables –If and are two random variables, then and –If and are independent, so that then

49 NIPRL Properties of

50 NIPRL 2.6.2 Linear Combinations of Random Variables (1/5) Linear Combinations of Random Variables –If is a sequence of random variables and and are constants, then –If, in addition, the random variables are independent, then

51 NIPRL 2.6.2 Linear Combinations of Random Variables (2/5) Averaging Independent Random Variables –Suppose that is a sequence of independent random variables with an expectation and a variance. –Let –Then and –What happened to the variance?

52 NIPRL 2.6.2 Linear Combinations of Random Variables (3/5)

53 NIPRL 2.6.2 Linear Combinations of Random Variables (4/5) Example 21 –The standardized scores of the two tests are –The final score is

54 NIPRL 2.6.2 Linear Combinations of Random Variables (5/5) –The expected value of the final score is –The variance of the final score is

55 NIPRL 2.6.3 Nonlinear Functions of a Random Variable (1/3) Nonlinear function of a Random Variable –A nonlinear function of a random variable X is another random variable Y=g(X) for some nonlinear function g. –There are no general results that relate the expectation and variance of the random variable Y to the expectation and variance of the random variable X

56 NIPRL 2.6.3 Nonlinear Functions of a Random Variable (2/3) –For example, –Consider –What is the pdf of Y? 01x f(x)=1 E(x)=0.5 1.0 2.718 y f(y)=1/y E(y)=1.718

57 NIPRL 2.6.3 Nonlinear Functions of a Random Variable (3/3) CDF methd –The p.d.f of Y is obtained by differentiation to be Notice that

58 NIPRL Determining the p.d.f. of nonlinear relationship between r.v.s: Given and,what is ? If are all its real roots, that is, then where

59 NIPRL Example: determine -> one root is possible in


Download ppt "NIPRL Chapter 2. Random Variables 2.1 Discrete Random Variables 2.2 Continuous Random Variables 2.3 The Expectation of a Random Variable 2.4 The Variance."

Similar presentations


Ads by Google