Data Visualization & Business Intelligence

Chapter 9
Analytical Methods in BI

Advance Diploma in Business Analytics
Data Visualization & Business Intelligence   •   Advance Diploma

Analytical Methods in BI

Introduction

Business intelligence (BI) becomes valuable when descriptive data is converted into decisions. A dashboard may show revenue, customer counts, costs, or service levels, but management usually needs deeper answers: Which segments create value? Why did performance change? Is a target likely to be achieved? What would happen if price, staffing, or marketing expenditure changed? Analytical methods provide disciplined ways to answer these questions.

This chapter presents a practical analytical toolkit: aggregation, segmentation, variance analysis, trend analysis, forecasting, what-if analysis, cohort analysis, and basic predictive indicators. These methods are complementary. Aggregation establishes the overall picture; segmentation reveals differences; variance and trend analysis explain movement; forecasting supports planning; scenario analysis examines choices; cohort analysis studies behaviour over time; and predictive indicators provide early warnings.

BI analysis should not be understood as automatic truth production. Every result depends on data definitions, measurement quality, assumptions, and context. A technically correct calculation can still produce a poor decision if the population, period, denominator, or business objective is misunderstood.

Learning objectives

By the end of this chapter, the learner should be able to:

  1. Select suitable aggregation levels and construct meaningful business measures.
  2. Segment customers, products, operations, or markets using defensible criteria.
  3. Calculate and interpret absolute and percentage variances.
  4. Distinguish trend, seasonality, noise, and structural change.
  5. Apply basic forecasting methods and quantify forecast uncertainty.
  6. Design what-if and sensitivity analyses for managerial decisions.
  7. Use cohort analysis to examine retention and customer value.
  8. Interpret basic predictive indicators without confusing association with causation.
  9. Evaluate analytical quality, governance, ethics, and limitations.

1. The analytical foundation: measures, dimensions, and grain

A BI model generally contains measures and dimensions. Measures are numerical values that can be aggregated, such as sales revenue, units, cost, hours, or orders. Dimensions describe the context of a measure, such as date, region, product, customer type, channel, or salesperson.

The grain of a dataset is the level represented by one row. For example, a transaction table may have one row per order line, whereas a monthly performance table may have one row per product and month. The grain must be known before analysis begins. Adding order-line revenue is appropriate when each line contains a distinct amount; averaging a customer-level measure after joining it to order lines may count some customers repeatedly.

A measure may be:

  • Additive: safely summed across all relevant dimensions, such as units sold.
  • Semi-additive: summed across some dimensions but not across time, such as account balance.
  • Non-additive: not meaningfully summed, such as conversion rate or percentage margin.

For a set of values x₁, x₂, …, xₙ, the arithmetic mean is:

x̄ = (1/n) ∑ᵢ₌₁ⁿ xᵢ

Here, x̄ is the mean, xᵢ is observation i, and n is the number of observations. The mean is appropriate when each observation should receive equal weight. For business ratios, a weighted or ratio-of-totals measure is often more appropriate. For example, overall conversion rate should normally be calculated as total conversions divided by total eligible visitors, not as the simple average of daily conversion rates.

Conversion rate = Total conversions ÷ Total eligible visitors × 100%

The denominator must match the definition of eligibility. Mixing unique visitors with visits, or orders with customers, creates an invalid measure.

Aggregation hierarchy

Aggregation should follow the decision question. A chief financial officer may need total quarterly contribution margin; a branch manager may need daily sales by store; a campaign manager may need customer-level response. Drill-down and roll-up are useful only when the underlying data supports consistent aggregation.

A useful analytical specification states:

ElementExample
MeasureNet sales revenue
GrainOrder line
Time periodCalendar month
DimensionsRegion, product category, channel
FilterCompleted orders only
CalculationPrice × quantity − discount − returns
Decision useBudget monitoring and product planning

2. Segmentation: finding meaningful differences

Segmentation divides a population into groups that are internally more similar, or operationally more useful, than the population as a whole. Common bases include geography, customer type, product category, behaviour, profitability, risk, and lifecycle stage.

A good segmentation has four properties:

  1. Relevance: segments relate to a decision or action.
  2. Distinctiveness: groups differ in a meaningful way.
  3. Stability: classifications do not change arbitrarily from minor data noise.
  4. Actionability: the organisation can serve or manage groups differently.

A simple rule-based segmentation may classify customers by recency, frequency, and monetary value. For customer i, recency can be the number of days since the last purchase, frequency the number of purchases in a defined period, and monetary value the net value of those purchases. Thresholds must be documented and periodically reviewed.

More advanced segmentation may use clustering. A clustering algorithm groups observations according to a distance measure, but the resulting clusters are not automatically business segments. Analysts must test their stability, interpretability, size, and commercial usefulness. Standardising variables is often necessary when variables use different units; otherwise, a high-scale variable can dominate distance calculations.

Segmentation also creates risks. A segment based on a protected characteristic may produce discriminatory decisions. A proxy variable, such as postcode, may indirectly encode race or socioeconomic status. Segments should therefore be tested for disparate impact, documented, and restricted to legitimate purposes.

3. Variance analysis

Variance analysis compares an actual result with a reference value, such as a budget, target, prior period, or benchmark. It is a diagnostic method rather than an explanation by itself.

Absolute variance = Actual − Reference
Percentage variance = (Actual − Reference) ÷ Reference × 100%

These formulas assume that the reference is non-zero and that the sign convention has been clearly defined. If the reference is zero, percentage variance is undefined; use the absolute difference or an alternative base. For costs, a positive variance may be unfavourable, while for revenue it may be favourable. Reports should label the business meaning rather than relying only on positive and negative signs.

Worked example: budget variance

A department budgeted revenue of £240,000 and achieved £252,000.

Absolute variance = £252,000 − £240,000 = £12,000 favourable.

Percentage variance = £12,000 ÷ £240,000 × 100% = 5% favourable.

Suppose operating cost was budgeted at £100,000 and actual cost was £108,000. The cost variance is £8,000 adverse, or 8% adverse. Revenue and cost variances should not be combined without considering profit impact.

Variance analysis becomes more informative when decomposed. A sales variance may be separated into volume and price effects. For a single product, with actual quantity Qₐ, budget quantity Qᵦ, actual price Pₐ, and budget price Pᵦ:

Total sales variance = QₐPₐ − QᵦPᵦ

A common decomposition is:

Volume variance = (Qₐ − Qᵦ)Pᵦ
Price variance = (Pₐ − Pᵦ)Qₐ

The two components sum to the total variance because:

(Qₐ − Qᵦ)Pᵦ + (Pₐ − Pᵦ)Qₐ does not generally equal QₐPₐ − QᵦPᵦ unless a consistent convention is used. Therefore, analysts must use a reconciled bridge. One valid convention is:

Price variance = (Pₐ − Pᵦ)Qᵦ
Volume variance = (Qₐ − Qᵦ)Pₐ

These sum exactly to total variance. Other conventions allocate the interaction term differently. The convention must be stated, especially in financial reporting.

4. Trend analysis and time-series structure

Trend analysis examines how a measure changes over time. A time series can contain:

  • Level: the typical magnitude of the series.
  • Trend: persistent upward or downward movement.
  • Seasonality: a repeated pattern linked to calendar or operational cycles.
  • Cyclical movement: longer fluctuations associated with economic or industry conditions.
  • Irregular noise: unpredictable short-term variation.
  • Structural breaks: changes caused by events such as pricing, regulation, system migration, or a pandemic.

Year-over-year growth compares a value with the corresponding prior-year value:

Growth rate = (Yₜ − Yₜ₋ₖ) ÷ Yₜ₋ₖ × 100%

Yₜ is the current value, Yₜ₋ₖ is the value k periods earlier, and k is commonly 12 for monthly annual comparison. This measure is inappropriate when the prior value is zero or when definitions changed between periods.

A moving average smooths short-term noise. For a window of m observations:

MAₜ = (Yₜ + Yₜ₋₁ + … + Yₜ₋ₘ₊₁) ÷ m

It is useful for visualising underlying direction, but it lags turning points and should not be treated as a causal model. Seasonal comparisons should use comparable periods, and sudden changes should be investigated rather than mechanically smoothed away.

5. Forecasting and uncertainty

Forecasting estimates future outcomes using historical data, business assumptions, or both. A forecast is not a guaranteed target. The method should match the data frequency, forecast horizon, stability of relationships, and decision cost of error.

Naïve and moving-average forecasts

A naïve forecast uses the latest observed value:

Fₜ₊₁ = Yₜ

This is often a strong benchmark for short, stable series. A moving-average forecast uses recent observations:

Fₜ₊₁ = (Yₜ + Yₜ₋₁ + … + Yₜ₋ₘ₊₁) ÷ m

For example, if weekly demand over the last three weeks is 120, 135, and 129 units, the three-week moving-average forecast is (120 + 135 + 129) ÷ 3 = 128 units. This forecast assumes recent observations are representative and that no major structural change is expected.

Exponential smoothing gives greater weight to recent data:

Fₜ₊₁ = αYₜ + (1 − α)Fₜ

where 0 < α ≤ 1 is the smoothing parameter. A larger α responds more quickly to changes but may follow noise; a smaller α is smoother but slower to respond. Initialisation of Fₜ must be specified.

Measuring forecast error

For actual value Yₜ and forecast Fₜ, forecast error is:

eₜ = Yₜ − Fₜ

Mean absolute error is:

MAE = (1/n) ∑ₜ₌₁ⁿ |eₜ|

MAE is expressed in the original unit and is easy to interpret. Mean absolute percentage error is:

MAPE = (100%/n) ∑ₜ₌₁ⁿ |(Yₜ − Fₜ) ÷ Yₜ|

MAPE requires non-zero actual values and can be unstable when actual values are close to zero. It should not be used uncritically for intermittent demand. Error metrics should be calculated on a holdout period or through time-aware validation, not only on the data used to fit the model.

Forecast uncertainty should be communicated through prediction intervals, ranges, or scenario bands. A point forecast of 10,000 units may be operationally misleading if plausible outcomes range from 8,500 to 11,800. The interval must reflect model error and, where appropriate, uncertainty in future inputs.

6. What-if and sensitivity analysis

What-if analysis changes one or more input assumptions and observes the resulting output. It is particularly useful when managers can influence inputs such as price, staffing, conversion, churn, capacity, or marketing spend.

A simple profit model is:

Profit = Revenue − Variable cost − Fixed cost

If units sold are q, price per unit is p, variable cost per unit is v, and fixed cost is f:

Profit = q(p − v) − f

The break-even quantity, assuming constant unit price and cost and positive contribution margin, is:

Break-even quantity = f ÷ (p − v)

Example: if p = £50, v = £30, and f = £100,000, break-even quantity is £100,000 ÷ £20 = 5,000 units. This is a planning model, not a guarantee; price responses, capacity constraints, taxes, and step-fixed costs may invalidate the assumptions.

Sensitivity analysis changes one input at a time to identify influential assumptions. Scenario analysis changes a coherent set of assumptions, such as a recession scenario with lower demand, lower price, and delayed receivables. A decision model should distinguish controllable inputs from uncertain external variables and record the source of every assumption.

7. Cohort analysis

A cohort is a group sharing a defining start event or characteristic, such as customers acquired in the same month, employees hired in the same quarter, or accounts opened during a campaign. Cohort analysis prevents calendar-period totals from hiding lifecycle behaviour.

For a customer cohort, retention at period t can be defined as:

Retention rate at t = Active customers from cohort at t ÷ Initial customers in cohort × 100%

The definition of “active” must be explicit: a purchase, login, subscription payment, or another event. Cohort revenue may be analysed cumulatively or by period. A retention table often displays acquisition cohorts as rows and elapsed periods as columns.

Cohort analysis supports questions such as: Are newer customers retaining better? Did a product change improve month-three retention? Which acquisition channel produces high-value customers rather than merely many customers? It does not by itself prove that a campaign caused improved retention, because cohorts may differ in market conditions, customer mix, or promotional incentives.

8. Basic predictive indicators

A predictive indicator is a variable that provides information about a future outcome. Examples include repeat visits before renewal, unresolved service tickets before churn, pipeline coverage before sales achievement, and delivery delays before customer complaints.

A practical indicator should have:

  • a clearly defined outcome and prediction horizon;
  • a measurement timestamp that prevents future information leaking into the past;
  • a baseline and threshold;
  • evidence of stability across time and relevant groups;
  • an operational response when the threshold is reached.

Correlation is not causation. A high association may arise from confounding, reverse causality, selection bias, or shared time trends. Analysts should use experiments, quasi-experimental designs, or controlled operational tests when causal claims are required.

Classification performance can be summarised using a confusion matrix. For a binary outcome, true positives are correctly identified positive cases, false positives are cases incorrectly flagged, true negatives are correctly identified negative cases, and false negatives are missed positive cases.

Precision = TP ÷ (TP + FP)
Recall = TP ÷ (TP + FN)

Precision answers “Of those flagged, how many were truly positive?” Recall answers “Of the truly positive cases, how many were found?” The appropriate balance depends on intervention cost. For example, missing a serious fraud case may be more costly than investigating a false alert.

9. Integrated case: illustrative retail planning application

Background

The following is an illustrative case. Meridian Home, an online retailer, has falling repeat-purchase rates despite stable quarterly revenue. Management wants to decide whether to alter acquisition spending, customer service staffing, and promotional policy.

Problem

A total-revenue dashboard shows little change, but it does not reveal whether revenue is being maintained by new customers while existing customers leave. The analysis team must identify the source of change and produce a plan with measurable uncertainty.

Analysis

First, the team verifies the data grain: one row per completed order line. Returns are removed from net sales, and customer identifiers are deduplicated. Revenue is aggregated by month, channel, product category, and customer cohort. The team calculates repeat-purchase rate using customers with a completed first order as the denominator.

Segmentation reveals that customers acquired through a discount-heavy channel have high first-order volume but lower month-three retention. Cohort analysis confirms that the decline is concentrated in cohorts acquired after a shipping-fee change. A variance bridge shows that total revenue is £40,000 above budget, but average order value is £6 below budget and order volume is higher than planned. This indicates that revenue growth is volume-led rather than price-led.

A three-month moving average provides a short-term demand baseline. A naïve forecast and moving-average forecast are compared on a historical holdout period using MAE. The moving average performs slightly better during stable demand, but neither method captures a planned promotional event; that event is represented as a separate scenario rather than hidden in the baseline forecast.

The team constructs three scenarios:

ScenarioMonth-three retentionAverage order valueService cost
Baseline24%£46£180,000
Service improvement28%£46£205,000
Discount expansion21%£42£190,000

The service-improvement scenario has a higher cost but may create more retained customers. The discount-expansion scenario increases acquisition assumptions but reduces order value and retention. Management should compare expected contribution, capacity, and risk rather than selecting the scenario with the largest sales forecast.

Approach and solution

Meridian pilots improved delivery communication and proactive service recovery for a randomly selected eligible customer group, while a comparable control group receives the existing service. The primary outcome is repeat purchase within 90 days; secondary outcomes include contribution margin and complaint rate. The pilot is monitored by acquisition channel and customer type to detect unequal effects.

The BI dashboard is redesigned to show:

  • acquisition cohort retention;
  • net revenue and contribution margin by segment;
  • actual versus budget variance with drivers;
  • forecast range rather than only a point estimate;
  • service indicators leading the repeat-purchase outcome;
  • data-quality exceptions and definition changes.

Outcome and learning points

The case demonstrates why a stable top-line measure can conceal deteriorating customer economics. Aggregation identified the scale of the issue, segmentation located the affected group, variance analysis explained the revenue composition, cohort analysis revealed lifecycle decline, forecasting supported capacity planning, and scenario analysis made assumptions visible. The pilot prevents the organisation from treating correlation as proof that service changes cause retention.

10. Governance, ethics, and implementation practice

Analytical BI requires governance as well as calculations. Important controls include a data dictionary, metric owners, lineage from source to dashboard, version-controlled transformations, access controls, and documented refresh schedules. Analysts should reconcile critical dashboard measures with authoritative financial or operational systems.

Privacy principles require purpose limitation, data minimisation, appropriate retention, secure access, and lawful processing. Personal data should not be used for a new predictive purpose merely because it is available. Sensitive attributes require heightened controls, and automated decisions may require explanation, human review, impact assessment, and appeal mechanisms under applicable law.

Common analytical failures include denominator changes, survivorship bias, leakage of future information, double counting after joins, inappropriate averages, untested seasonality, and confusing a forecast with a target. A robust workflow is:

  1. Define the decision and outcome.
  2. Confirm grain, population, time window, and exclusions.
  3. Profile missing values, duplicates, outliers, and definition changes.
  4. Establish a simple baseline.
  5. Analyse by relevant dimensions and cohorts.
  6. Test assumptions and alternative specifications.
  7. Quantify error or uncertainty.
  8. Translate findings into an operational action and owner.
  9. Monitor results after implementation.

Contemporary BI increasingly combines semantic layers, automated data-quality monitoring, self-service analytics, and machine-learning assistance. Generative AI can help draft queries or explanations, but outputs require validation because models may invent definitions, mishandle filters, or expose confidential data. Human accountability remains essential.

Chapter Summary

Analytical methods transform BI from reporting into decision support. Aggregation provides controlled summaries, but correct grain and denominator definitions are essential. Segmentation reveals meaningful heterogeneity only when groups are relevant, stable, and actionable. Variance analysis compares actual performance with a reference and should be decomposed into interpretable drivers. Trend analysis distinguishes direction from seasonality, cycles, noise, and structural breaks.

Forecasting methods such as naïve forecasting, moving averages, and exponential smoothing provide estimates whose accuracy must be evaluated on appropriate validation periods. MAE and related metrics quantify error, while ranges and scenarios communicate uncertainty. What-if analysis makes assumptions and managerial levers explicit. Cohort analysis reveals lifecycle behaviour that calendar totals can conceal. Predictive indicators can support early intervention, but precision, recall, data leakage, fairness, and causal interpretation must be considered.

Effective BI analysis combines quantitative discipline, business context, governance, ethical judgement, and post-decision monitoring. The aim is not merely to produce a number, but to produce a trustworthy insight connected to an accountable action.

Key Terms

Aggregation: Combining observations into a higher-level summary.

Cohort: A group sharing a common starting event or characteristic.

Confusion matrix: A table of actual and predicted binary classifications.

Dimension: A descriptive field used to filter, group, or analyse measures.

Forecast: An estimate of a future value based on information and assumptions.

Forecast error: The difference between an actual value and its forecast.

Grain: The level of detail represented by one record.

MAE: Mean absolute error, an average magnitude of forecast errors in original units.

Measure: A numerical business value that can be analysed or aggregated.

Moving average: An average calculated over a rolling window of observations.

Naïve forecast: A forecast using the latest observed value as the next prediction.

Precision: The proportion of predicted positives that are actually positive.

Recall: The proportion of actual positives that are correctly identified.

Segmentation: Dividing a population into meaningful groups.

Sensitivity analysis: Testing output changes when an input changes.

Seasonality: A recurring pattern associated with a calendar or operating cycle.

Structural break: A persistent change in the data-generating process.

Variance: The difference between an actual result and a reference value.

What-if analysis: Examining outcomes under alternative assumptions.

Review Questions

Short Answer Questions

  1. Why must the grain of a dataset be established before aggregation?
  2. Distinguish additive, semi-additive, and non-additive measures.
  3. What is the difference between a trend and seasonality?
  4. Why can MAPE be problematic when actual values are near zero?
  5. Define a cohort and give one business example.

Long Answer Questions

  1. Explain how segmentation can improve managerial decision-making, and discuss the conditions that make a segmentation actionable.
  2. Describe a complete variance-analysis process, including the use of driver decomposition and appropriate sign conventions.
  3. Compare naïve forecasting, moving-average forecasting, and exponential smoothing in terms of assumptions and responsiveness.
  4. Explain how governance and privacy requirements affect the design of BI analytical models.
  5. Discuss why a stable total-revenue measure may conceal deteriorating customer performance.

Analytical / Application Questions

  1. A business budgeted sales of £500,000 but achieved £465,000. Calculate the absolute and percentage variances and explain how the result should be communicated.
  2. Weekly demand for the last three weeks was 240, 260, and 250 units. Calculate the three-week moving-average forecast for the next week and state one limitation of the method.
  3. A company has fixed costs of £120,000, a selling price of £80, and variable cost of £50 per unit. Calculate break-even quantity and explain one assumption that could make the result unrealistic.

Multiple Choice Questions with Answers

Question 1

Which measure is normally non-additive across time?

A. Units sold

B. Order-line revenue

C. Account balance

D. Delivery quantity

Correct Answer: C. Account balance

Question 2

A business has actual revenue of £252,000 and budgeted revenue of £240,000. What is the percentage variance?

A. 3% favourable

B. 5% favourable

C. 5% adverse

D. 12% favourable

Correct Answer: B. 5% favourable

Question 3

Which method uses the latest observed value as the next forecast?

A. Naïve forecasting

B. Cohort analysis

C. Cluster analysis

D. Variance decomposition

Correct Answer: A. Naïve forecasting

Question 4

What is the main purpose of cohort analysis?

A. To remove all seasonal effects

B. To compare groups sharing a common starting event over elapsed time

C. To guarantee causal conclusions

D. To replace data governance

Correct Answer: B. To compare groups sharing a common starting event over elapsed time

Question 5

If fixed cost is £100,000, price is £50, and variable cost is £30, what is break-even quantity?

A. 2,000 units

B. 3,333 units

C. 5,000 units

D. 8,000 units

Correct Answer: C. 5,000 units

Question 6

Which statement about a moving average is correct?

A. It always predicts turning points immediately

B. It smooths observations but may lag changes

C. It proves that one variable causes another

D. It can be calculated only from annual data

Correct Answer: B. It smooths observations but may lag changes

Question 7

Precision answers which question?

A. How many actual positives were found?

B. What percentage of flagged cases were truly positive?

C. What percentage of all cases were negative?

D. How large was the forecast error in units?

Correct Answer: B. What percentage of flagged cases were truly positive?

Question 8

A prior-period reference value of zero makes percentage variance:

A. Always equal to 0%

B. Always equal to 100%

C. Undefined using the standard formula

D. Equal to the absolute variance

Correct Answer: C. Undefined using the standard formula

Question 9

Which is the strongest reason to document the grain of a BI dataset?

A. It determines the dashboard colour scheme

B. It prevents inappropriate aggregation and double counting

C. It guarantees forecast accuracy

D. It eliminates missing data

Correct Answer: B. It prevents inappropriate aggregation and double counting

Question 10

Why should a predictive indicator be evaluated across time and relevant groups?

A. To ensure it is stable and does not conceal unequal performance

B. To make every segment identical

C. To avoid defining the prediction outcome

D. To ensure correlation proves causation

Correct Answer: A. To ensure it is stable and does not conceal unequal performance

Data Visualization & Business Intelligence
Chapter 9 of 14