0% found this document useful (0 votes)
38 views7 pages

Computation of Statistical Measures in Excel

This document discusses various statistical calculations that can be performed in Excel, including computing averages, weighted averages, measures of dispersion like range and interquartile range, and functions for random number generation. It also provides the formulas for calculating deciles values from a data range using the PERCENTILE function.

Uploaded by

poudel p
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views7 pages

Computation of Statistical Measures in Excel

This document discusses various statistical calculations that can be performed in Excel, including computing averages, weighted averages, measures of dispersion like range and interquartile range, and functions for random number generation. It also provides the formulas for calculating deciles values from a data range using the PERCENTILE function.

Uploaded by

poudel p
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 7

Statistical Calculations using EXCEL

Computing Average in Excel

Case I: Calculate the average of numbers not in a contiguous row or column


To do this task, use the AVERAGE or the AVERAGEIF functions

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

Case II: Weighted Average


In this condition, we use sum product formula to compute the average by using
the following relation.

=SUMPRODUCT(Range of variate value, Range of frequency value)/SUM(Range of


Weights).

For example: =SUMPRODUCT(A2:A4,B2:B4)/SUM(B2:B4) = 24.66

A B
1 Price per unit Number of units
2 20 500
3 25 750
4 35 200

Computation of Dispersion

I. Range: it is one of the simplest measures of dispersion, which can be computed


as

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

III. Average Absolute Deviation: The average absolute deviation is computed as


follows

=AVEDEV(R)

III. Median Absolute Deviation:

=MEDIAN(ABS(R-MEDIAN(R)))

IV. Variance: The sample variance is calculated in Excel using the worksheet
function VAR

=VAR(R)

Stem and leaf Construction


=REPT( "0", COUNTIF(A2:A19, C5*10+0))&REPT( "1", COUNTIF(A2:A19, C5*10+1))&REPT( "2",
COUNTIF(A2:A19, C5*10+2))&REPT( "3", COUNTIF(A2:A19, C5*10+3))&REPT( "4",
COUNTIF(A2:A19,C5*10+4))&REPT( "5", COUNTIF(A2:A19, C5*10+5))&REPT( "6", COUNTIF(A2:A19,
C5*10+6))&REPT( "7", COUNTIF(A2:A19, C5*10+7))&REPT( "8", COUNTIF(A2:A19, C5*10+8))&REPT( "9",
COUNTIF(A2:A19, C5*10+9))

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.

1. Select cell A1.

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.

1. Select cell A1.

2. Type RANDBETWEEN(50,75) and press Enter.

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

BETADIST: Returns the beta cumulative distribution function

BETAINV: Returns the inverse of the cumulative distribution function for a specified beta distribution

BINOMDIST: Returns the individual term binomial distribution probability

CHIDIST: Returns the one-tailed probability of the chi-squared distribution

CHIINV: Returns the inverse of the one-tailed probability of the chi-squared distribution
CHITEST: Returns the test for independence

CONFIDENCE: Returns the confidence interval for a population mean


4
CORREL: Returns the correlation coefficient between two data sets

COUNT: Counts how many numbers are in the list of arguments

COUNTA: Counts how many values are in the list of arguments

COUNTBLANK: Counts the number of blank cells within a range

COUNTIF: Counts the number of nonblank cells within a range that meet the given criteria

COVAR: Returns covariance, the average of the products of paired deviations


CRITBINOM: Returns the smallest value for which the cumulative binomial distribution is less than or
equal to a criterion value
DEVSQ: Returns the sum of squares of deviations
EXPONDIST: Returns the exponential distribution
FDIST: Returns the F probability distribution

FINV: Returns the inverse of the F probability distribution


FISHER: Returns the Fisher transformation

FISHERINV: Returns the inverse of the Fisher transformation


FORECAST: Returns a value along a linear trend

FREQUENCY: Returns a frequency distribution as a vertical array


FTEST: Returns the result of an F-test
GAMMADIST: Returns the gamma distribution

GAMMAINV: Returns the inverse of the gamma cumulative distribution

GAMMALN: Returns the natural logarithm of the gamma function, Γ(x)


GEOMEAN: Returns the geometric mean

GROWTH: Returns values along an exponential trend


HARMEAN: Returns the harmonic mean

HYPGEOMDIST: Returns the hypergeometric distribution

INTERCEPT: Returns the intercept of the linear regression line


KURT: Returns the kurtosis of a data set
LARGE: Returns the k-th largest value in a data set
LINEST: Returns the parameters of a linear trend

LOGEST: Returns the parameters of an exponential trend

LOGINV: Returns the inverse of the lognormal distribution

LOGNORMDIST: Returns the cumulative lognormal distribution

MAX: Returns the maximum value in a list of arguments


5
MAXA: Returns the maximum value in a list of arguments, including numbers, text, and logical values
MEDIAN: Returns the median of the given numbers

MIN :Returns the minimum value in a list of arguments

MINA: Returns the smallest value in a list of arguments, including numbers, text, and logical values

MODE: Returns the most common value in a data set

NEGBINOMDIST: Returns the negative binomial distribution

NORMDIST: Returns the normal cumulative distribution

NORMINV: Returns the inverse of the normal cumulative distribution

NORMSDIST: Returns the standard normal cumulative distribution

NORMSINV: Returns the inverse of the standard normal cumulative distribution

PEARSON: Returns the Pearson product moment correlation coefficient

PERCENTILE: Returns the k-th percentile of values in a range

PERCENTRANK: Returns the percentage rank of a value in a data set

PERMUT: Returns the number of permutations for a given number of objects


POISSON: Returns the Poisson distribution

PROB: Returns the probability that values in a range are between two limits
QUARTILE: Returns the quartile of a data set

RANK: Returns the rank of a number in a list of numbers

RSQ: Returns the square of the Pearson product moment correlation coefficient
SKEW: Returns the skewness of a distribution

SLOPE Returns the slope of the linear regression line


SMALL Returns the k-th smallest value in a data set
STANDARDIZE Returns a normalized value

STDEV Estimates standard deviation based on a sample

STDEVA Estimates standard deviation based on a sample, including numbers, text, and logical values

STDEVP Calculates standard deviation based on the entire population


STDEVPA Calculates standard deviation based on the entire population, 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

TRIMMEAN Returns the mean of the interior of a data set

TTEST Returns the probability associated with a Student's t-test


VAR Estimates variance based on a sample

VARA Estimates variance based on a sample, including numbers, text, and logical values

VARP Calculates variance based on the entire population

VARPA Calculates variance based on the entire population, including numbers, text, and logical values
WEIBULL Returns the Weibull distribution

ZTEST Returns the one-tailed probability-value of a z-test

Computing the Deciles values

DEC1 = Application.WorksheetFunction.Percentile(DataRange, 0.1)


DEC2 = Application.WorksheetFunction.Percentile(DataRange, 0.2)
DEC3 = Application.WorksheetFunction.Percentile(DataRange, 0.3)
DEC4 = Application.WorksheetFunction.Percentile(DataRange, 0.4)
DEC5 = Application.WorksheetFunction.Percentile(DataRange, 0.5)
DEC6 = Application.WorksheetFunction.Percentile(DataRange, 0.6)
DEC7 = Application.WorksheetFunction.Percentile(DataRange, 0.7)
DEC8 = Application.WorksheetFunction.Percentile(DataRange, 0.8)
DEC9 = Application.WorksheetFunction.Percentile(DataRange, 0.9)

You might also like