Computation of Statistical Measures in Excel
Computation of Statistical Measures in Excel
Formula Description
=AVERAGE(Data Range, eg: Averages all of numbers in the range A2:A
A2:A7)
=AVERAGE(A2:A4,A7) Averages the numbers in cells A2, A3, A4, and A7
=AVERAGE(A2:A7, "<˃0" Averages the numbers in the range A2:A7 except
those that contain zero
A B
1 Price per unit Number of units
2 20 500
3 25 750
4 35 200
Computation of Dispersion
1
=Max(R)-Min(R)
II. Inter-quartile range: It is the difference between 75th percentile and 25th
percentile and can be computed as
=QUARTILE(R=DATA SET,3)-QUARTILE(R,1)
But in excel 2010/2013, there may be the new version of quartile function that is
called as QUARTILE.EXC
=AVEDEV(R)
=MEDIAN(ABS(R-MEDIAN(R)))
IV. Variance: The sample variance is calculated in Excel using the worksheet
function VAR
=VAR(R)
2
Random Number Generation Methods
Excel has two useful functions when it comes to creating random numbers. The
RAND and RANDBETWEEN function.
I. Rand: The RAND function creates a random decimal number between 0 and 1.
2. Type RAND() and press Enter. The RAND function takes no arguments.
3. To create a list of random numbers, select cell A1, click on the lower right corner of cell A1
and drag it down.
3
II. Randbetween
The RANDBETWEEN function returns a random whole number between two boundaries.
3. If you want to create random decimal numbers between 50 and 75, modify the RAND function
as follows:
AVEDEV: Returns the average of the absolute deviations of data points from their mean
AVERAGE: Returns the average of its arguments
AVERAGEA: Returns the average of its arguments, including numbers, text, and logical values
BETAINV: Returns the inverse of the cumulative distribution function for a specified beta distribution
CHIINV: Returns the inverse of the one-tailed probability of the chi-squared distribution
CHITEST: Returns the test for independence
COUNTIF: Counts the number of nonblank cells within a range that meet the given criteria
MINA: Returns the smallest value in a list of arguments, including numbers, text, and logical values
PROB: Returns the probability that values in a range are between two limits
QUARTILE: Returns the quartile of a data set
RSQ: Returns the square of the Pearson product moment correlation coefficient
SKEW: Returns the skewness of a distribution
STDEVA Estimates standard deviation based on a sample, including numbers, text, and logical values
STEYX Returns the standard error of the predicted y-value for each x in the regression
TDIST Returns the Student's t-distribution
6
TINV Returns the inverse of the Student's t-distribution
TREND Returns values along a linear trend
VARA Estimates variance based on a sample, including numbers, text, and logical values
VARPA Calculates variance based on the entire population, including numbers, text, and logical values
WEIBULL Returns the Weibull distribution