Random Variable and its Properties

54
Prof. Dr. S. K. Bhattacharjee Department of Statistics University of Rajshahi

description

Random Variable and its Properties. Prof. Dr. S. K. Bhattacharjee Department of Statistics University of Rajshahi. Random Variable and its Properties. - PowerPoint PPT Presentation

Transcript of Random Variable and its Properties

Page 1: Random Variable and its Properties

Prof. Dr. S. K. Bhattacharjee Department of Statistics

University of Rajshahi

Page 2: Random Variable and its Properties

Random Variable and its Properties

Basic concepts, Discrete and Continuous random variables, Density and Distribution functions, Mathematical expectations and Variance, Functions of a random variable. Marginal and Conditional distributions. Conditional expectation and conditional variance. Conditional independence, Entropy.

Page 3: Random Variable and its Properties

Random Variable

Let Ω be a sample space corresponding to some experiment ξ and let X: Ω→ R be a function from the sample space to the real line. Then X is called a random variable.

A random variable is a function from a sample space into the real numbers.

the outcome of the experiment is a random variable

Page 4: Random Variable and its Properties

Examples of Random Variables

Page 5: Random Variable and its Properties

Discrete and Continuous R.V.

Page 6: Random Variable and its Properties

Examples of Discrete R.V.

No. of students attending in a class.No. of accident in a particular day.No. of mobile calls in an hour.

Page 7: Random Variable and its Properties

Examples of Continuous R.V.

Height of a man.Amount of water drinks a person per day.Amount of rice consumption of a family per

month.

Page 8: Random Variable and its Properties

Probability DistributionSince Random variables cannot be predicted

exactly, they must be described in the language of probability.

Every outcome of the experiment will have a probability associated with it.

The pattern of probabilities that are assigned to the values of the random variable is called the probability distribution of the random variable.

Two types of Distribution: Discrete Distribution and Continuous Distribution.

Page 9: Random Variable and its Properties

Probability Distributions of Discrete Random Variables

The probability distribution of a discrete random variable Y is the set of values that this random variable can take, together with their associated probabilities. Probabilities are numbers between zero and one inclusive that always add to one when summed over all possible values of the random variable. Example: If we toss a fair coin twice, and Y is the total number of heads that turn up.

Probability Distribution of Y isPossible values of the random variable Y

0 1 2

Associated probabilities .25 .50 .25

Page 10: Random Variable and its Properties

Probability Distribution and CDFMathematical form of this distribution is Pry=x=

The CDF is defined by F(x)=PrY≤x = xxx

Cx 2

0

2 )211()21(

xxCx 22 )211()21(

Page 11: Random Variable and its Properties

Graph of CDF for Discrete Distribution

Page 12: Random Variable and its Properties

Example

Page 13: Random Variable and its Properties

Probability Distribution and CDF

Page 14: Random Variable and its Properties

Density Functions of Binomial and Poisson Distributions.

Page 15: Random Variable and its Properties

Examples of Discrete Probability Distribution

BernoulliBinomialPoissonNegative BinomialUniformHypergeometric

Page 16: Random Variable and its Properties

Density Function for Continuous Random Variables

Page 17: Random Variable and its Properties

Density Function and CDF for Continuous R.V.

Page 18: Random Variable and its Properties

Density Function for Continuous Random Variables

Page 19: Random Variable and its Properties

Examples of Continuous DistributionUniformNormalExponentialGammaBeta

Page 20: Random Variable and its Properties

Normal Probability Distribution

The pdf of this distribution is given by

Page 21: Random Variable and its Properties

Density Curve of Normal Distribution

Page 22: Random Variable and its Properties

Example of Normal Distribution

Page 23: Random Variable and its Properties

Answer

Page 24: Random Variable and its Properties

Answer

Page 25: Random Variable and its Properties

Answer

Page 26: Random Variable and its Properties

Answer

Page 27: Random Variable and its Properties

Expectations of Random Variables

Page 28: Random Variable and its Properties

Variance of R.V.

Page 29: Random Variable and its Properties

ExampleConsider as an example the New York State Daily Numbers lottery game. The simplest version of the game works as follows: each day a three digit number between 000 and 999, inclusive, is chosen. You pay $1 to bet on a particular number in a game. If your umber comes up, you get back $500 (for a net profit of $499), and if your number doesn’t come up, you get nothing (for a net loss of $1). Consider the random process that corresponds to one play of the game, and define the random variable W to be the net winnings from a play. The following table summarizes the properties of the random variable as they relate to the random process:

Outcome of process Probability Value of WYour number comes up p = 1/1000 W = 499Your number doesn’t come up p = 999/1000 W = −1

Page 30: Random Variable and its Properties

MeanIn the long run, we expect to win 1 time out of every 1000 plays, where we’d win $499, and we expect to lose 999 out of every 1000 plays, where we’d lose $1 (this is just the frequency theory definition of probabilities). That is, our rate of winnings per play, in the long run, would be $499, .001 of the time, and −$1, .999 of the time, or (499)(.001) + (−1)(.999) = −.5.In the long run, we lose 50/c each time we play. Note that on any one play, we never lose 50/c (we either win $499 or lose $1); rather, this is saying that if you play the game 10000 times, you can expect to be roughly $5000 down at the end. An even better way to look at it is that if 10 million people play the game every day, the state can expect to only have to give back about $5 million, a daily profit of a cool $5 million (this is why states run lotteries!).

Page 31: Random Variable and its Properties

Variance

Page 32: Random Variable and its Properties

Examples

Page 33: Random Variable and its Properties

Expectations of Functions of Random Variable

Page 34: Random Variable and its Properties

Properties of Expectations

Page 35: Random Variable and its Properties

Properties of Expectations

Page 36: Random Variable and its Properties

Properties of Expectations

Page 37: Random Variable and its Properties

Joint Probability Mass Function

Page 38: Random Variable and its Properties

Marginal Distribution

Page 39: Random Variable and its Properties

Conditional Distribution

Page 40: Random Variable and its Properties

Conditional Variance

Page 41: Random Variable and its Properties

Marginal and Conditional Distribution

X↓ Y→ 0 1 2 P(X) P(X|Y=1)

0 1/8 1/8 0 1/4 1/4

1 1/8 1/4 1/8 1/2 1/2

2 0 1/8 1/8 1/4 1/4

P(Y) 1/4 1/2 1/4

P(Y|X=2)

0 1/2 1/2

Page 42: Random Variable and its Properties

Conditional Mean and Variance

Marginal Distribution of X: X : 0 1 2 P(X) : ¼ ½ ¼Conditional Distribution of X given Y = 1: X : 0 1 2 P(X|Y=1) : ¼ ½ ¼ E(X|Y=1) = 0x1/4 + 1x1/2 + 2x1/4 = 1E(X2|Y=1) = 02 x1/4 +12 x1/2 +22 x1/4 = 3/2V(X|Y=1) = E(X2|Y=1) - E(X|Y=1)2 = 1/2

Page 43: Random Variable and its Properties

Conditional Density and Conditional Expectation of Continuous R.V.

Page 44: Random Variable and its Properties

Conditional Density of Continuous R.V.

Page 45: Random Variable and its Properties

Conditional Variance of Continuous R.V.

Page 46: Random Variable and its Properties

Marginal and Conditional Distribution for Continuous R.V.

Page 47: Random Variable and its Properties

Conditional Mean and Variance for Continuous R.V

Page 48: Random Variable and its Properties

Independence of R.V.

Page 49: Random Variable and its Properties

Entropy

For a random variable with outcomes x1,x2,...xn, the Shannon entropy, a measure of uncertainty is defined as

where is the probability mass function of outcome .

Page 50: Random Variable and its Properties

Conditional EntropyTo understand the meaning of Eq. (1), first consider a set of possible outcomes (events)

, with equal probability . An example would be a fair die with values, from to . The uncertainty for such a set of outcomes is defined by

the conditional entropy of two events X and Y taking values xi and yj respectively, as

Page 51: Random Variable and its Properties

Differential Entropy

Page 52: Random Variable and its Properties

Example: Uniform Distribution

Page 53: Random Variable and its Properties

Relative Entropy and Mutual InformationThe Shannon entropy is restricted to random variables taking discrete values. The formula

where f denotes a probability density function on the real line, is analogous to the Shannon entropy and could thus be viewed as an extension of the Shannon entropy to the domain of real numbers.

Another useful measure of entropy for the continuous case is the relative entropy of a distribution, defined as the Kullback-Leibler divergence from the distribution to a reference measure m(x),

The negative differential entropy of the normal distribution can be evaluated simply as

Page 54: Random Variable and its Properties

Joint and Conditional Differential Entropy