Sta101 Lec 14
Sta101 Lec 14
Introduction to Statistics
Farzana Zaman
Adjunct Faculty (Statistics)
Department of Mathematics and Natural Sciences (MNS)
BRAC University
Lecture 14
❖ Moving Average
❖ Linear Trend Analysis
Hour (t) 1 2 3 4 5 6 7 8 9
Temperature (Yt ) 22 24 23 25 26 28 27 29 30
Q. The following table shows the sales of Waccamaw Machine Tool Inc.
where,
Ŷ is the projected value of the y variable for a selected value of t,
â is the y-intercept,
b̂ is the slope of the line.
STA101 - Spring ’25 Prepared by Farzana Zaman (FZZ) 11/18
Least Squares Method
∑ XY
b̂ = , â = Ȳ
∑X2
Example 1
The close price of Alphabet Inc. (GOOG) shares on the last trading day of
each year is represented by the following time series.
Q. Find the linear equation that describes the trend and estimate the
close price for 2014.
Calculation table:
Solution
Ŷ = 256.44 + 24.47X
Example 2
The close price of Alphabet Inc. (GOOG) shares on the last trading day of
each year is represented by the following time series.
Q. Find the linear equation that describes the trend and estimate the
close price for 2014.
Year (T) Close (Y)
2004 96
2005 207
2006 229
2007 344
2008 153
2009 309
2010 296
2011 322
2012 352
2013 558
STA101 - Spring ’25 Prepared by Farzana Zaman (FZZ) 18/18
Even Number of Periods
Calculation table:
Solution
Ŷ = 286.7 + 17.13X
The annual sales of a product (in thousands) for the years 2010 to 2018
are given below:
Year (T) 2010 2011 2012 2013 2014 2015 2016 2017 2018
Sales (Y) 120 135 140 155 170 180 195 205 220
Find the linear equation describing the trend and estimate the sales for the
year 2020.
Problem 3 Solution
Calculation Table:
Problem 3 Solution
Ŷ = 168.89 + 12.42X
For 2020 (X = 6):
The annual revenue (in million dollars) for a company from 2011 to 2020
is as follows:
Year (T) 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020
Revenue (Y) 50 55 60 70 75 85 95 100 110 120
Find the linear equation describing the trend and estimate the revenue for
the year 2023.
Problem 4 Solution
Calculation Table:
Problem 4 Solution
Ŷ = 82 + 3.94X
For 2023 (X = 15):