<< Chapter < Page | Chapter >> Page > |
A linear transformation of a random variable has the following form
where and are real numbers, and . A very important property of lineartransformations is that they are distribution-preserving , meaning that will be random variable with a distribution of the same form as . For example, in [link] , if is Gaussian then will also be Gaussian, but not necessarily with the same mean and variance.
Using the linearity property of expectation, find the mean and variance of in terms of , , , and . Show your derivation in detail.
Consider a linear transformation of a Gaussian random variable with mean 0 and variance 1. Calculate the constants and which make the mean and the variance of Y 3 and 9, respectively. Using [link] , find the probability density function for .
Generate 1000 samples of , and then calculate 1000 samples of by applying the linear transformation in [link] , using the and that you just determined. Plot the resulting samples of , and use your functions to calculate the sample mean and sample variance of the samples of .
Suppose we want to model some phenomenon as a random variable with distribution . How can we assess whether or not this is an accurate model?One method would be to make many observations and estimate the distribution function based on the observed values.If the distribution estimate is “close” to our proposed model , we have evidence that our model is a good characterization of thephenomenon. This section will introduce a common estimate of thecumulative distribution function.
Given a set of i.i.d. random variables with CDF , the empirical cumulative distribution function is defined as the following.
In words, is the fraction of the 's which are less than or equal to .
To get insight into the estimate , let's compute its mean and variance.To do so, it is easiest to first define as the number of 's which are less than or equal to .
Notice that , so
Now we can compute the mean of as follows,
This shows that is an unbiased estimate of . By a similar approach, we can show that
Therefore the empirical CDF is both an unbiased and consistent estimate of the true CDF.
Write a function
F=empcdf(X,t)
to compute the empirical CDF
from the sample vector
at the points specified in the vector
.
sum(X<=s)
will return the number of
elements in the vector
which are less than or equal to
.Notification Switch
Would you like to follow the 'Purdue digital signal processing labs (ece 438)' conversation and receive update notifications?