CD-803-B Time-Series Analysis

Time-Series Analysis (CD-803-B) Important Questions

RGPV · B.Tech · CSE-DS · Semester 8 · Current scheme · 0 papers

  1. Read the answers

    Start with the topics that come every year.

  2. Revise unit notes

    Go through each unit once to score more.

Paperwala Imp Topics - Time-Series Analysis important questions

Download Paperwala Imp Question & Answer (PDF)

Chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.

Time-Series Analysis important questions with answers

Each answer starts with the short answer. Then come the points to write, a diagram and an exam tip. The topics are chosen from the syllabus.

Q1. Time series, forecasting and internal structure

From the syllabus · Unit 1

From the papers

  • “Unit 1: Introduction to time series and forecasting, different types of data, internal structures of time series.” (Syllabus)

The short answer

A time series is a set of observations of one quantity taken at regular times. Forecasting uses the past values to estimate future values.

Write these points

Types of data

  • Time series data: one unit over time, such as daily sales of a shop.
  • Cross-section data: many units at one time, such as marks of a class in one exam.
  • Panel data: many units over time.

Internal structure

  • Trend: a long run rise or fall.
  • Seasonal: a pattern that repeats at a fixed period, such as sales that rise every Diwali.
  • Cyclical: a rise and fall with no fixed period, such as business cycles.
  • Irregular (noise): what is left after the other parts.
  • Values next to each other in time are related. This autocorrelation is the reason special methods are needed.

Parts of a quarterly series.

Sales of two years, in quarters: 20 30 40 26 and 24 34 44 30.

Year means: 29 and 33, so the trend rises by 4 a year. Quarter means: 22, 32, 42, 28. The overall mean is 31.

Seasonal effect = quarter mean minus overall mean = minus 9, plus 1, plus 11, minus 3. Quarter 3 is always the best.

Real-life example

A cold drink seller in Bhopal sells more every summer and a little more every year. The yearly rise is the trend and the summer peak is the seasonal part. A forecast has to keep both.

Diagram: Time series, forecasting and internal structure

Same or opposite: time series and cross-section data

PointTime seriesCross-sectionSame or opposite
Observed overMany timesOne timeOpposite
Order of values mattersYesNoOpposite
Many observations of a variableYesYesSame
Typical exampleDaily salesMarks of one classOpposite

Exam tip. Define a time series and name the four parts with one example each. The quarterly numbers show you can separate the parts. Add the line on autocorrelation.

Back to the topic list

Q2. Models for time series analysis

From the syllabus · Unit 1

From the papers

  • “Unit 1: Models for time series analysis.” (Syllabus)

The short answer

A time series model writes each value as a combination of trend, seasonal and random parts. The two common forms are the additive and the multiplicative model.

Write these points

Common models

  • Additive: y = trend + seasonal + noise. Use it when the seasonal swing has the same size at all levels.
  • Multiplicative: y = trend x seasonal x noise. Use it when the swing grows with the level. Taking logs makes it additive.
  • White noise: uncorrelated values with mean 0 and constant variance. It cannot be forecast.
  • Random walk: y(t) = y(t minus 1) + noise. The best forecast is the last value.
  • Stochastic models: AR, MA, ARMA and ARIMA (unit 4).

Additive and multiplicative on one quarter.

Trend = 30. Seasonal effect in quarter 3 = plus 11 gives y = 30 + 11 = 41 (additive).

A seasonal index of 1.35 gives y = 30 x 1.35 = 40.5 (multiplicative).

Log check: log10 of the series 100, 110, 121, 133.1 is 2.0000, 2.0414, 2.0828, 2.1242. Equal steps of 0.0414 show a constant growth rate of 10 percent.

Real-life example

A mobile shop sells 10 percent more phones every quarter. The sales grow as a multiple of the earlier value. A log of the sales turns that growth into a straight line and makes an additive model fit.

Diagram: Models for time series analysis

Same or opposite: additive and multiplicative model

PointAdditiveMultiplicativeSame or opposite
Parts areAddedMultipliedOpposite
Seasonal swingSame sizeGrows with levelOpposite
Log turns it into the other formNo, it is already additiveYesOpposite
Includes trend, seasonal and noiseYesYesSame

Exam tip. Write both equations and say when each is used. Show the log check, because it links the two forms. Name white noise and the random walk.

Back to the topic list

Q3. Autocorrelation and partial autocorrelation

From the syllabus · Unit 1

From the papers

  • “Unit 1: Autocorrelation and partial autocorrelation.” (Syllabus)

The short answer

The autocorrelation function (ACF) gives the correlation of a series with itself at lag k. The partial autocorrelation function (PACF) gives the correlation at lag k after removing the effect of the lags between.

Write these points

Definitions

  • ACF at lag k: r(k) = sum of (y(t) minus mean)(y(t+k) minus mean) / sum of (y(t) minus mean) squared.
  • The ACF at lag 0 is 1. Values lie between minus 1 and 1.
  • Confidence band: about plus or minus 2 / square root of n. Bars outside it are significant.
  • PACF at lag 2: (r2 minus r1 squared) / (1 minus r1 squared).
  • Use: an AR(p) process has a PACF that cuts off after lag p. An MA(q) process has an ACF that cuts off after lag q.

ACF of 12 monthly values: 112 118 132 129 121 135 148 148 136 119 104 118.

Mean = 126.67. r1 = 0.562. r2 = minus 0.078. r3 = minus 0.320.

Band = 2 / square root of 12 = 0.577. r1 is near the band edge, so it is on the border of significance.

PACF at lag 2 = (minus 0.078 minus 0.316) / (1 minus 0.316) = minus 0.576.

Remember. The 12 values are made up for practice. With only 12 points the bands are wide.

Real-life example

A shopkeeper notes that sales today are close to sales of yesterday. The ACF puts a number on that link. A value near 1 at lag 1 says that yesterday is a good guide for today.

Diagram: Autocorrelation and partial autocorrelation

Same or opposite: ACF and PACF

PointACFPACFSame or opposite
Effect of the lags betweenIncludedRemovedOpposite
Cuts off after q for MA(q)YesNoOpposite
Cuts off after p for AR(p)NoYesOpposite
Lies between minus 1 and 1YesYesSame

Exam tip. Write the ACF formula and the band. Work r1 on the 12 value series. State the cut-off rule for AR and MA.

Back to the topic list

Q4. Nature, uses and process of forecasting

From the syllabus · Unit 1

From the papers

  • “Unit 1: Nature and uses of forecasting, forecasting process, data and resources for forecasting.” (Syllabus)

The short answer

Forecasting is the use of past data and models to estimate future values. It follows a set of steps.

Write these points

Nature and uses

  • Short term: daily demand of a shop. Medium and long term: capacity and budget plans.
  • Forecasts are rarely exact. A good forecast also states its error range.
  • Uses: stock control, electricity load, crop prices, fee collection, exam traffic on a website.

Forecasting process

  1. State the problem and what is needed.
  2. Collect and check the data.
  3. Plot the data and look for trend and season.
  4. Choose and fit a model.
  5. Check the model and forecast.
  6. Use the forecast and monitor the errors over time.

Data and resources

  • Sources: company records, government releases such as RBI and MOSPI data, sensors.
  • Check for missing values, wrong entries and changes in how the data are measured.
  • Tools: spreadsheets, R, Python (pandas, statsmodels) and dedicated software.

A naive forecast to start.

Series ends at 118 with the same month last year at 119. Random walk forecast = 118. Seasonal naive forecast = 119.

Any better model should beat these two.

Real-life example

An electricity board must plan power for next summer. It collects the last years of hourly load, plots it, fits a model and compares forecasts with what happened. It then repeats the steps each year.

Diagram: Nature, uses and process of forecasting

Same or opposite: short term and long term forecasting

PointShort termLong termSame or opposite
HorizonDays or weeksYearsOpposite
Typical accuracyHigherLowerOpposite
Uses past data and a modelYesYesSame
Used forDaily operationsCapacity and budgetsOpposite

Exam tip. List the six steps of the process in order. Add the idea of a naive benchmark. Give two uses.

Back to the topic list

Q5. Graphical displays and smoothed data

From the syllabus · Unit 2

From the papers

  • “Unit 2: Graphical displays, time series plots, plotting smoothed data.” (Syllabus)

The short answer

Graphical displays show a time series before modelling. The main ones are the time series plot and the smoothed plot made with a moving average.

Write these points

Plots

  • Time series plot: value on the vertical axis and time on the horizontal axis. Look for trend, season, jumps and outliers.
  • Seasonal plot: one line per year over the months of the year, to show the seasonal pattern.
  • Lag plot: y(t) against y(t minus 1), to show autocorrelation.
  • Histogram and box plot of the values for the shape and outliers.

Smoothing by moving average

  • A 3 point moving average replaces each value with the mean of itself and its two neighbours.
  • A longer window gives a smoother line and a longer delay.
  • A moving average over one full season removes the seasonal part.

3 point moving average of 112 118 132 129 121 135 148.

(112 + 118 + 132) / 3 = 120.67. (118 + 132 + 129) / 3 = 126.33.

(132 + 129 + 121) / 3 = 127.33. (129 + 121 + 135) / 3 = 128.33. (121 + 135 + 148) / 3 = 134.67.

The smoothed series is less jumpy and shows the rise in the middle.

Real-life example

A cricket fan looks at the run rate over the last 5 overs instead of the last ball. The average hides single ball noise and shows the trend. A moving average does that for any series.

Diagram: Graphical displays and smoothed data

Same or opposite: short and long moving average window

PointShort windowLong windowSame or opposite
SmoothnessLowHighOpposite
Delay behind the dataSmallLargeOpposite
Reduces random noiseYesYesSame
Follows sudden changeQuicklySlowlyOpposite

Exam tip. Name the four plots with one line each. Compute at least three moving average values by hand. Say what changes with the window length.

Back to the topic list

Q6. Numerical description, transformations and adjustments

From the syllabus · Unit 2

From the papers

  • “Unit 2: Numerical description of time series data, use of data transformations and adjustments.” (Syllabus)

The short answer

Numerical description summarises a series with the mean, variance and ACF. Data transformations and adjustments such as logs, differences and calendar changes make the series easier to model.

Write these points

Numerical description

  • Mean, median, standard deviation, minimum and maximum of the series.
  • The ACF values at the first lags. Autocorrelation is the key feature of a series.

Transformations and adjustments

  • Log or power (Box-Cox): makes the variance steady when the swing grows with the level.
  • Differencing: y(t) minus y(t minus 1) removes a trend. A seasonal difference y(t) minus y(t minus s) removes a season.
  • Calendar adjustment: per day values when months have different lengths.
  • Population or price adjustment: per person values or real values after removing inflation.
  • Back transform the forecast at the end.

Log and difference of a growing series.

Series: 100, 110, 121, 133.1. Differences: 10, 11, 12.1 (growing).

Differences of the natural log: 0.0953, 0.0953, 0.0953. The growth is steady at about 10 percent.

Differencing the 12 values.

The 12 values give first differences 6, 14, minus 3, minus 8, 14, 13, 0. Then minus 12, minus 17, minus 15, 14.

Real-life example

Prices of vegetables rise with inflation. To compare 2015 with 2025 an analyst first removes inflation. The adjusted series shows the real change.

Diagram: Numerical description, transformations and adjustments

Same or opposite: log transform and differencing

PointLog transformDifferencingSame or opposite
AimSteady varianceRemove trend or seasonOpposite
OperationTake the logarithmSubtract an earlier valueOpposite
Changes the scale of the dataYesYesSame
Can be undone at the endYesYesSame

Exam tip. Show the effect of both on the same series with numbers. Name two adjustments. Remember to back transform the forecast.

Back to the topic list

Q7. General approach and evaluating forecast performance

From the syllabus · Unit 2

From the papers

  • “Unit 2: General approach to time series modelling and forecasting, evaluating and monitoring forecasting model performance.” (Syllabus)

The short answer

The general approach is to fit a model, forecast and check the errors. Performance is measured by MAE, RMSE and MAPE and monitored with a tracking signal.

Write these points

General approach

  1. Split the data into a fitting part and a test part.
  2. Fit the model on the fitting part.
  3. Forecast the test part and compute the errors.
  4. Compare models, refit on all data and forecast the future.

Error measures

  • Error e = actual minus forecast. MAE = mean of |e|.
  • MSE = mean of e squared. RMSE is its square root.
  • MAPE = mean of |e| / actual x 100. It is a percent and does not depend on the units.
  • Bias is the mean of e. A value far from 0 shows that forecasts are mostly high or low.
  • Tracking signal = sum of errors / MAE. A value outside plus or minus 4 asks for a check of the model.

Five forecasts.

Actual 100 110 120 130 125. Forecast 98 112 118 135 120. Errors 2, minus 2, 2, minus 5, 5.

MAE = 3.2. MSE = 12.4. RMSE = 3.52. MAPE = 2.67 percent. Bias = 0.4.

Tracking signal = 2.0 / 3.2 = 0.625. This is well inside the limit.

Real-life example

A weather office compares each forecast with the rain that fell. It keeps a running count of errors. If the count keeps growing on one side, the model needs repair.

Diagram: General approach and evaluating forecast performance

Same or opposite: MAE and RMSE

PointMAERMSESame or opposite
Treats large errorsEquallyHeavilyOpposite
UnitsSame as dataSame as dataSame
Lower is betterYesYesSame
Value in the example3.23.52Opposite

Exam tip. Give all four measures with the formula and compute them on the five values. Add the tracking signal. These numbers earn most of the marks.

Back to the topic list

Q8. Least squares estimation in linear regression

From the syllabus · Unit 3

From the papers

  • “Unit 3: Least squares estimation in linear regression models.” (Syllabus)

The short answer

Least squares estimation in a linear regression model picks the line y = b0 + b1 x that makes the sum of squared errors as small as possible.

Write these points

Formulas

  • Slope b1 = sum of (x minus mean x)(y minus mean y) / sum of (x minus mean x) squared.
  • Intercept b0 = mean y minus b1 x mean x.
  • Residual = observed y minus fitted y. The residuals add to 0.
  • R squared = 1 minus SSE / SST. It is the share of variance explained.
  • In a time series x is often time (1, 2, 3 ...), which gives a trend line.

Trend line for six periods.

t = 1 to 6, y = 10 12 15 15 19 21. Mean t = 3.5. Mean y = 15.33.

b1 = 2.171 and b0 = 7.733. So y = 7.733 + 2.171 t.

SSE = 2.819. SST = 85.33. R squared = 0.967.

Residuals: 0.095, minus 0.076, 0.752, minus 1.419, 0.410, 0.238.

Remember. The six values are made up for practice.

Real-life example

A school fee office has the number of paid forms for six weeks. A straight line through these points shows that about 2.2 forms more are paid every week. The line is found by least squares.

Diagram: Least squares estimation in linear regression

Same or opposite: simple and multiple regression

PointSimpleMultipleSame or opposite
Number of predictorsOneTwo or moreOpposite
Estimated by least squaresYesYesSame
Fitted shapeA lineA plane or surfaceOpposite
R squared measures fitYesYesSame

Exam tip. Write the two formulas and then compute b1 and b0 in a table. Add R squared. Name the residual.

Back to the topic list

Q9. Statistical inference and prediction of new observations

From the syllabus · Unit 3

From the papers

  • “Unit 3: Statistical inference in linear regression, prediction of new observations.” (Syllabus)

The short answer

Statistical inference in regression tests whether the slope is real and gives a range for it. Prediction of a new observation gives a point forecast with a prediction interval.

Write these points

Inference

  • Estimate of error variance: s squared = SSE / (n minus 2).
  • Standard error of the slope = s / square root of the sum of (x minus mean x) squared.
  • t test: t = b1 / se(b1) with n minus 2 degrees of freedom. A large t means the slope is not 0.
  • Confidence interval for the slope: b1 plus or minus t x se(b1).

Prediction

  • Point forecast at x0: b0 + b1 x0.
  • Standard error for a new value: s x square root of (1 + 1/n + (x0 minus mean x) squared / sum of (x minus mean x) squared).
  • The interval is wider than the one for the mean line, because a new value has its own noise.

Using the six period trend line.

s squared = 2.819 / 4 = 0.7048. Standard error of the slope = 0.2007. t = 2.171 / 0.2007 = 10.8, so the slope is clearly not 0.

Forecast for period 7 = 7.733 + 2.171 x 7 = 22.93. Standard error of a new value = 1.147.

95 percent prediction interval with t = 2.776 (4 degrees of freedom): 19.75 to 26.12.

Real-life example

A forecast of 22.9 forms next week is useful only with a range. The range 19.8 to 26.1 tells the office how much to prepare. A narrow range means a more certain plan.

Diagram: Statistical inference and prediction of new observations

Same or opposite: confidence interval of the mean and prediction interval

PointConfidence intervalPrediction intervalSame or opposite
CoversThe true mean lineA new single valueOpposite
WidthNarrowerWiderOpposite
Uses the t distributionYesYesSame
Centred on the fitted valueYesYesSame

Exam tip. State the t statistic and the prediction standard error. Work the period 7 forecast with its interval. Say why the prediction interval is wider.

Back to the topic list

Q10. Model adequacy checking and variable selection

From the syllabus · Unit 3

From the papers

  • “Unit 3: Model adequacy checking, variable selection methods in regression.” (Syllabus)

The short answer

Model adequacy checking tests whether the fitted regression is a fair description of the data. Variable selection chooses which predictors stay in the model.

Write these points

Adequacy checks

  • Residual plot: residuals against fitted values should look like random scatter around 0.
  • Normal probability plot of the residuals checks the normal shape.
  • Residuals in time order show autocorrelation if they run in waves.
  • Outliers and influence: a point with a large residual or an unusual x value can change the line.
  • R squared and adjusted R squared show the fit. Adjusted R squared penalises extra variables.

Variable selection

  • Forward selection: add the best variable at each step.
  • Backward elimination: start with all and drop the weakest.
  • Stepwise: both moves.
  • Best subsets and criteria such as AIC, BIC and Mallows Cp.

Adjusted R squared.

n = 20, k = 3 predictors, R squared = 0.80.

Adjusted = 1 minus (1 minus 0.80)(19 / 16) = 1 minus 0.2375 = 0.7625.

Adding a useless variable raises R squared a little but can lower adjusted R squared.

Real-life example

A teacher checks a student answer by looking for patterns in the mistakes. Random mistakes are fine. Mistakes that follow a pattern show a model that is missing something. Residual plots do this for regression.

Diagram: Model adequacy checking and variable selection

Same or opposite: forward selection and backward elimination

PointForwardBackwardSame or opposite
Starts withNo variablesAll variablesOpposite
Each stepAdds oneDrops oneOpposite
Needs a stopping ruleYesYesSame
AimA smaller useful modelA smaller useful modelSame

Exam tip. List the checks first, then the selection methods. Show the adjusted R squared number. Mention that residuals must look random.

Back to the topic list

Start with the latest papers

Previous year papers will be added soon!

Time-Series Analysis (CD-803-B) FAQs

What are the most important topics in Time-Series Analysis?

No past paper of this subject is on this site yet, so the topics were chosen from the syllabus. The first five: Time series, forecasting and internal structure; Models for time series analysis; Autocorrelation and partial autocorrelation; Nature, uses and process of forecasting; Graphical displays and smoothed data.

How were these Time-Series Analysis important questions chosen?

Each topic was taken from the syllabus units. No past paper was available to count repeats, and the answers are not teacher-reviewed, so use them together with your syllabus.

Is there a PDF of Time-Series Analysis important questions with answers?

Yes. The Paperwala Imp Question & Answer PDF for Time-Series Analysis is free to download from this page.

The 10 topics of Time-Series Analysis (CD-803-B) for RGPV B.Tech CSE-DS semester 8, chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.