GoodScores

Artificial Intelligence for Business Forecasting – Flashcards & Quiz Questions

Covers classical time-series forecasting and machine-learning methods, and how to measure and validate forecast accuracy.

279 flashcards · 139 quiz questions · 7 topics

Get all 279 cards with Lifetime

1. Forecasting Fundamentals

Time Series Data Basics · Trend and Seasonality · Cyclical and Irregular Variation · Qualitative and Quantitative Approaches · The Naive Forecast

What is a time series?
A time series is a set of observations recorded in time order at regular intervals. Each value is tied to a specific, equally spaced point in time.
Besides being listed in time order, what condition must the spacing between observations meet for data to qualify as a time series?
The intervals between observations must be regular, meaning equal and consistent. Recording something every day or every month satisfies this; random gaps do not.
What does the observation frequency of a time series refer to?
It is how often observations are recorded, which equals the length of one regular interval. Common frequencies include hourly, daily, weekly, monthly and yearly.

Which statement defines a time series?

  1. A. A random collection of numbers with no particular sequence
  2. B. A set of measurements taken from different subjects at the same moment
  3. C. A single value recorded at one specific point in time
  4. D. A set of observations recorded in time order at regular intervals

A time series is defined by observations arranged in time order and separated by regular, equal intervals.

A retailer records its total sales at the end of every week. What is the observation frequency of this time series?

  1. A. Once every month
  2. B. Once every week
  3. C. Once every day
  4. D. Once every year

Recording sales at the end of each week gives one observation per week, so the observation frequency is weekly.

39 flashcards and 20 quiz questions in this topic.

2. Measuring Forecast Accuracy

Forecast Errors and Bias · Mean Absolute Error Explained · Mean Squared Error and RMSE · Percentage Errors and MAPE · Choosing the Right Accuracy Metric

How is the forecast error for a single period defined?
Forecast error equals the actual value minus the forecast value. It measures the signed difference between what actually happened and what was predicted.
What does a positive forecast error tell you about a period's forecast?
A positive error means the actual value was higher than the forecast, so the forecast was too low, an under-forecast.
What does a negative forecast error tell you about a period's forecast?
A negative error means the actual value was lower than the forecast, so the forecast was too high, an over-forecast.

For a given period, how is the forecast error calculated?

  1. A. Actual value minus forecast value
  2. B. Forecast value minus actual value
  3. C. Actual value divided by forecast value
  4. D. Forecast value plus actual value

The forecast error is the actual value minus the forecast value, so it captures how far the outcome differed from the prediction with a sign showing direction.

A company's forecast error for a month is -12 units. What does this indicate?

  1. A. Actual demand equalled the forecast, so there was no error
  2. B. The error has no direction because it is only a magnitude
  3. C. Actual demand was twelve units below the forecast, an over-forecast
  4. D. Actual demand was twelve units above the forecast, an under-forecast

A negative error means actual minus forecast is below zero, so the actual value was lower than predicted and the forecast was too high.

40 flashcards and 20 quiz questions in this topic.

3. Classical Forecasting Methods

Simple Moving Average Forecasting · Simple Exponential Smoothing · Holt and Holt-Winters Methods · Stationarity and Differencing · ARIMA Model Orders

What value does a simple moving average use as the forecast for the next period?
It uses the mean of the most recent n observations. Each time a new period arrives, the oldest value in the window is replaced by the newest one.
What weight does a simple moving average give to each observation in its window?
Every observation in the window receives the same weight, 1/n. No single period, including the most recent, is favoured over the others.
In a simple moving average, what does the window length n represent?
It is the number of most recent periods whose actual values are averaged to produce the forecast. Choosing n decides how much past data enters the calculation.

How is a simple moving average forecast for the next period calculated?

  1. A. As the median of every observation in the series
  2. B. As the arithmetic mean of the most recent n observations
  3. C. As an exponentially weighted average of all past observations
  4. D. As the difference between the latest two actual values

A simple moving average adds the most recent n actual values and divides by n. The other descriptions match different rules: exponential weighting, differencing and a median.

A shop's weekly demand for four weeks was 30, 34, 38 and 42 units. Using a four-week simple moving average, what is the forecast for week 5?

  1. A. It is forty units.
  2. B. It is forty-two units.
  3. C. It is thirty-six units.
  4. D. It is thirty-eight units.

Adding 30, 34, 38 and 42 gives 144, and dividing by 4 gives 36. The other figures come from averaging only the last three, only the last two, or copying the latest value.

40 flashcards and 20 quiz questions in this topic.

4. Machine Learning Basics

What Machine Learning Is · Supervised and Unsupervised Learning · Regression and Classification Tasks · Features and Lagged Variables · Overfitting and Model Generalization

What is machine learning?
It is a branch of artificial intelligence in which models learn patterns from data instead of following explicit programmed rules.
In traditional rule-based programming, who supplies the decision rules?
A human programmer writes the rules or formula explicitly, and the computer applies them to inputs.
How does a rule-based program turn an input into an output?
It applies the rules or formula that were fixed in advance; the decision logic is set before the data is seen.

Which of the following defines machine learning?

  1. A. A branch of artificial intelligence in which models follow explicit rules written by a programmer.
  2. B. A programming method where the computer writes its own code without using any data.
  3. C. A process that requires every decision rule to be stated before the model is used.
  4. D. A branch of artificial intelligence in which models learn patterns from data rather than following explicit rules.

Machine learning is defined as a branch of artificial intelligence where models learn patterns from data instead of following explicit rules. The other statements describe rule-based programming or claims that are not part of the definition.

How does a traditional rule-based program make a decision?

  1. A. It changes its rules each time it sees new data.
  2. B. It ignores the input and relies only on stored patterns.
  3. C. It applies rules that a human programmer wrote in advance to an input.
  4. D. It learns the rules by studying examples during a training phase.

A rule-based program follows instructions explicitly written by a programmer and applies them to inputs. It does not learn from examples or alter its rules from data.

40 flashcards and 19 quiz questions in this topic.

5. Tree-Based Models

Decision Trees and Recursive Splitting · Bootstrap Sampling and Bagging · Random Forests · Gradient Boosting · Ensemble Methods and Choosing a Tree Model

What is a decision tree, described by how it makes a prediction?
A decision tree is a model that predicts by repeatedly splitting data on feature values. Each split divides the data into smaller groups, and the process continues down the tree until a final group is reached.
What is the root node of a decision tree?
The root node is the top node where the first split takes place. It applies the single feature and value that best separates the data at the start of the tree.
How does a decision tree decide which feature and value to split on at a node?
At each node it chooses the feature and threshold that best separate the data, commonly judged by Gini impurity or by entropy through information gain. The aim is to make the resulting groups as pure as possible.

In a decision tree, what is the node where the first split occurs called?

  1. A. The root node that performs the first split
  2. B. An internal node produced by an earlier split
  3. C. The deepest node before a prediction is made
  4. D. The leaf node that stores the final prediction

The root node is the top of the tree and is where the first feature split is applied. Leaf and internal nodes appear only after splits have already occurred.

What does a decision tree use to choose the best feature and value at a node?

  1. A. A measure of how pure the resulting groups are, such as Gini impurity or entropy
  2. B. The total number of features available in the dataset
  3. C. A random value assigned to each feature before training
  4. D. The alphabetical order in which the features are listed

A tree selects the split that makes the child groups most alike, judged by impurity measures such as Gini impurity or entropy. The number, order or random labelling of features does not decide a split.

40 flashcards and 20 quiz questions in this topic.

6. Neural Networks and Deep Learning

Neural Network Architecture and Layers · Neuron Computation and Activation Functions · Backpropagation, Gradient Descent and Epochs · Deep Architectures and Feature Learning · Recurrent Networks and LSTM for Sequences

What are the three types of layers that make up a standard artificial neural network?
An input layer, one or more hidden layers, and an output layer. Signals pass through them in that order.
What is the role of the input layer in a neural network?
It receives the raw input values and passes them into the network. In a simple feedforward network it performs no learned weighted-sum computation of its own.
What happens in a hidden layer of a neural network?
It takes the outputs of the previous layer, applies weights, a bias and an activation function, and passes the result onward. A network may have one or several hidden layers.

Which order correctly lists the layers of a standard feedforward neural network as data moves through it?

  1. A. An output layer, then hidden layers, then an input layer
  2. B. An input layer, then an output layer, then hidden layers
  3. C. Hidden layers only, with input and output handled outside the network
  4. D. An input layer, then one or more hidden layers, then an output layer

Data enters at the input layer, is transformed by the hidden layers, and leaves through the output layer. The other arrangements break this forward structure.

In a fully connected layer of a neural network, how are the neurons linked to the following layer?

  1. A. Each neuron links only to the single neuron at the same position in the following layer
  2. B. Neurons link only to neighbouring neurons inside their own layer
  3. C. Every neuron skips the adjacent layer and links to the layer two steps ahead
  4. D. Every neuron links to every neuron in the following layer, with a separate weight on each link

A fully connected layer gives each neuron a link to every neuron in the next layer, each with its own weight. The alternatives describe partial, within-layer, or skipped connections.

40 flashcards and 20 quiz questions in this topic.

7. Validating Forecasting Models

Time-Ordered Train and Test Split · Walk-Forward and Rolling-Origin Validation · Detecting and Preventing Data Leakage · Hyperparameter Tuning with Time-Series CV · Benchmarking Against the Naive Forecast

What is a time-ordered train and test split in forecasting?
It is splitting a time series by chronology: the model is trained on earlier observations and evaluated on later ones. This mimics how forecasts are made in practice, using the past to predict the future.
Why should time-series data not be shuffled before splitting into training and test sets?
Shuffling mixes later observations into the training set and earlier ones into the test set. The model then learns from future information, which is data leakage and makes accuracy look better than it really is.
In a time-ordered split, which observations form the training set and which form the test set?
The earlier portion of the series is the training set and the later, unseen portion is the test set. The split point is a date or time index, not a random selection.

Which splitting method trains a forecasting model on earlier observations and evaluates it only on later ones?

  1. A. Randomly assigning rows to training and test sets
  2. B. Splitting the series at a point in time, training on earlier data and testing on later data
  3. C. Training on the most recent data and testing on the earliest data
  4. D. Using every observation for training and none for testing

A time-ordered split places all earlier observations in training and all later ones in testing, so the model is judged on unseen future periods. The other options either mix the order, reverse it, or leave no test set.

Why does shuffling a time series before splitting usually inflate the measured accuracy?

  1. A. It removes all seasonal patterns from the data
  2. B. It lets the model learn from observations that occur after the test period
  3. C. It reduces the total number of observations available
  4. D. It gives the model an equal number of rows in each set

Shuffling places later observations into training, so future information leaks into the model and the test result becomes too optimistic. The other choices describe effects that shuffling does not cause.

40 flashcards and 20 quiz questions in this topic.

Study every card

Every card and question in this course comes with the Lifetime package. Add it to GoodScores and practise with flashcards, quizzes and spaced review.

Get all 279 cards with Lifetime