SlideShare a Scribd company logo
1 of 28
Time Series and Forecasting
Venkata Sai Krishna M
Introduction
• Forecasting or predicting is an essential tool in any decision-making
process
• Used for Inventory management to annual sales
• Quality depends on the quantity of the past data
• Pattern is used to arrive at an estimate in the future
• This analysis helps us cope with uncertainty about the future
Venkata Sai Krishna M
Variations in Time Series
4 different variation involved in time series:
1. Secular Trend
2. Cyclical Fluctuation
3. Seasonal Variation
4. Irregular Variation
Venkata Sai Krishna M
Secular Trend
• The value of the variable tends to increase or decrease over a long
period
• Steady increase in cost of living recorded by the Consumer Price Index
is an example of secular trend
• In terms of long term period, complete cost of living varies a great
deal
Venkata Sai Krishna M
Cyclical Trend
• Business cycle is the most common example
• Peak at sometimes and likely to slump at the other
• The cycle may extend up to 1 year to 15 to 20 years
• There is no regular pattern but will move in little unpredictable
manner
Venkata Sai Krishna M
Seasonal Variation
• Involves patterns of change within a year
• They tend to have a cycle from year to year
• Substantial peak and irregular through at particular periods in a year
Venkata Sai Krishna M
Irregular Variations
• Value of a variable may be completely unpredictable
• Effect of one situation ripples to the impact of any other inter related
commodity
• White Revolution and effect on Gas
Venkata Sai Krishna M
Reasons for Studying Trends
• The study of secular trends allows us to describe a historical pattern
• Evaluating the eating lifecycle resulted in creation of Maggie
• Studying secular trends permits us to project past patterns, or trends,
into the future
• Growth trend of population helps predict the population projections
• In many situations, studying the secular trend of a time series allows
us to eliminate the trend component from the series
• Make in India Campaign
Venkata Sai Krishna M
Fitting the Linear Trend
by the least-squares method
• Assuming the trend is in the straight line
• The general equation of a straight line:
y = mx + c
• y is the dependent axis
• X is the independent axis
• c is the intercept of the line
• m is the slope of the trend line
Venkata Sai Krishna M
Slope and Intercept
Slope of the best fitting Regression Line
m =
𝑋𝑌 −(𝑛∗𝑚𝑒𝑎𝑛 𝑋 ∗𝑚𝑒𝑎𝑛 𝑌 )
𝑋2−(𝑛∗𝑚𝑒𝑎𝑛(𝑋)2)
Y-intercept of the Best-Fitting Regression Line
c=mean(Y)-m*mean(X)
• X = values of dependent axis
• Y = values of independent axis
• n = number of data points in the time series
• m= slope
• c= Y-Intercept
Venkata Sai Krishna M
Translating or coding time
• It is tedious to calculate in the equation to find the slope
• We can convert the traditional measures of time into the following
• If there are 3 points of time 1992, 1993, 1994
• They can be represented as -1, 0, 1
• Can be achieved by subtracting the mean from all the 3 points
Venkata Sai Krishna M
Time Coding
Venkata Sai Krishna M
S No X X-Mean(X) Coded Time
1 1989 1989-1992 -3
2 1990 1990-1992 -2
3 1991 1991-1992 -1
4 1992 1992-1992 0
5 1993 1993-1992 1
6 1994 1994-1992 2
7 1995 1995-1992 3
S No X X-Mean(X) X-Mean(X)
Coded Time
(X-Mean(X))*2
1 1990 1990-1992.5 -2.5 -5
2 1991 1991-1992.5 -1.5 -3
3 1992 1992-1992.5 -0.5 -1
4 1993 1993-1992.5 0.5 1
5 1994 1994-1992.5 1.5 3
6 1995 1995-1992.5 2.5 5
Slope and intercept of coded time
• Slope of the trend line for coded time values
m=
𝑥𝑌
𝑥2
• Intercept of the trend line for coded time values
a= mean (Y)
Venkata Sai Krishna M
Problem 1
• Calculate the slope and y intercept for the following trend
Venkata Sai Krishna M
X Y
(1) (2)
1988 98
1989 105
1990 116
1991 119
1992 135
1993 156
1994 177
1995 208
Problem 1
• Calculate the slope and y intercept for the following trend
Venkata Sai Krishna M
X Y X-mean(X) (X-mean(X))*2 XY X^2
(1) (2) (3) (3)*2=(4) (4)*(2) (4)^2
1988 98 -3.5 -7 -686 49
1989 105 -2.5 -5 -525 25
1990 116 -1.5 -3 -348 9
1991 119 -0.5 -1 -119 1
1992 135 0.5 1 135 1
1993 156 1.5 3 468 9
1994 177 2.5 5 885 25
1995 208 3.5 7 1456 49
Mean: 1991.50 Sum: 1266 168
Slope: 1266/168 = 7.536
Y-intercept = 139.25
Trend line is
y= 7.536 * x + 139.25
Problem 2
Jim is a part time plumber. Now he wanted to hire some staff for
himself and wanted to forecast the next 3 years trends
Venkata Sai Krishna M
Year
Avg Client per
month
2001 6.4
2002 11.3
2003 14.7
2004 18.4
2005 19.6
2006 25.7
2007 32.5
2008 48.7
2009 55.4
2010 75.7
2011 94.3
Problem 2
Jim is a part time plumber. Now he wanted to hire some staff for
himself and wanted to forecast the next 3 years trends
Venkata Sai Krishna M
Year
Avg Client per
month
Time
Code
X * Y X^2
2001 6.4 -5 -32 25
2002 11.3 -4 -45.2 16
2003 14.7 -3 -44.1 9
2004 18.4 -2 -36.8 4
2005 19.6 -1 -19.6 1
2006 25.7 0 0 0
2007 32.5 1 32.5 1
2008 48.7 2 97.4 4
2009 55.4 3 166.2 9
2010 75.7 4 302.8 16
2011 94.3 5 471.5 25
Intercept: 36.60909091 Sum: 892.7 110
Slope: 892.7/110 = 8.11
Y-intercept = 36.6091
Trend line is
y= 8.11 * x + 36.6091
2012:
y= 8.11 * 6 + 36.6091 = 85.3
2013:
y= 8.11 * 7 + 36.6091 = 93.4
2014:
y= 8.11 * 8 + 36.6091 = 101.5
Methods of estimating Trend
• Freehand Method
• Moving Average Method
• Semi-Average Method
• Least Square Method
Venkata Sai Krishna M
Freehand method
• Briefly described for drawing frequency curves
• Observations is plotted against time on the horizontal axis and a freehand
smooth curve is drawn through the plotted points
• Smoothness should not be scarified in trying to let the points fall exactly on
the curve
• Eliminates the short term and long term oscillations and the irregular
movements from the time series, and elevates the general trend
Disadvantages:
• Different individuals draw curves or lines that differ in slope and intercept
• Used only in situations where the scatter diagram of the original data
conforms to some well define trends
Venkata Sai Krishna M
Problem 1
Measure the trend using the method of the freehand curve from the
given data of production of wheat in a particular area of the world.
Venkata Sai Krishna M
Years
Production Million
Metric Tons
1981 6.6
1982 6.9
1983 5.6
1984 6.3
1985 8.4
1986 7.2
1987 7.2
1988 8.5
1989 8.5
Problem 1
Measure the trend using the method of the freehand curve from the
given data of production of wheat in a particular area of the world.
Venkata Sai Krishna M
Years
Production Million
Metric Tons
1981 6.6
1982 6.9
1983 5.6
1984 6.3
1985 8.4
1986 7.2
1987 7.2
1988 8.5
1989 8.5
Moving Average Method
• A n-period moving average for time period t is the arithmetic average of the time series
values for the n most recent time periods
• For example: A 3-period moving average at period (t+1) is calculated by (yt-2 + yt-1 +
yt)/3
• Advantages of Moving Average Method
• Easily understood
• Easily computed
• Provides stable forecasts
• Disadvantages of Moving Average Method
• Requires saving all past n data points
• Lags behind a trend
• Ignores complex relationships in data
Venkata Sai Krishna M
Example 1
Venkata Sai Krishna M
Period Actual MA (3) MA (5)
1 42
2 40
3 43
4 40 41.67
5 41 41.00
6 39 41.33 41.2
7 46 40.00 40.6
8 44 42.00 41.8
9 45 43.00 42
10 38 45.00 43
11 40 42.33 42.4
12 41.00 42.6
34
36
38
40
42
44
46
48
1 2 3 4 5 6 7 8 9 10 11 12
Weighted Moving Average
Actual MA (3) MA (5)
Semi Average Method
• This method is as simple and relatively objective as the free hand
method
• Data is divided in two equal halves and the arithmetic mean is
calculated
• If the number of observations is even the division into halves
• If the number of observations is odd, then the middle most item is
dropped
Venkata Sai Krishna M
Advantages and Disadvantages of the Semi-
Averages Method
• Advantages
• This method is very simple and easy to understand, and also it does
not require many calculations.
• Disadvantages
• For non-linear trends this method is not applicable.
• averages are affected by extreme values
• extreme value should either be omitted or this method should not be
applied
Venkata Sai Krishna M
Example 1
Venkata Sai Krishna M
Example 1 Solutions
Venkata Sai Krishna M
Example 1 Solution
• Trend of 1 year is called the
slope = m = 3.656
• Trend of 1st year in the
series is the y –intercept = c
= 25.008
• Then the trend line is
y= 3.656x + 25.008
Venkata Sai Krishna M

More Related Content

What's hot

Lesson 2 stationary_time_series
Lesson 2 stationary_time_seriesLesson 2 stationary_time_series
Lesson 2 stationary_time_seriesankit_ppt
 
Moving average method maths ppt
Moving average method maths pptMoving average method maths ppt
Moving average method maths pptAbhishek Mahto
 
Mba 532 2011_part_3_time_series_analysis
Mba 532 2011_part_3_time_series_analysisMba 532 2011_part_3_time_series_analysis
Mba 532 2011_part_3_time_series_analysisChandra Kodituwakku
 
Time series analysis; Statistics for Economics
Time series analysis; Statistics for EconomicsTime series analysis; Statistics for Economics
Time series analysis; Statistics for Economicsjyothi s basavaraju
 
Analysis of Time Series
Analysis of Time SeriesAnalysis of Time Series
Analysis of Time SeriesManu Antony
 
Time Series Analysis.pptx
Time Series Analysis.pptxTime Series Analysis.pptx
Time Series Analysis.pptxSunny429247
 
Time Series Analysis - Modeling and Forecasting
Time Series Analysis - Modeling and ForecastingTime Series Analysis - Modeling and Forecasting
Time Series Analysis - Modeling and ForecastingMaruthi Nataraj K
 
Measurement of seasonal variations
Measurement of seasonal variationsMeasurement of seasonal variations
Measurement of seasonal variationsSurekha98
 
Time series analysis;Smoothing techniques; RMSE pptx
Time series analysis;Smoothing techniques; RMSE pptxTime series analysis;Smoothing techniques; RMSE pptx
Time series analysis;Smoothing techniques; RMSE pptxjyothi s basavaraju
 
Trend analysis and time Series Analysis
Trend analysis and time Series Analysis Trend analysis and time Series Analysis
Trend analysis and time Series Analysis Amna Kouser
 
Time Series
Time SeriesTime Series
Time Seriesyush313
 
Arima model
Arima modelArima model
Arima modelJassika
 
Lesson 1 introduction_to_time_series
Lesson 1 introduction_to_time_seriesLesson 1 introduction_to_time_series
Lesson 1 introduction_to_time_seriesankit_ppt
 
Forecasting techniques, time series analysis
Forecasting techniques, time series analysisForecasting techniques, time series analysis
Forecasting techniques, time series analysisSATISH KUMAR
 

What's hot (20)

Time series.ppt
Time series.pptTime series.ppt
Time series.ppt
 
time series analysis
time series analysistime series analysis
time series analysis
 
Lesson 2 stationary_time_series
Lesson 2 stationary_time_seriesLesson 2 stationary_time_series
Lesson 2 stationary_time_series
 
Moving average method maths ppt
Moving average method maths pptMoving average method maths ppt
Moving average method maths ppt
 
Mba 532 2011_part_3_time_series_analysis
Mba 532 2011_part_3_time_series_analysisMba 532 2011_part_3_time_series_analysis
Mba 532 2011_part_3_time_series_analysis
 
Time series analysis; Statistics for Economics
Time series analysis; Statistics for EconomicsTime series analysis; Statistics for Economics
Time series analysis; Statistics for Economics
 
Timeseries forecasting
Timeseries forecastingTimeseries forecasting
Timeseries forecasting
 
Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
 
Analysis of Time Series
Analysis of Time SeriesAnalysis of Time Series
Analysis of Time Series
 
Time Series Analysis.pptx
Time Series Analysis.pptxTime Series Analysis.pptx
Time Series Analysis.pptx
 
Time Series Analysis - Modeling and Forecasting
Time Series Analysis - Modeling and ForecastingTime Series Analysis - Modeling and Forecasting
Time Series Analysis - Modeling and Forecasting
 
Measurement of seasonal variations
Measurement of seasonal variationsMeasurement of seasonal variations
Measurement of seasonal variations
 
Time series analysis;Smoothing techniques; RMSE pptx
Time series analysis;Smoothing techniques; RMSE pptxTime series analysis;Smoothing techniques; RMSE pptx
Time series analysis;Smoothing techniques; RMSE pptx
 
Trend analysis and time Series Analysis
Trend analysis and time Series Analysis Trend analysis and time Series Analysis
Trend analysis and time Series Analysis
 
Time Series
Time SeriesTime Series
Time Series
 
Time Series Decomposition
Time Series DecompositionTime Series Decomposition
Time Series Decomposition
 
Law of large numbers
Law of large numbersLaw of large numbers
Law of large numbers
 
Arima model
Arima modelArima model
Arima model
 
Lesson 1 introduction_to_time_series
Lesson 1 introduction_to_time_seriesLesson 1 introduction_to_time_series
Lesson 1 introduction_to_time_series
 
Forecasting techniques, time series analysis
Forecasting techniques, time series analysisForecasting techniques, time series analysis
Forecasting techniques, time series analysis
 

Similar to Time series and forecasting

Moving avg & method of least square
Moving avg & method of least squareMoving avg & method of least square
Moving avg & method of least squareHassan Jalil
 
Seasonal variations
Seasonal variationsSeasonal variations
Seasonal variationsmvskrishna
 
trendanalysis-170105165905.pptx
trendanalysis-170105165905.pptxtrendanalysis-170105165905.pptx
trendanalysis-170105165905.pptxssuserd329601
 
trendanalysis-170105165905.pptx
trendanalysis-170105165905.pptxtrendanalysis-170105165905.pptx
trendanalysis-170105165905.pptxssuserd329601
 
Statr session 25 and 26
Statr session 25 and 26Statr session 25 and 26
Statr session 25 and 26Ruru Chowdhury
 
Enterprise_Planning_TimeSeries_And_Components
Enterprise_Planning_TimeSeries_And_ComponentsEnterprise_Planning_TimeSeries_And_Components
Enterprise_Planning_TimeSeries_And_Componentsnanfei
 
trendanalysis for mba management students
trendanalysis for mba management studentstrendanalysis for mba management students
trendanalysis for mba management studentsSoujanyaLk1
 
Time Series Analysis and Forecasting.ppt
Time Series Analysis and Forecasting.pptTime Series Analysis and Forecasting.ppt
Time Series Analysis and Forecasting.pptssuser220491
 
Business forecasting and timeseries analysis phpapp02
Business forecasting and timeseries analysis phpapp02Business forecasting and timeseries analysis phpapp02
Business forecasting and timeseries analysis phpapp02MD ASADUZZAMAN
 
Anaplan Stat Forecasting Methods.pdf
Anaplan Stat Forecasting Methods.pdfAnaplan Stat Forecasting Methods.pdf
Anaplan Stat Forecasting Methods.pdfVishYrdy
 
3. Statistical Analysis.pptx
3. Statistical Analysis.pptx3. Statistical Analysis.pptx
3. Statistical Analysis.pptxjeyanthisivakumar
 

Similar to Time series and forecasting (20)

Moving avg & method of least square
Moving avg & method of least squareMoving avg & method of least square
Moving avg & method of least square
 
Seasonal variations
Seasonal variationsSeasonal variations
Seasonal variations
 
trendanalysis-170105165905.pptx
trendanalysis-170105165905.pptxtrendanalysis-170105165905.pptx
trendanalysis-170105165905.pptx
 
trendanalysis-170105165905.pptx
trendanalysis-170105165905.pptxtrendanalysis-170105165905.pptx
trendanalysis-170105165905.pptx
 
Trend analysis
Trend analysisTrend analysis
Trend analysis
 
Trend analysis fo business
Trend analysis fo businessTrend analysis fo business
Trend analysis fo business
 
Statr session 25 and 26
Statr session 25 and 26Statr session 25 and 26
Statr session 25 and 26
 
Enterprise_Planning_TimeSeries_And_Components
Enterprise_Planning_TimeSeries_And_ComponentsEnterprise_Planning_TimeSeries_And_Components
Enterprise_Planning_TimeSeries_And_Components
 
trendanalysis for mba management students
trendanalysis for mba management studentstrendanalysis for mba management students
trendanalysis for mba management students
 
Time Series Analysis and Forecasting.ppt
Time Series Analysis and Forecasting.pptTime Series Analysis and Forecasting.ppt
Time Series Analysis and Forecasting.ppt
 
Chapter03
Chapter03Chapter03
Chapter03
 
Business forecasting and timeseries analysis phpapp02
Business forecasting and timeseries analysis phpapp02Business forecasting and timeseries analysis phpapp02
Business forecasting and timeseries analysis phpapp02
 
forecast.ppt
forecast.pptforecast.ppt
forecast.ppt
 
Time series
Time seriesTime series
Time series
 
Anaplan Stat Forecasting Methods.pdf
Anaplan Stat Forecasting Methods.pdfAnaplan Stat Forecasting Methods.pdf
Anaplan Stat Forecasting Methods.pdf
 
Time series
Time series Time series
Time series
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
8134485.ppt
8134485.ppt8134485.ppt
8134485.ppt
 
BS6_Measurement of Trend.pptx
BS6_Measurement of Trend.pptxBS6_Measurement of Trend.pptx
BS6_Measurement of Trend.pptx
 
3. Statistical Analysis.pptx
3. Statistical Analysis.pptx3. Statistical Analysis.pptx
3. Statistical Analysis.pptx
 

Recently uploaded

ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Cantervoginip
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024thyngster
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhijennyeacort
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理e4aez8ss
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxFurkanTasci3
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...limedy534
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Bookvip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Bookmanojkuma9823
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 

Recently uploaded (20)

ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Canter
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptx
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
Call Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort ServiceCall Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort Service
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Bookvip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 

Time series and forecasting

  • 1. Time Series and Forecasting Venkata Sai Krishna M
  • 2. Introduction • Forecasting or predicting is an essential tool in any decision-making process • Used for Inventory management to annual sales • Quality depends on the quantity of the past data • Pattern is used to arrive at an estimate in the future • This analysis helps us cope with uncertainty about the future Venkata Sai Krishna M
  • 3. Variations in Time Series 4 different variation involved in time series: 1. Secular Trend 2. Cyclical Fluctuation 3. Seasonal Variation 4. Irregular Variation Venkata Sai Krishna M
  • 4. Secular Trend • The value of the variable tends to increase or decrease over a long period • Steady increase in cost of living recorded by the Consumer Price Index is an example of secular trend • In terms of long term period, complete cost of living varies a great deal Venkata Sai Krishna M
  • 5. Cyclical Trend • Business cycle is the most common example • Peak at sometimes and likely to slump at the other • The cycle may extend up to 1 year to 15 to 20 years • There is no regular pattern but will move in little unpredictable manner Venkata Sai Krishna M
  • 6. Seasonal Variation • Involves patterns of change within a year • They tend to have a cycle from year to year • Substantial peak and irregular through at particular periods in a year Venkata Sai Krishna M
  • 7. Irregular Variations • Value of a variable may be completely unpredictable • Effect of one situation ripples to the impact of any other inter related commodity • White Revolution and effect on Gas Venkata Sai Krishna M
  • 8. Reasons for Studying Trends • The study of secular trends allows us to describe a historical pattern • Evaluating the eating lifecycle resulted in creation of Maggie • Studying secular trends permits us to project past patterns, or trends, into the future • Growth trend of population helps predict the population projections • In many situations, studying the secular trend of a time series allows us to eliminate the trend component from the series • Make in India Campaign Venkata Sai Krishna M
  • 9. Fitting the Linear Trend by the least-squares method • Assuming the trend is in the straight line • The general equation of a straight line: y = mx + c • y is the dependent axis • X is the independent axis • c is the intercept of the line • m is the slope of the trend line Venkata Sai Krishna M
  • 10. Slope and Intercept Slope of the best fitting Regression Line m = 𝑋𝑌 −(𝑛∗𝑚𝑒𝑎𝑛 𝑋 ∗𝑚𝑒𝑎𝑛 𝑌 ) 𝑋2−(𝑛∗𝑚𝑒𝑎𝑛(𝑋)2) Y-intercept of the Best-Fitting Regression Line c=mean(Y)-m*mean(X) • X = values of dependent axis • Y = values of independent axis • n = number of data points in the time series • m= slope • c= Y-Intercept Venkata Sai Krishna M
  • 11. Translating or coding time • It is tedious to calculate in the equation to find the slope • We can convert the traditional measures of time into the following • If there are 3 points of time 1992, 1993, 1994 • They can be represented as -1, 0, 1 • Can be achieved by subtracting the mean from all the 3 points Venkata Sai Krishna M
  • 12. Time Coding Venkata Sai Krishna M S No X X-Mean(X) Coded Time 1 1989 1989-1992 -3 2 1990 1990-1992 -2 3 1991 1991-1992 -1 4 1992 1992-1992 0 5 1993 1993-1992 1 6 1994 1994-1992 2 7 1995 1995-1992 3 S No X X-Mean(X) X-Mean(X) Coded Time (X-Mean(X))*2 1 1990 1990-1992.5 -2.5 -5 2 1991 1991-1992.5 -1.5 -3 3 1992 1992-1992.5 -0.5 -1 4 1993 1993-1992.5 0.5 1 5 1994 1994-1992.5 1.5 3 6 1995 1995-1992.5 2.5 5
  • 13. Slope and intercept of coded time • Slope of the trend line for coded time values m= 𝑥𝑌 𝑥2 • Intercept of the trend line for coded time values a= mean (Y) Venkata Sai Krishna M
  • 14. Problem 1 • Calculate the slope and y intercept for the following trend Venkata Sai Krishna M X Y (1) (2) 1988 98 1989 105 1990 116 1991 119 1992 135 1993 156 1994 177 1995 208
  • 15. Problem 1 • Calculate the slope and y intercept for the following trend Venkata Sai Krishna M X Y X-mean(X) (X-mean(X))*2 XY X^2 (1) (2) (3) (3)*2=(4) (4)*(2) (4)^2 1988 98 -3.5 -7 -686 49 1989 105 -2.5 -5 -525 25 1990 116 -1.5 -3 -348 9 1991 119 -0.5 -1 -119 1 1992 135 0.5 1 135 1 1993 156 1.5 3 468 9 1994 177 2.5 5 885 25 1995 208 3.5 7 1456 49 Mean: 1991.50 Sum: 1266 168 Slope: 1266/168 = 7.536 Y-intercept = 139.25 Trend line is y= 7.536 * x + 139.25
  • 16. Problem 2 Jim is a part time plumber. Now he wanted to hire some staff for himself and wanted to forecast the next 3 years trends Venkata Sai Krishna M Year Avg Client per month 2001 6.4 2002 11.3 2003 14.7 2004 18.4 2005 19.6 2006 25.7 2007 32.5 2008 48.7 2009 55.4 2010 75.7 2011 94.3
  • 17. Problem 2 Jim is a part time plumber. Now he wanted to hire some staff for himself and wanted to forecast the next 3 years trends Venkata Sai Krishna M Year Avg Client per month Time Code X * Y X^2 2001 6.4 -5 -32 25 2002 11.3 -4 -45.2 16 2003 14.7 -3 -44.1 9 2004 18.4 -2 -36.8 4 2005 19.6 -1 -19.6 1 2006 25.7 0 0 0 2007 32.5 1 32.5 1 2008 48.7 2 97.4 4 2009 55.4 3 166.2 9 2010 75.7 4 302.8 16 2011 94.3 5 471.5 25 Intercept: 36.60909091 Sum: 892.7 110 Slope: 892.7/110 = 8.11 Y-intercept = 36.6091 Trend line is y= 8.11 * x + 36.6091 2012: y= 8.11 * 6 + 36.6091 = 85.3 2013: y= 8.11 * 7 + 36.6091 = 93.4 2014: y= 8.11 * 8 + 36.6091 = 101.5
  • 18. Methods of estimating Trend • Freehand Method • Moving Average Method • Semi-Average Method • Least Square Method Venkata Sai Krishna M
  • 19. Freehand method • Briefly described for drawing frequency curves • Observations is plotted against time on the horizontal axis and a freehand smooth curve is drawn through the plotted points • Smoothness should not be scarified in trying to let the points fall exactly on the curve • Eliminates the short term and long term oscillations and the irregular movements from the time series, and elevates the general trend Disadvantages: • Different individuals draw curves or lines that differ in slope and intercept • Used only in situations where the scatter diagram of the original data conforms to some well define trends Venkata Sai Krishna M
  • 20. Problem 1 Measure the trend using the method of the freehand curve from the given data of production of wheat in a particular area of the world. Venkata Sai Krishna M Years Production Million Metric Tons 1981 6.6 1982 6.9 1983 5.6 1984 6.3 1985 8.4 1986 7.2 1987 7.2 1988 8.5 1989 8.5
  • 21. Problem 1 Measure the trend using the method of the freehand curve from the given data of production of wheat in a particular area of the world. Venkata Sai Krishna M Years Production Million Metric Tons 1981 6.6 1982 6.9 1983 5.6 1984 6.3 1985 8.4 1986 7.2 1987 7.2 1988 8.5 1989 8.5
  • 22. Moving Average Method • A n-period moving average for time period t is the arithmetic average of the time series values for the n most recent time periods • For example: A 3-period moving average at period (t+1) is calculated by (yt-2 + yt-1 + yt)/3 • Advantages of Moving Average Method • Easily understood • Easily computed • Provides stable forecasts • Disadvantages of Moving Average Method • Requires saving all past n data points • Lags behind a trend • Ignores complex relationships in data Venkata Sai Krishna M
  • 23. Example 1 Venkata Sai Krishna M Period Actual MA (3) MA (5) 1 42 2 40 3 43 4 40 41.67 5 41 41.00 6 39 41.33 41.2 7 46 40.00 40.6 8 44 42.00 41.8 9 45 43.00 42 10 38 45.00 43 11 40 42.33 42.4 12 41.00 42.6 34 36 38 40 42 44 46 48 1 2 3 4 5 6 7 8 9 10 11 12 Weighted Moving Average Actual MA (3) MA (5)
  • 24. Semi Average Method • This method is as simple and relatively objective as the free hand method • Data is divided in two equal halves and the arithmetic mean is calculated • If the number of observations is even the division into halves • If the number of observations is odd, then the middle most item is dropped Venkata Sai Krishna M
  • 25. Advantages and Disadvantages of the Semi- Averages Method • Advantages • This method is very simple and easy to understand, and also it does not require many calculations. • Disadvantages • For non-linear trends this method is not applicable. • averages are affected by extreme values • extreme value should either be omitted or this method should not be applied Venkata Sai Krishna M
  • 28. Example 1 Solution • Trend of 1 year is called the slope = m = 3.656 • Trend of 1st year in the series is the y –intercept = c = 25.008 • Then the trend line is y= 3.656x + 25.008 Venkata Sai Krishna M