Variance and Standard Deviation of a Random Variable
We have already looked at Variance and Standard deviation as measures of dispersion under the section on Averages. We can also measure the dispersion of Random variables across a given distribution using Variance and Standard deviation. This allows us to better understand whatever the distribution represents.The Variance of a random variable X is also denoted by σ;2 but when sometimes can be written as Var(X).
Given that the random variable X has a mean of μ, then the variance is expressed as:
-
For a Discrete random variable, the variance σ2 is
calculated as:
-
For a Continuous random variable, the variance σ2
is calculated as:
The Standard Deviation σ in both cases can be found by taking the square root of the variance.
Example 1
A software engineering company tested a new product of theirs and found that the number of errors per 100 CDs of the new software had the following probability distribution:
x | f(x) |
---|---|
2 | 0.01 |
3 | 0.25 |
4 | 0.4 |
5 | 0.3 |
6 | 0.04 |
Solution
The probability distribution given is discrete and so we can find the variance from the following:
Find the Standard Deviation of a random variable X whose probability density function is given by f(x) where:
Since the random variable X is continuous, we use the following formula to calculate the variance:
Simplifying the Variance formula
We have seen that variance of a random variable is given by:We can also derive the above for a discrete random variable as follows:
Variance of an Arbitrary function of a random variable g(X)
Consider an arbitrary function g(X), we saw that the expected value of this function is given by:-
For a discrete case
-
For a continuous case
-
For X is a discrete random variable
-
For X is a continuous random variable
Covariance
In the section on probability distributions, we saw that at times we might have to deal with more than one random variable at a time, hence the need to study Joint Probability Distributions.Just as we can find the Expected value of a joint pair of random variables X and Y, we can also find the variance and this is what we refer to as the Covariance.
The Covariance of a joint pair of random variables X and Y is denoted by:
Cov(X,Y).
No comments:
Post a Comment