Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Learning Goals
To understand the concept of Random Variable Types of Random Variable Concept of PMF, CDF Expectation and variance of a Random Variable Properties of Expectation of Random Variable
Sample space of random experiment 1 : { NNNN, DNNN ,DDNN, DDDN, DDDD} where N= non-defective item drawn, D= Defective item drawn Note: Here since items are drawn at a time, the order doesnt matter. For example, {DNNN,NDNN,NNDN,NNND} all represent the same event. Sample space of random experiment 2: {UUUUU ,UUUUD, UUUDU, UUDUU, UDUUU, DUUUU,UUUDD, UUDDU, UDDUU, DDUUU, DUDUU, DUUDU, DUUUD, UDUDU, UDUUD, UUDUD,DDDUU, DDUUD, DUUDD, UUDDD, UDUDD, UDDUD, UDDDU, DUDUD, DUDDU, DDUDU,DDDDU, DDDUD, DDUDD, DUDDD, UDDDD,DDDDD} Where U= event that the stock price goes up D= event that stock price remains same or goes down (Note: Stock prices reported for 5 days in a week)
3
Corresponding to each value of the random variable, we have a set of sample points and hence a particular probability of occurrence of that value of the random variable Thus, we have a natural probability assignment to the values taken by a random variable A statement of all possible values of a random variable together with the corresponding probabilities gives the probability distribution of the random variable Probability of outcome of each point in the sample space occurring=
Probability 40C *10C /50C = 91390 /230300= 0.39683 4 0 4 10C *40C /50C = 98800 /230300= 0.429006 1 3 4 10C *40C /50C = 35100 / 230300= 0.15241 2 2 4 10C *40C /50C = 4800 /230300= 0.020842 3 1 4 10C *40C /50C =210/230300= 0.000912 4 0 4
So we have the probability distribution for a discrete random variable The probability distribution of a discrete random variable X (For definition check slides 6,7) must satisfy the following two conditions- a) p( x) 0 for all x b) p( x) 1
all x
The probability distribution of a discrete random variable is called the probability mass function To check if a function f(x)= P(X=x) is a pmf, check if conditions a and b are satisfied. Henceforth X is used to represent the random variable in question and x the particular value it takes In this example, they are satisfied! (Check)
5
Discrete or Continuous?
Can you count the number of cubes, the number of cars in the left panel? Can you measure the weight, the time and the scale in the right panel? For all practical purposes, the values of continuous random variables can be measured (at least in theory) to any degree of accuracy while the values taken by discrete random variable can be counted
Visuals from AczelSounderpandian, Complete Business Statistics
Applied Statistics and Computing Lab
7
1
2 3 4
Applied Statistics and Computing Lab
98800 /230300
35100 / 230300 4800 /230300 210/230300
190190/230300 225290/230300
230090/230300 230300/230300
8
All cumulative distribution functions are nondecreasing and equals 1.00 at the largest possible value of the random variable- The probability that the values of the random variable are less than or equal to the largest possible value is 1 by definition!
Applied Statistics and Computing Lab
9
The mean of a probability distribution of a random variable is called the expected value of the random variable The reason for this name is that the mean is the (probability-weighted) average value of the random variable, and therefore it is the value we expect to occur , for discrete random variable E ( x) xp ( x)
all x
Variance of a random variable is the expected squared deviation of the random variable from its mean( Expectation). The idea is similar to that of the variance of a data set. Probabilities of the values of the random variable are used as weights in the computation of the squared deviation from the mean of a discrete random variable. The denition of the variance follows. The variance of a discrete random variable X is given by ( X E ( X )) 2 p( X ) Var(X)= E( X E( X ))2 all X Computational formula for the variance of a random variable Var(X)= E( X 2 ) E 2 ( X ) Check that the two expressions for variance are equal
10
Value of X 0
1 2 3 4
Probability 0.39683
0.429006 0.15241 0.020842 0.000912
E(X)= E ( x) xp ( x) =(0*0.39683+ 1*0.429006+2*0.15241+3*.020842+4*0.000912) all x = .8 Therefore, .8 is the expected number of defective items in a lot of 4.
11
An example: Properties of RV
Consider a book seller. At the beginning of the month he buys each book for 100 Rs and sells them at 120 Rs. Also, he has to incur a fixed monthly cost of 100 Rs towards maintenance of his store, regardless of the books sold. The number of books sold is a random variable. But he has to take a decision regarding how many books to buy at the beginning of the month from his supplier. He is interested in the following questions How many books to order? What is his expected profit per month? What is the standard deviation of the expected profit? As you can guess, he will order the expected value of the books that he can sell. He has the following data on purchase pattern from his shop-
15
20 25
2/5
1/10 1/5
The expected number of books sold=15. He places the order for 15 books His expected revenue= E(120x- 100x-100)= E(20X-100). How to calculate this? It would be very easy if E(20x-100) could be written= 20E(X)-100 We investigate some properties of functions of random variables Applied Statistics and Computing Lab
13
The function h(X) could be X,2X, 3X, X2, log(X) or any function (In computing variance we will use this property with h(X)= X2 ) The expected value of a linear function of a random variable is E(aX + b)= aE(X) +b, where a and b are xed numbers. An useful property of variance: Variance of a linear function of a random variable is V (aX + b)= a2 V(X), where a and b are xed numbers. As you can see, you can use the last two properties to compute the booksellers expected revenue and the expected variation in the revenue Expected Revenue= 20E(X)-100= 20*15-100= 200 Expected variation in Revenue=(20)2 *V(X)= 400*45= 18,000 Expected standard deviation= sqrt(18,000)= 134.16
Applied Statistics and Computing Lab
14
Thank you