Statistics Unit 4 (1)
Statistics Unit 4 (1)
70.56
33 8.4 277.2 1089
30 1 1 120 1 1 1
35 6 36 130 11 121 66
X 3 2 7 4 8
Y 6 1 8 5 9
Solution-:
X Y xX X y Y Y x2 y2 xy
bxy
xy
y 2
X 4.8
28.8
Y 5.8
38.8
X 4.8 0.74Y 5.8
………….(I)
X 0.74Y 0.49
Regression Equation of Y on X is
(Y Y ) byx ( X X )
byx
xy
x 2
Y 5.8
28.8
X 4.8
26.8
Y 5.8 1.07( X 4.8)
Y 1.07 X 0.66 ………….(II)
Solved Example
• Question: For two variables X and Y the
equation of regression lines are 9y-x-288=0
and x-4y+38=0 find,
(i) The mean values of x and y
(ii) Regression Coefficient
(iii) Ratio of SD of y to that of x
(iv) Most probable value of y when x=145 &
(v) Most probable value of x when y=35
Solution
(i) Mean values of x and y:
• Solving the two equations:
X-9y = -288 and x-4y = 38
• The values obtained are x = 162 and y= 50. These are the mean
values for x and y.
(ii) Regression Coefficient,
Formula, r = ±√bxy byx
and as well using the formulas for bxy & byx
• The value of r is calculated.
9y-x-288=0
• Then, y=(1/9)x+32. So, byx = 1/9
Similarly, x-4y+38=0
• Then, x=4y-38. So, bxy = 4
• Substituting the values of bxy & byx and the value of r = (2/3)
Solution
(iii) Ratio of SD of y to that of x:
byx = r (σy / σx) = 1/9
& bxy = r (σx / σy) = 4
Dividing byx value by bxy value, the required ratio
value is obtained i.e 1 : 6
(iv) x=145, substitute the value of x in 9y-x-288=0
equation, so the proposed value of y=48.11
(v) y=35, substitute the value of y in x-4y+38=0
equation, so the proposed value of x=102
Basic Differences between Correlation
and Regression
TIME SERIES ANALYSIS
• According to Morris Hamburg “A time series is a set of
observations arranged in chronological order”
• Examples: Weather reports, Stock exchanges,
production unit.
• This shows that the observed values of the variable
fluctuate from time to time. Thus, analysis of time
series involves an examination of the past observations
and estimation of future values.
• These variations are broadly grouped under the
following four categories.
Components of Time Series
1. Secular trends - direction of a time series movement over a
long period of time usually represented by a straight line or
a smooth curve.
2. Seasonal variation - repeating periodic movement of a time
series
3. Cyclical fluctuations or “business cycles” - expansions (ups)
and contractions (downs) of business activities around the
normal value
4. Irregular movements - erratic movements, including all
types of time series movements other than secular,
seasonal, or cyclical
• These components provide a basis for the explanation of the
past behaviour. They help us to predict the future behaviour.
Uses of Time Series Analysis
• It helps in understanding the past behaviour.
• It helps in planning future operations.
• It helps in analysing the current
accomplishments.
• It facilitates comparison of data.
Mathematical Models of Time Series Analysis
• Classical Approach:
• Addition Model:
Y=T+S+C+I
Where:- Y = Original Data
T = Trend Value
S = Seasonal Fluctuation
C = Cyclical Fluctuation
I=Irregular Variation
• Multiplication Model:
Y=TxSxCxI
or
Y = TSCI
This model assumes that the output of an economy is the product of various
forces operating on one another. In this model S,C and I are given as
percentages.
Measurement of Secular trend:-
154
153
151
150
Profit ('000)
149
147
146
145
1989 1990 1991 1992 1993 1994 1995 1996
Semi – Average Method:-
• In this method the given data are divided in two parts,
preferable with the equal number of years.
There are total 8 years in the data. So the given data is split into
two parts i.e., the first 4 years and the next set of 4 years and
average values are calculated for both the parts.
First Part = 150 + 152 + 153 + 151 = 151.50
4
1989 150
1990 152
151.50
1991 153
1992 151
1993 154
1994 153
155.25
1995 156
1996 158
Production
160
158
156
155.25
154
Production
152
150 151.50
148
146
1989 1990 1991 1992 1993 1994 1995 1996
Moving Average Method:-
• It is one of the most popular method for calculating Long Term Trend.
This method is also used for ‘Seasonal fluctuation’, ‘cyclical
fluctuation’ & ‘irregular fluctuation’. In this method we calculate the
Moving Average for certain years.
• For example: If we calculating ‘Three year’s Moving Average’ then
according to this method:
=(1)+(2)+(3) , (2)+(3)+(4) , (3)+(4)+(5), ……………..
3 3 3
Where (1),(2),(3),………. are the various years of time series.
Example: Find out the five year’s moving Average:
Year 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996
Price 20 25 33 33 27 35 40 43 35 32 37 48 50 37 45
Year Price of Five year’s moving Five year’s moving
sugar (Rs.) Total Average (Col 3/5)
(1) (2) (3) (4)
1982 20 - -
1983 25 - -
1984 33 135 27
1985 30 150 30
1986 27 165 33
1987 35 175 35
1988 40 180 36
1989 43 185 27
1990 35 187 37.4
1991 32 195 39
1992 37 202 40.4
1993 48 204 40.8
1994 50 217 43.4
1995 37 - -
1996 45 - -
Least Square Method:-
• This method is most widely in practice. When this method is
applied, a trend line is fitted to data in such a manner that the
following two conditions are satisfied:-
The sum of deviations of the actual values of y and computed values
of y is zero.
Y Y 0
c
i.e., the sum of the squares of the deviation of the actual and
computed values is least from this line. That is why method is called
the method of least squares. The line obtained by this method is
known as the line of `best fit`.
Y Y is least
c
2
The Method of least square can be used either to fit a straight line
trend or a parabolic trend.
The straight line trend is represented by the equation:-
Yc = a + bx
Where, Yc = Trend value to be computed
X = Unit of time (Independent Variable)
a = Constant to be Calculated
b = Constant to be calculated
Formulas:
Y Na b X
XY a X b X
2
Example:-
N= 5 X Y XY X 2
= 15 =50 = 166 = 55
Now we calculate the value of two constant ‘a’ and ‘b’ with the help
of two equation:-
Y Na b X
XY a X b X 2
Residual Method
References cycle analysis method
Direct Method
Harmonic Analysis Method
Residual Method:-
• Cyclical variations are calculated by Residual Method . This
method is based on the multiple model of the time Series. The
process is as below: