Professional Documents
Culture Documents
EEE 3104
Numerical Methods and Statistics Laboratory
Experiment No 5
Statistic Measurements Using Excel
Introduction:
Statistics is concerned with the scientific methods for collecting, organizing, summarizing,
presenting, and analyzing data as well as with drawing valid conclusions and making reasonable
decisions on the basic of such analysis.
Measurement of Central Tendency:
An average is a value that is typical, or representative, of a set of data. Since such typical values
tend to lie centrally within a set of data arranged according to magnitude, averages are also called
measures of central tendency. The most common being the arithmetic mean, the median, the mode,
the geometric mean, and the harmonic mean. Each has advantage and disadvantages, depending
on the data and the intended purpose.
The Arithmetic mean: the arithmetic mean, or briefly the mean, of a set of N numbers X 1, X2,
X3, ….., XN is denoted by 𝑋̅ and defined as
𝑋1 + 𝑋2 + 𝑋3 + ⋯ + 𝑋𝑁 ∑𝑁
𝑗=1 𝑋𝑗 ∑𝑋
𝑋̅ = = =
𝑁 𝑁 𝑁
For group data, where f is the frequencies of classes.
𝑓1 𝑋1 + 𝑓2 𝑋2 + 𝑓3 𝑋3 + ⋯ + 𝑓𝐾 𝑋𝐾 ∑𝐾
𝑗=1 𝑓𝑗 𝑋𝑗 ∑ 𝑓𝑋
𝑋̅ = = 𝐾 =
𝑓1 + 𝑓2 + 𝑓3 + ⋯ + 𝑓𝐾 ∑𝑗=1 𝑓𝑗 ∑𝑓
The Median: the median of a set of numbers arranged in order of magnitude is either the middle
value or the arithmetic mean of the two middle values. Thus, the median is a positional average.
For grouped data median is given by
𝑁
− (∑ 𝑓)1
𝑀𝑒𝑑𝑖𝑎𝑛 = 𝐿1 + ( 2 )𝑐
𝑓𝑚𝑒𝑑𝑖𝑎𝑛
Example 1: The monthly power consumption of 20 houses in an area were 35, 105, 49, 225, 50,
30, 125, 65, 40, 145, 55, 125, 52, 76, 155, 48, 325, 47, 125, and 60 MW. Find the mean, mode,
and median
Method 1: use ‘SUM’ function and then apply mean formulas, sort the data form DATA tab>>
Sort option and then calculate mode and median.
Method 2: In the Excel use function ‘AVERAGE’, ‘MODE.SNGL’, and ‘MEDIAN’
Ans: mean = 96.85, mode = 125, median= 62.5
Example 2: Find the mean, mode, and median from the Group data
2
∑𝑁 ̅
𝑗=1(𝑋𝑗 − 𝑋 ) ∑(𝑋 − 𝑋̅ )2
𝑠= √ = √
𝑁 𝑁
2
∑𝑁 ̅
𝑗=1 𝑓𝑗 (𝑋𝑗 − 𝑋) ∑ 𝑓(𝑋 − 𝑋̅ )2
𝑠=√ =√
𝑁 𝑁
The Variance: the variance of a set of data is defined as the square of the standard deviation and is
thus given by
∑𝑁 ̅ 2
𝑗=1(𝑋𝑗 − 𝑋 ) ∑(𝑋 − 𝑋̅ )2
2
𝑠 = =
𝑁 𝑁
The Moments
If X1, X2, X3, ….., XN are the N values assumed by the variable X, the quantity is defined as
Kurtosis
Kurtosis is the degree of peakedness of a distribution, usually taken relative to a normal
distribution. A distribution having relatively high peak is called leptokurtic, while one which is
flat-topped is called platykurtic. A normal distribution is not very peaked or very flat-topped, is
called mesokurtic.
Moment coefficient of kurtosis is denoted as 𝑎4 and defined as
𝑚4 𝑚4
𝑎4 = = 2
𝑠4 𝑚2
Example 3: find the mean deviation, standard deviation, variance, skewness, and kurtosis for the
data given in example 1
Example 4: find the mean deviation, standard deviation, variance, skewness, and kurtosis for the
data given in example 2
Where 𝑥 = 𝑋 − 𝑋̅ and 𝑦 = 𝑌 − 𝑌̅
Example 5: Draw the Scatter plot and find the correlation coefficient for the below data
TV
hours/week GPA
20 2.35
5 3.8
8 3.5
10 2.75
13 3.25
7 3.4
13 2.9
5 3.5
25 2.25
14 2.75
Hint: use above mention formula and also use built in ‘CORREL’function
Ans: -0.90972
Prepared by
Tonmoy Ghosh
Lecturer, EEE, PUST