Chapter 5
Chapter 5
Introduction to Statistics
5.1 Statistics
Statistics is the science which deals with methods of collecting, classifying,
presenting, comparing and interpreting numerical data collected to throw
light on any sphere of enquiry.
38, 11, 40, 0, 26, 15, 5, 45, 7, 32, 2, 18, 42, 8, 31, 27, 4, 12, 35, 15, 0, 7, 28,
46, 9, 16, 29, 34, 10, 7, 5, 1, 17, 22, 35, 8, 36, 47, 11, 30, 19, 0, 16, 14, 14,
18, 41, 38, 2, 17, 42, 45, 48, 28, 7, 21, 8, 28, 5, 20.
The data does not give any useful information. These are called raw data or
ungrouped data. To bring out certain salient features of this data, we arrange
the data into classes or categories and determine the number of individuals
belonging to each class, called the class frequency. The resulting arrange-
ment is called a frequency distribution or frequency table. A graph for the
frequency distribution can be supplied by a histogram or by a polygon graph
connecting the middle points of of the tops in the histogram.
1
Class Notes on
5.3. MEASURES OF CENTRAL TENDENCY Applied Probability and Statistics ECEG-342
1. Arithmetic Mean x̄
If x : x1 , x2 , . . . , xn then
x1 + x2 + . . . + x n 1X
x̄ = = xi
n n i
x : x1 , x2 , . . . , xn
f : f1 , f2 , . . . , fn
then P
f 1 x1 + f 2 x2 + . . . + f n xn f i xi
x̄ = = Pi
f1 + f2 + . . . + fn i fi
Weighted Arithmetic Mean: If the individual data are not of equal
importance, we may attach to them weights w1 , w2 , . . . , wn as measure
of their importance
P
w 1 x1 + w 2 x2 + . . . + w n xn w i xi
x̄w = = Pi
w1 + w2 + . . . + wn i wi
Exercise 5.1: The mean of 200 items was 50. Later on it was discovered
that two items were misread as 92 and 8 instead of 192 and 88. Find out
the correct mean. (ans. 50.9)
Murad Ridwan, 2 of 6
Dep. of Electrical & Computer Engineering
AAiT, Addis Ababa University.
Aug 2010.
Class Notes on
5.4. MEASURES OF DISPERSION Applied Probability and Statistics ECEG-342
2. Median
It is the central value of the data when the values are arranged in
ascending or descending order of magnitude.
When the n data are arranged in ascending or descending order of
magnitude, i.e., x1 , x2 , . . . , xn
x(n+1)/2 , if n is odd;
median = xn/2 +x(n/2+1)
2
, if n is even.
3. Mode
Mode is the value which occurs most frequently. It does not always
exist. This is certainly true when all observations occur with the same
frequency.
1. Range
The range of x1 , x2 , . . . , xn is defined as x(n) − x(1) where x(n) and x(1)
are, respectively, the largest and smallest values.
2. Variance n
1X
S2 = (xi − x)2
n i=1
Murad Ridwan, 3 of 6
Dep. of Electrical & Computer Engineering
AAiT, Addis Ababa University.
Aug 2010.
Class Notes on
5.5. REGRESSION AND CORRELATION Applied Probability and Statistics ECEG-342
The vertical distance (in the y-direction) of a sample point (xi , yi ) from
a straight line y = a + bx is |yi − a − bxi |. Hence the sum of the squares
Murad Ridwan, 4 of 6
Dep. of Electrical & Computer Engineering
AAiT, Addis Ababa University.
Aug 2010.
Class Notes on
5.5. REGRESSION AND CORRELATION Applied Probability and Statistics ECEG-342
of these distances is
n
X
e= (yi − a − bxi )2
i=1
In the method of least squares we choose a and b such that the estima-
tion error e is minimum. A necessary condition for e to be minimum
is
∂e ∂e
= 0, and =0
∂a ∂b
Theorem 1. The least-squares line (linear regression) approximating
the set of points (x1 , y1 ), . . . , (xn , yn ) has the equation y = a+bx, where
the constants a and b are given by
n ni=1 xi yi − ( ni=1 xi )( ni=1 yi )
P P P
b =
n ni=1 x2i − ( ni=1 xi )2
P P
Pn Pn
i=1 yi − b i=1 xi
a =
n
Exercise 5.3: Verify the above theorem.
Murad Ridwan, 5 of 6
Dep. of Electrical & Computer Engineering
AAiT, Addis Ababa University.
Aug 2010.
Class Notes on
5.5. REGRESSION AND CORRELATION Applied Probability and Statistics ECEG-342
Exercise 5.5: The following data are the selling prices z of a certain make
and model of used cars w years old:
w years z dollars
1 6350
2 5695
2 5750
3 5395
5 4985
5 4895
ln z = ln c + (ln d)w
= a + bw,
x 1 3 4 6 8 9 11 14
y 1 2 4 4 5 7 8 9
Murad Ridwan, 6 of 6
Dep. of Electrical & Computer Engineering
AAiT, Addis Ababa University.
Aug 2010.