In the previous note on the Probability and Statistical Inference, we started a new topic that characterizes the probability distribution of a random variable to get the hidden statistical information about the probability distribution. One of the statistical tools is the expectation of random variables or expectation of the probability distribution of a random variable. We have seen what an expectation is and how to compute the expectation of discrete and continuous random variables.
In this note, we will further explore various tools and techniques that help us characterize the probability distribution of a random variable to get latent information about the random process.
Introduction
Whenever data comes from some process or experiment, we assume that process can be modeled through probability mass function or probability density function depending on whether the random variable is continuous or discrete. In contrast, suppose there is a curve or graph representing the probability function. By knowing the curve, we can learn more about the probability function of the curve. For example, whether it is symmetric, non-symmetric, humpy, etc.
These statistical tools provide us with the hidden information contained inside the data. The different types of information exist, and these qualities will help us a lot in data science whenever we try to get the actual data without looking into the real data (population data).
The concept of moments is also a particular type of expectation. Moments give enormous information in a quantitative form, which we can’t get or see using graphical or plotting tools when a random variable contains lots of values or large data sets.
Moments
Moments are used to describe different characteristics and features of a probability distribution. These characteristics are: central tendency, disperson, symmetry and peakedness of probability curve. For example:
So these kinds of information will be computed by Moments which is essential from the analysis and quantitative point of view in Data Science. To understand the Moments, we will first revisit the expectation of random variables concepts, which we studied in the earlier notes of Essential of Data Science.
Expectation of Random Variables
Let X be a continuous random variable with probability density function f(x). Suppose g(X) is a real valued function of X. The expectation of g(X) is defined as:
Provided that .
Let X be a discrete random variable having the probability mass function . Suppose g(X) is a real valued function of X. Thus, X takes the values with respective probabilities and if the expectation of g(X) exists then,
Provided that .
Moment about the origin (Raw Moment)
Let where r is nonnegative integer, then
where is called as moment of X about origin or point a zero.
Moment about an Arbitrary Point A
Let where r is nonnegative integer, then is called as moment of X about the point A.
Central moments
When A = , then , where, is called as central moment of X. It is called central moment because moment is measured around the mean.
The moments of variable X about the arithmetic mean ( or sample mean) are called central moments. In general, the sample central moment based on observations is defined as follows:
=
Observations:
- When r = 0,
- When r = 1, . It is zero because is a constant (mean value) and only.
- When r = 2, . It is called sample variance.
Variance of Random Variables
In general, when A = and r = 2, then:
is called the variance of X.
It computes the variation of X relative to mean value.
The variance of a continuous random variable X is define as:
Where .
For a discrete random variable X, the variance of X is defined as:
Expectation and Variance of a Random Variable
These are different measures to summarize a probability distribution for a random variable X.
- Mean is a measure of the central tendency of the probability distribution.
- Variance measures the dispersion or variability in the probability distribution.
It may be possible that two different distributions have the same mean and variance. But, knowing the mean and variance, we can’t predict the probability distribution as these measures do not uniquely identify a probability distribution.
Example 1:
Consider the continuous random variable “waiting time for the train.” Suppose that a train arrives every 20 minutes. Therefore, the waiting time of a particular person is arbitrary and can be any time contained in the interval [0, 20]. The required probability density function is:
Let X be a continuous random variable for a waiting time for the train. The expected waiting time is as follows:
The variance of a continuous random variable is as follows:
Example 2:
Suppose we roll a dice and rewards are considered in the following ways:
In this example, Point(x) represents a number that appears on the upper face of the die, and Reward (INR) represents rewards for different values of x. However, each outcome’s probabilities are equally likely, which means anyone occurs with the same probability.
The expected reward means when we play this game a significantly higher number of times, the accumulated rewards would be equal to the expected reward value.
- Expected reward, = Rs. 1 * 1/6 + Rs. 2 * 1/6 + Rs. 3 * 1/6 + Rs. 4 * 1/6 + Rs. 5 * 1/6 + Rs. 6 * 1/6 = Rs. 3.50
Standard Deviation
Standard deviation (or standard error) has an advantage that it has the same units as of data, so easy to compare.
For example, if x is in meter, then is in which is not so convenient to interpret. On the other hand, if x is in metr, then s is in meter wihch is more covenient to interpret.
Notations to represent standard deviation for sample and population.
- Sample Variance is represented as .
- Positive square root of is called as standard error.
- Population Variance is represented as .
- Population standard deviation is represented as
Variance (or standard deviation) measures how much the observations vary or how the data is concentrated around the arithmetic mean. Standard deviation has its own interpretation and which is represented as follows:
- Lower value of variance ( or standard deviation, standard error) indicates that the data is highly concentrated or less scattered around the mean.The lower value of variance is preferable.
- Higher value of variance ( or standard deviation, standard error) indicates that the data is less concentrated or highly scattered around the mean.
References
- Essentials of Data Science With R Software – 1: Probability and Statistical Inference, By Prof. Shalabh, Dept. of Mathematics and Statistics, IIT Kanpur.
CITE THIS AS:
“Moments and Variance” From NotePub.io – Publish & Share Note! https://notepub.io/notes/mathematics/statistics/statistical-inference-for-data-science/moments-and-variance/
22,188 total views, 1 views today