














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















QUANTITATIVE TECHNIQUES
Regression is a statistical method used in finance, investing, and other disciplines that attempts to
determine the strength and character of the relationship between one dependent variable (usually
denoted by Y) and a series of other variables (known as independent variables).
Also called simple regression or ordinary least squares (OLS), linear regression is the most common
form of this technique. Linear regression establishes the linear relationship between two variables
based on a line of best fit. Linear regression is thus graphically depicted using a straight line with the
slope defining how the change in one variable impacts a change in the other. The y-intercept of a linear
regression relationship represents the value of one variable when the value of the other is zero. Non-
linear regression models also exist, but are far more complex.
Regression analysis is a powerful tool for uncovering the associations between variables observed in
data, but cannot easily indicate causation. It is used in several contexts in business, finance, and
economics. For instance, it is used to help investment managers value assets and understand the
relationships between factors such as commodity prices and the stocks of businesses dealing in those
commodities.
In other words, Regression is a way of analyzing relationship between one dependent variable
(response) and one or more independent variables (Predictors)
independent variable. The regression line describes the average relationship existing between X and
Y variables, i.e., it displays mean values of X for given values of Y
regression line as a basis for estimation. For this purpose, the standard error of estimate is calculated.
This is a corresponding value estimated from the regression line. If the line fits the data closely, that
is, if there is little scatter of the observations around the regression line, good estimates can be made
of the Y variable. On the other hand, there is a great deal of scatter of the observations around the
QUANTITATIVE TECHNIQUES PAPER 3 fitted regression line, the line will not produce accurate estimates of the dependent variable.
There is no distinction between the
dependent and explanatory variables
There is a distinction between the dependent
and explanatory variables
The relationship is between two variables Predicts a particular value of y for a specific
value of x
Measures the strength or degree of linear
relationship between two variables
Estimates the mean value of a dependent
variable for a given value of x
QUANTITATIVE TECHNIQUES
Examples
For the data set below:
No 1 2 3 4 5 6 7 8 9 10 11 12
x 65 50 55 65 55 70 67 70 55 70 50 55
y 85 74 76 90 85 87 94 98 81 91 76 74
Determine the simple regression line
Solution:
ଶ
∑
∑
∑
∑
x
2
=44,739, And n=
x =¿60.583, and y =84.
b =
n ( ∑
xy )
( ∑
x
∑
, y )
n (∑
x
2
)
(∑
x ¿
2
)
( 12 x 61873 )−( 727 x 1,011)
2
a = y − b x
84.25−0.897 x 60.583=29.
y =29.907+0.897 x
QUANTITATIVE TECHNIQUES
Interpretation of results:
a) 29.907 is the value of y when x =0 or a point where the regression line cuts the y-axis
b) 0.897 is the rate of change in y per unit change in x.
Simple linear equation can be used to predict any value of y for any given value of x.
The research paper on “Crop improvement for upcoming farmers designed for difficulty climates”
provided the following data (= crop duration in days for quick maturing soya beans, = crop yield in
tons).
X 92 92 96 100 102 102 106 106 121 143
Y 1.7 2.3 1.9 2 1.5 1.7 1.6 1.8 1 0.
(i) Obtain the linear equation illustrating the regression of y on x using the least squares method. (
marks)
(ii) Compute the coefficient of correlation, by product moment method and hence find the coefficient
of determination. (4 marks)
SOLUTION (i)
ଶ
܆ ൌ ǡ
܇ ൌ Ǥૡ ܇ ܆ ൌ ǡ ܠ
ൌ ǡ
ଶ
σ
=27.
Ie. x =¿106, and y =1.
∑
∑
∑
∑
x
2
=114,514, And n=
b =
n ( ∑
xy )
( ∑
x
∑
, y )
n ( ∑
x
2
)
( ∑
x ¿
2
)
( 10 x 1601 )−( 1060 x 15.8)
( 10 x 114,514 )−
2
a = y − b x =1.
4
QUANTITATIVE TECHNIQUES
(i)
∑
∑
b =
n
( ∑
xy
)
( ∑
x
∑
, y
)
n ( ∑
x
2
)−( ∑
x ¿
2
¿)
a = y − b x
Substitute and finish the
question
(ii) For 2025, x = 2026 – 2010 = 16
Substitute x=16 in the equation line
6
ଶ
QUANTITATIVE TECHNIQUES
TIME SERIES AND FORECASTING
Definition of key terms
Time series refers to a chain of data points observed and recorded in a time order over a specific
period. It represents the output obtained from monitoring and tracking specific events or processes. In
otherward,
The term ‘Time Series’ means a set of observations concurring any activity against different periods
of time. In order to describe this flow of economic activity, the statistician uses a time series.
It is also known as time-stamped data and plays a major role in analysis and forecasting processes. It
involves noting measurements at equally spaced time intervals. Its construction helps academics study
how a variable change over time. For instance, it can be applied to study the price movements of a
security over time.
Trend – this is a pattern manifested by collected information over a period of time often used to
predict future events. It could also be used to estimate uncertain events in the past.
Forecast - forecasting is the process of estimation in unknown situations. Prediction is a similar, but
more general term. Both can refer to estimation of time series, cross- sectional or longitudinal data.
Usage can differ between areas of application: for example, in hydrology, the terms "forecast" and
"forecasting" are sometimes reserved for estimates of values at certain specific future times
Examples of Time Series Data
Following are few examples of time series data:
a) Profits earned by a company for each of the past five years.
b) Workers employed by a company for each of the past 15 years.
c) Number of students registered for CPA examination in the institute for the past five years.
d) The weekly wholesale price index for each of the past 30 week.
e) Number of fatal road accidents in Kampala for each day for the past two months
Importance of Time Series
Given below are some of the importance mentioned:
It is used by many organizations to forecast their business profit or loss trends and thus important
business decisions can be taken for development.
It is used to compare the present trend with the past trend that has already happened so the future
trend can be estimated and prepared.
QUANTITATIVE TECHNIQUES
Irregular Variations (I) (random movements)
It refers to variations that are uncontrollable and inevitable. It occurs randomly, opposite to regular
changes or occurrences, and does not associate with a pattern. These fluctuations are unpredictable and
unexplainable. Forces like natural and man-made disasters can trigger irregular variations.
Approaches for the Relationship amongst Components of a Time Series
There are two approaches for the relationship amongst these components.
(a) Y = T×S×C×I (multiplicative model)
(b) Y = T+S+C+I (additive model)
Note: In multiplicative models S, C and I indexes are expressed as decimal percent. Where Y is the
result of the four components.
One method of establishing the underlying trend (smoothing out peaks and troughs) in a set of data is
using the moving averages technique. Other methods, such as regression analysis can also be used to
estimate the trend. Regression analysis is dealt with in a separate article.
A moving average is a series of averages, calculated from historic data. Moving averages can be
calculated for any number of time periods, for example a three-month moving average, a seven-day
moving average, or a four-quarter moving average. The basic calculations are the same.
The following simplified example will take us through the calculation process.
Monthly sales revenue data were collected for a company for 20X2:
Ja
n
Fe
b
Ma
r
Ap
r
Ma
y
Ju
n
Jul
Au
g
Se
p
Oc
t
No
v
De
c
Sale
s
From this data, we will calculate a three-month moving average , as we can see a basic cycle that
follows a three-monthly pattern (increases January – March, drops for April then increases April –
June, drops for July and so on). In an exam, the question will state what time period to use for this
cycle/pattern in order to calculate the averages required.
Step 1 – Create a table
QUANTITATIVE TECHNIQUES
Create a table with 5 columns, shown below, and list the data items given in columns one and two. The
first three rows from the data given above have been input in the table:
Step 2 – Calculate the three-month moving average.
Add together the first three sets of data, for this example it would be January, February and March.
This gives a total of (125+145+186) = 456. Put this total in the middle of the data you are adding, so in
this case across from February. Then calculate the average of this total, by dividing this figure by 3
(the figure you divide by will be the same as the number of time periods you have added in your total
column). Our three-month moving average is therefore (456 ÷ 3) = 152.
The average needs to be calculated for each three-month period. To do this you move your average
calculation down one month, so the next calculation will involve February, March and April. The total
for these three months would be (145+186+131) = 462 and the average would be (462 ÷ 3) = 154.
10
QUANTITATIVE TECHNIQUES
A negative variation means that the actual figure in that period is less than the trend and a positive
figure means that the actual is more than the trend.
From the data we can see a clear three-month cycle in the seasonal variation. Every first month has a
variation of -7, suggesting that this month is usually $7,000 below the average. Every second month
has a variation of 32 suggesting that this month is usually $32,000 above the average. In month 3, the
variation suggests that every third month, the actual will be $25,000 below the average.
It is assumed that this pattern of seasonal adjustment will be repeated for each three-month period
going forward.
If we had used the multiplicative model, the variations would have been expressed as a percentage of
the average figure, rather than an absolute. For example:
This suggests that month 1 is usually 95% of the trend, month 2 is 121% and month 3 is 84%. The
multiplicative model is a better method to use when the trend is increasing or decreasing over time, as
the seasonal variation is also likely to be increasing or decreasing.
12
QUANTITATIVE TECHNIQUES
Note that with the additive model the three seasonal variations must add up to zero (32-25-7 = 0).
Where this is not the case, an adjustment must be made. With the multiplicative model the three
seasonal variations add to three (0.95 + 1.21 + 0.84 = 3). (If it was four-month average, the four
seasonal variations would add to four etc). Again, if this is not the case, an adjustment must be made.
In this simplified example the trend shows an increase of exactly $2,000 each month, and the pattern
of seasonal variations is exactly the same in each three-month period. In reality a time series is
unlikely to give such a perfect result.
Step 5 – Using time series to forecast the future
Now that the trend and the seasonal variations have been calculated, these can be used to predict the
likely level of sales revenue for the future.
Question:
Using the above example, what is the predicted level of sales revenue for June 20X3 and July
Solution:
Start with the trend then apply the seasonal variations. We calculated an increasing trend of $2,000 per
month. The last figure we calculated was for November 20X2 showing $170,000. If we assume the
trend continues as it has done previously, then by June 20X3, the sales revenue figure will have
increased by $14,000 ($2,000 per month for seven months). Adding this to the figure we have for
November, we can predict the underlying trend value for June 20X3 to be $184,000. ($14,000 +
We know that sales exhibit a seasonal variation. Taking account of the seasonal variation will give us a
better estimate for June 20X3. From the table in step 4, we can see that June has a positive variation of
Our estimate for the sales revenue for June 20X3 is therefore $184,000 + $32,000 = $216,000.
For July, the underlying trend value will be $170,000 + $16,000 = $186,000. The seasonal variation
for July 20X3 is a negative variation of $25,000, therefore our estimate for the sales revenue for July
20X3 is $186,000 - $25,000 = $161,000.
In the above example, we used a three-month moving average. Looking back at step 2, we can see that
the average is shown against the mid-point of the three observations. The mid-point of the period for
January, February and March is shown against the February observation.
When we are calculating a moving average with an even number of periods, for example a four-
quarter moving average, we do the same basic calculation, but the mid-point will lie between
observations. From step 4 above, we can see that we need the moving average to be shown against an
observation so that the seasonal variation can be calculated. We therefore calculate the four-quarter
moving average as before, but we then calculate a second moving average.
In the example below, the four-quarter moving averages have been calculated in the same way as
before. The first four observations are added together and then divided by four. The four-quarter
moving average for the first four quarters is 322.50. Moving to the next four observations, gives an
average of 327.50. We can then work out the mid-point of these two averages by adding them together
and dividing by two. This gives a mid-point of (322.50 + 327.50) ÷ 2 = 325. This mid-point is our
QUANTITATIVE TECHNIQUES
ଶ
∑
∑
∑
∑
x
2
b =
n
( ∑
xy
)
(∑
x
∑
, y
)
n ( ∑
x
2
)
( ∑
x ¿
2
)
a = y − b x = OR , a =
∑
y
n
b ∑
x
n
Substitute in the values and get the equation line
Question 4
(a) Nyakabirizi dairy farm is open seven days a week. It had the following daily sales of milk in liters
during a two weeks’ period
Required:
QUANTITATIVE TECHNIQUES
(i) Calculate the seven day moving averages and trend values. (4 marks)
(ii) Using the least squares method, find the regression equation that represents a line of best fit for the
two weeks’ sales. (Hint: Index the days of the weeks) (7 marks)
(iii) Using Pearson’s product moment of correlation, determine the coefficient of correlation and
comment on the relationship. (4 marks)
a(i)
16
QUANTITATIVE TECHNIQUES
The coefficient of correlation= r
2
Weighted Moving Averages
Whereas simple moving averages give equal weight to each component of the moving average data, a
weighted moving average assigns more weight to some values more than others.
The formula to use I
t
= w
1
t − 1
2
t − 2
3
t − 3
n
t − n
The data below shows the number of cone of mango favored yoghurt demanded in one week in June
2022 at a kiosks located at Bulenga.
Day 20Mon 21Tues 22Wed 23 Thur 24Frid 25Sat
Demand 120 130 110 140 110 130
Required
Given the weights20%, 30%, and 50% respectively, determine the three daily weighted moving
average
18
QUANTITATIVE TECHNIQUES
DAY DEMAND Weighted moving average
Exponential smoothing of time series data assigns exponentially decreasing weights for newest to
oldest observations. In other words, the older the data, the less priority (“weight”) the data is given;
newer data is seen as more relevant and is assigned more weight. Smoothing parameters (smoothing
constants)— usually denoted by α— determine the weights for observations.
Formula for calculating forecast demand under exponential smoothing is
αAt +( 1 − α ) Ft
Where
Ft+1 is the new forecast demand required,
α is the exponential weight, usually given in the question,
At is the actual demand for the year/period
Ft is the previous year actual demand
Example
Year Actual demand (At) Forecast Demand (Ft)
Use α =0.4 find forecast demand for year 7
Solution
Since α =0.4, then (1- α ) =1-0.4= 0.
This applying the formula