Research Methodology

Chapter 9
Quantitative Data Analysis and Hypothesis Testing

Bachelors Program in Business Analytics
Research Methodology   •   Bachelor

Quantitative Data Analysis and Hypothesis Testing

Introduction

Quantitative data analysis converts observations into evidence that can support, challenge, or refine research claims. In business analytics, this process may involve describing customer behaviour, estimating market demand, evaluating an intervention, predicting sales, or testing whether an observed difference is likely to reflect a broader population pattern rather than sampling fluctuation.

Sound analysis is more than producing a p-value. It requires a defensible research question, appropriate measurement, careful data preparation, suitable statistical assumptions, transparent reporting, and interpretation in managerial context. Statistical significance indicates whether data are inconsistent with a specified null model; it does not by itself establish practical importance, causality, or business value.

Learning Objectives

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

  1. Prepare, screen, and explore quantitative data.
  2. Select and interpret descriptive statistics and visualisations.
  3. Construct and interpret confidence intervals.
  4. Formulate and conduct significance tests.
  5. Interpret correlation and regression models.
  6. Recognise assumptions and diagnose violations.
  7. Explain selected multivariate methods.
  8. Report effect sizes, uncertainty, and managerial significance responsibly.

1. From Research Question to Statistical Analysis

A research question should identify a population, variables, and a relationship or comparison. For example: “Does a personalised email campaign increase average order value among online customers?” The outcome is average order value, the explanatory condition is campaign exposure, and the target population is eligible customers.

A useful analytical sequence is:

  1. Define the unit of analysis and population.
  2. Operationalise constructs as measurable variables.
  3. Inspect data quality and missingness.
  4. Explore distributions and relationships.
  5. Choose a model consistent with the design and measurement scale.
  6. Check assumptions and sensitivity.
  7. Estimate effects with confidence intervals.
  8. Interpret statistical and managerial significance.

The unit of analysis must be clear. Analysing transactions when the intervention was assigned to customers can produce incorrect standard errors because observations from the same customer may not be independent.

Measurement and variable types

Nominal variables identify categories without order, such as region. Ordinal variables have ordered categories, such as satisfaction levels. Interval variables have meaningful differences but no genuine zero, while ratio variables have both meaningful differences and a meaningful zero, such as revenue or duration. Binary variables have two categories; counts record events; and continuous variables can take values across an interval.

Measurement type influences the choice of summary, graph, and model. A mean is often useful for approximately symmetric ratio-scale data, whereas a median is more robust for highly skewed data. Categorical outcomes require counts, proportions, or models such as logistic regression rather than ordinary least squares without suitable justification.

2. Preparing and Exploring Data

Data preparation is part of analysis, not a clerical prelude. Preserve an untouched raw file and maintain a reproducible transformation log. Check variable names, units, coding, duplicate records, impossible values, and date consistency. For example, a negative quantity sold may indicate a return, a data-entry error, or a legitimate adjustment; it should not be deleted automatically.

Missing data

Missingness may be completely at random, conditionally related to observed variables, or related to unobserved values. Report the amount and pattern of missingness. Complete-case analysis is simple but can reduce power and introduce bias. Single-value replacement, such as replacing all missing incomes with the mean, generally understates uncertainty. Multiple imputation or model-based approaches may be preferable when assumptions and implementation are defensible.

Descriptive statistics

For observations x₁, x₂, …, xₙ, the sample mean is:

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

Here x̄ is the sample mean, n is sample size, and xᵢ is observation i. The mean is appropriate when the arithmetic average is meaningful and extreme values do not dominate interpretation.

The sample variance and standard deviation are:

s² = [∑ᵢ₌₁ⁿ (xᵢ − x̄)²]/(n − 1), s = √s²

The n − 1 denominator provides the usual unbiased estimator of population variance under independent random sampling. The standard deviation is expressed in the same units as the observations; variance is in squared units.

The median is the middle ordered observation, and the interquartile range is:

IQR = Q₃ − Q₁

where Q₁ and Q₃ are the first and third quartiles. The IQR is less sensitive to extreme observations than the standard deviation.

For a binary variable coded 1 for success and 0 otherwise, the sample mean equals the sample proportion p̂. This provides a useful bridge between descriptive statistics and proportions.

Visual exploration

Histograms reveal shape, boxplots reveal spread and possible outliers, bar charts display categorical frequencies, and scatterplots reveal association, curvature, clusters, and unequal variance. A graph should include meaningful labels, units, and a clearly defined population or time period. Outliers should be investigated rather than mechanically removed.

3. Sampling Distributions and Confidence Intervals

A population parameter, such as μ, is fixed but usually unknown. A sample statistic, such as x̄, varies from sample to sample. The sampling distribution describes that variation. The standard error of the mean under independent observations is:

SE(x̄) = s/√n

The standard error measures sampling uncertainty, not the variability of individual observations. Larger samples generally reduce standard error at a rate proportional to 1/√n, assuming the sampling design and data quality remain suitable.

A two-sided confidence interval for a population mean, when population standard deviation is unknown, is:

x̄ ± t* × s/√n

where t* is the relevant critical value from the t distribution with n − 1 degrees of freedom. The interval is justified when observations are independent and the sampling distribution is approximately normal, either because the population is reasonably normal or because the sample is sufficiently large for the central limit theorem to be useful. Strong skewness, dependence, or a small sample may require robust or resampling methods.

A 95% confidence procedure means that, over repeated samples using the same method, approximately 95% of intervals would contain the fixed parameter. It does not strictly mean there is a 95% probability that one already-computed fixed parameter lies inside this particular interval.

Worked example: mean order value

Suppose n = 64 independent orders have x̄ = $52 and s = $16. The standard error is $16/√64 = $2. Using an approximate 95% critical value of 2.00, the interval is:

52 ± 2.00 × 2 = 52 ± 4 = [$48, $56]

The estimated population mean is therefore between $48 and $56 under the stated sampling assumptions. The interval does not imply that every order lies in this range.

For a proportion, a large-sample interval is often written p̂ ± z*√[p̂(1 − p̂)/n], but this approximation can be poor for small samples or proportions near 0 or 1. Wilson or exact methods may be preferable.

4. Hypothesis Testing

A hypothesis test compares data with a null hypothesis H₀. The alternative hypothesis H₁ expresses a difference, directional change, or association of interest. A test statistic measures how far the estimate is from the null value relative to its standard error.

For a one-sample mean test against μ₀:

t = (x̄ − μ₀)/(s/√n)

Under the standard assumptions, this statistic follows a t distribution with n − 1 degrees of freedom when H₀ is true. A two-sided test rejects at significance level α when the p-value is less than α, or equivalently when the statistic falls beyond the two critical tails.

The p-value is the probability, assuming H₀ and the model are true, of obtaining a result at least as extreme as the observed result. It is not the probability that H₀ is true, nor the probability that findings will replicate.

A Type I error rejects a true H₀; its long-run rate is controlled by α under the model. A Type II error fails to reject a false H₀. Statistical power is 1 − β, where β is the Type II error probability. Power depends on sample size, effect magnitude, variability, design, and α. A non-significant result may reflect a genuinely small effect or inadequate information.

One-sided and two-sided tests

A two-sided alternative detects departures in either direction and is generally appropriate when both directions matter. A one-sided test should be selected before observing results and only when effects in the opposite direction would not support the relevant decision. Changing the direction after seeing the data inflates false-positive risk.

Independent and paired comparisons

For two independent group means, the difference x̄₁ − x̄₂ is analysed using a standard error based on group variability. Welch’s t-test is often preferred because it does not assume equal population variances. For paired data, such as each employee’s performance before and after training, calculate within-pair differences dᵢ and test their mean:

t = (d̄ − d₀)/(sd/√n)

where d₀ is usually zero. Pairing is useful because stable individual differences are removed from the comparison.

5. Effect Size and Practical Significance

A p-value answers a compatibility question under H₀; an effect size describes magnitude. For two means, Cohen’s d is commonly defined as:

d = (x̄₁ − x̄₂)/sp

where sₚ is a pooled standard deviation when equal-variance reasoning is appropriate. For unequal variances, a standardised difference using a suitable reference standard deviation should be explained rather than presented mechanically.

For a correlation, r itself is an effect-size measure. For regression, R² is the proportion of sample variation in the outcome accounted for by the fitted predictors, although it is not a causal percentage and can increase when irrelevant predictors are added. Confidence intervals should accompany effect estimates whenever possible.

Managerial significance asks whether the estimated effect is large enough to justify action after considering cost, risk, implementation capacity, and uncertainty. A statistically significant $0.20 increase in margin may be strategically unimportant, while a non-significant estimated saving of $2 million may warrant further data collection if the study is underpowered.

6. Correlation and Regression

The Pearson correlation measures linear association between variables X and Y:

r = [∑(xᵢ − x̄)(yᵢ − ȳ)] / √[∑(xᵢ − x̄)² × ∑(yᵢ − ȳ)²]

It ranges from −1 to +1. The sign indicates direction and the magnitude indicates linear strength. Correlation is sensitive to outliers and does not establish causality. A strong correlation may arise from confounding, reverse causality, common trends, or chance.

Simple linear regression models the conditional mean of Y:

Yᵢ = β₀ + β₁Xᵢ + εᵢ

Yᵢ is the outcome, Xᵢ is the predictor, β₀ is the intercept, β₁ is the expected change in Y for a one-unit increase in X, and εᵢ is the error term. The fitted value is Ŷᵢ = b₀ + b₁Xᵢ. Ordinary least squares chooses coefficients that minimise the sum of squared residuals:

SSE = ∑ᵢ₌₁ⁿ (Yᵢ − Ŷᵢ)²

Multiple regression extends the model:

Yᵢ = β₀ + β₁X₁ᵢ + β₂X₂ᵢ + … + βₖXₖᵢ + εᵢ

Each slope is interpreted as the expected change in Y associated with a one-unit change in that predictor, holding the included predictors constant. “Holding constant” is a conditional statistical description, not proof of causality.

Key assumptions include linearity of the conditional mean, independent errors, constant error variance, and—mainly for small-sample tests and intervals—approximately normal errors. Multicollinearity makes individual coefficients unstable when predictors contain overlapping information. Variance inflation factors can help diagnose it, but no single cutoff is universally decisive. Residual-versus-fitted plots, Q–Q plots, leverage, and influence diagnostics should complement numerical checks.

Categorical predictors can be represented with indicator variables, omitting a reference category. Interactions test whether an effect differs by another variable:

Y = β₀ + β₁X + β₂Z + β₃XZ + ε

Here β₃ represents the change in the slope of X associated with a one-unit change in Z. Main effects must be interpreted in relation to the coding and centring of variables.

7. Selected Multivariate Methods

Analysis of variance (ANOVA) compares means across more than two groups. Its overall null hypothesis is that all population means are equal. The F statistic compares between-group variation with within-group variation:

F = MSbetween / MSwithin

A significant omnibus result indicates that at least one mean differs, not which groups differ. Planned contrasts or multiplicity-adjusted post-hoc comparisons are needed for detailed conclusions.

Principal component analysis (PCA) transforms correlated variables into uncorrelated components ordered by variance explained. It is mainly a dimension-reduction technique, not automatically a causal or latent-construct model. Components require substantive interpretation, and standardisation is important when variables use different scales.

Logistic regression is suitable for a binary outcome. It models the log odds:

log[p/(1 − p)] = β₀ + β₁X₁ + … + βₖXₖ

where p is the probability of the outcome. The quantity e^βⱼ is an odds ratio for a one-unit increase in Xⱼ, conditional on the other predictors. Odds ratios are not risk ratios and can appear large when the baseline outcome is common.

8. Assumptions, Robustness, and Reproducibility

Assumptions concern the data-generating process, not merely whether a histogram looks normal. Independence is usually determined by sampling and study design. Random sampling, random assignment, repeated observations, clustering, and time-series structure have different implications. Clustered observations often require cluster-robust standard errors, multilevel models, or aggregation at the assignment level.

When assumptions are doubtful, consider transformations, robust standard errors, bootstrap confidence intervals, permutation tests, non-parametric methods, or alternative models. These are not universal repairs: each has its own assumptions. Report the primary analysis, diagnostics, sensitivity analyses, and reasons for choices.

Avoid p-hacking, optional stopping, selective exclusion, and testing many outcomes while reporting only favourable results. Pre-specification, transparent code, versioned data processing, and reporting all measured primary outcomes improve credibility. Statistical software automates calculations but cannot decide whether a variable is valid, a design supports causality, or an effect is useful.

9. Applied Case: Evaluating a Personalised Email Campaign

The following is an illustrative case.

Background and problem

An online retailer tests whether personalised email recommendations increase order value. Customers are randomly assigned to either a personalised-email group or a standard-email group. The business wants evidence for both statistical and managerial decisions.

Analysis approach

The analyst first verifies that assignment is at the customer level, removes duplicate customer records according to a pre-specified rule, records campaign non-delivery, and summarises order values by group. Because order values are right-skewed, medians and IQRs are reported alongside means. The primary comparison is an intention-to-treat difference in mean order value, estimated with a confidence interval. A sensitivity analysis examines log-transformed values and a robust interval.

Suppose the personalised group has 400 customers, mean order value $58, and standard deviation $30; the standard group has 400 customers, mean $54, and standard deviation $28. The estimated difference is $4. A rough standard error for the independent difference is:

SE ≈ √[(30²/400) + (28²/400)] = √(2.25 + 1.96) ≈ 2.05

An approximate 95% interval is $4 ± 1.97 × $2.05, or about [$−0.04, $8.04]. The evidence is compatible with almost no effect and with an increase of approximately $8 per order. A test at the 5% level would be borderline and should not be described as definitive.

The analyst then evaluates incremental gross margin, campaign cost, delivery rate, and possible customer fatigue. If the intervention costs $0.30 per customer and the margin rate is 30%, the estimated incremental margin per eligible customer is approximately $4 × 0.30 − $0.30 = $0.90, but the uncertainty around the $4 estimate must be propagated into the financial decision. The result may justify a cautious pilot expansion with monitoring rather than an unconditional rollout.

Outcome and learning points

The appropriate conclusion is not simply “the campaign worked” or “it failed.” The estimated effect is positive, but uncertainty includes a near-zero effect. Decision-makers should consider the value of additional experimentation, operational capacity, subgroup consistency, and downside risk. Random assignment supports a causal interpretation of the intention-to-treat comparison, provided implementation and analysis remain faithful to the design; observational regression would not provide the same protection against confounding.

10. Ethical, Governance, and Contemporary Issues

Quantitative analysis affects people through pricing, credit, recruitment, service access, and performance evaluation. Analysts should minimise data collection, protect confidential information, document lawful and ethical use, and assess whether variables act as proxies for protected characteristics. Fairness analysis should examine relevant subgroup performance, error rates, and consequences, while recognising that fairness criteria can conflict.

AI-assisted analytics can accelerate coding, feature generation, and model comparison, but generated code and interpretations require independent verification. Automated systems may reproduce historical bias, leak confidential data, or encourage unsupported causal claims. Maintain human accountability, audit trails, access controls, and clear disclosure of analytical limitations.

Contemporary practice increasingly emphasises reproducible workflows, preregistration where feasible, open methods, uncertainty communication, causal inference designs, and model monitoring after deployment. Large datasets do not remove sampling bias, measurement error, confounding, or the need for theory.

Best-Practice Checklist

  • Link every analysis to a clearly stated research question.
  • Preserve raw data and document every transformation.
  • Examine missingness, outliers, distributions, and dependence.
  • Report estimates, confidence intervals, sample sizes, and effect sizes.
  • Use tests whose assumptions match the design and measurement scale.
  • Distinguish association from causation.
  • Adjust for multiple comparisons when relevant.
  • Conduct sensitivity and robustness analyses.
  • Interpret effects against costs, risks, and managerial thresholds.
  • Protect privacy and disclose limitations.

Chapter Summary

Quantitative data analysis begins with a defensible question, valid measurement, and careful data preparation. Descriptive statistics and visualisations reveal centre, spread, shape, and unusual observations. Sampling distributions support confidence intervals, which quantify estimation uncertainty. Hypothesis tests compare evidence with a null model, but p-values do not measure effect importance or the probability that a hypothesis is true. Correlation describes linear association, while regression estimates conditional relationships under explicit assumptions. ANOVA, PCA, and logistic regression extend analysis to multiple groups, dimensions, and binary outcomes. Reliable practice requires diagnosing dependence, nonlinearity, heteroscedasticity, missingness, and influential observations. Finally, business decisions should combine statistical evidence with effect size, uncertainty, cost, risk, ethics, and managerial significance.

Key Terms

Population parameter: A fixed numerical characteristic of a population.

Sample statistic: A numerical characteristic calculated from sample data.

Standard deviation: A measure of dispersion in the original units of a variable.

Standard error: The estimated sampling variability of a statistic.

Confidence interval: An interval produced by a procedure designed to cover a population parameter at a stated long-run rate.

Null hypothesis: A formal statement used as the reference model in a significance test.

Alternative hypothesis: A statement describing the departure or effect of interest.

p-value: The probability, under the null model, of data at least as extreme as those observed.

Type I error: Rejecting a true null hypothesis.

Type II error: Failing to reject a false null hypothesis.

Statistical power: The probability of detecting a specified effect under a specified design and model.

Effect size: A quantitative description of the magnitude of an effect or association.

Correlation: A standardised measure of linear association between two variables.

Regression: A model for the conditional mean or probability of an outcome given predictors.

Residual: The difference between an observed and fitted outcome.

Multicollinearity: Strong overlap among predictors in a regression model.

ANOVA: A method comparing group means through a ratio of between-group to within-group variation.

Principal component analysis: A dimension-reduction method based on linear combinations of variables.

Managerial significance: The practical importance of a result for a decision, considering value, cost, risk, and uncertainty.

Review Questions

5 Short Answer Questions

  1. Distinguish a standard deviation from a standard error.
  2. What does a 95% confidence interval mean in repeated sampling?
  3. Why does statistical significance not necessarily imply managerial significance?
  4. State two important assumptions of ordinary least squares regression.
  5. Why is correlation insufficient evidence of causation?

5 Long Answer Questions

  1. Explain how a researcher should move from a business question to a defensible hypothesis test.
  2. Compare independent-samples and paired-samples analyses, including when each is appropriate.
  3. Discuss the interpretation and limitations of p-values, confidence intervals, and effect sizes.
  4. Explain how missing data, outliers, and dependence can affect quantitative conclusions.
  5. Describe the purpose and interpretation of ANOVA, PCA, and logistic regression.

3 Analytical / Application Questions

  1. A retailer reports a statistically significant increase in clicks but no increase in profit. Explain how you would assess whether the intervention is managerially valuable.
  2. A regression model has a high R² but unstable coefficients after several correlated predictors are added. Diagnose the problem and propose appropriate responses.
  3. Design an analysis for a before-and-after employee training study in which employees belong to several departments. Identify the outcome, comparison, assumptions, possible clustering issue, effect measure, and reporting strategy.

Multiple Choice Questions with Answers

Question 1

Which quantity measures the estimated sampling variability of a sample mean?

A. Population mean

B. Standard error

C. Interquartile range

D. Residual

Correct Answer: B. Standard error

Question 2

A p-value is best described as the probability of obtaining results at least as extreme as those observed, assuming:

A. The alternative hypothesis is true

B. The sample mean equals the population mean

C. The null model is true

D. The result is managerially important

Correct Answer: C. The null model is true

Question 3

In the illustrative email case, the estimated difference in mean order value was:

A. $0.90

B. $2.05

C. $4

D. $8.04

Correct Answer: C. $4

Question 4

Which analysis is generally appropriate for measurements taken from the same employees before and after training?

A. Paired-samples analysis

B. Independent analysis treating all observations as unrelated

C. PCA only

D. A test of a population proportion only

Correct Answer: A. Paired-samples analysis

Question 5

What does the slope β₁ in a simple regression represent?

A. The residual standard deviation

B. The expected change in Y for a one-unit increase in X

C. The probability that the null hypothesis is true

D. The total number of observations

Correct Answer: B. The expected change in Y for a one-unit increase in X

Question 6

A statistically significant ANOVA F test establishes that:

A. Every group mean differs from every other group mean

B. At least one population mean differs

C. The largest group has the largest mean

D. All observations are normally distributed

Correct Answer: B. At least one population mean differs

Question 7

Which issue is especially associated with highly overlapping regression predictors?

A. Multicollinearity

B. Random assignment

C. Perfect normality

D. Unit consistency

Correct Answer: A. Multicollinearity

Question 8

If an estimated effect is statistically significant but too small to cover implementation costs, it is best described as:

A. Statistically significant but potentially not managerially significant

B. Causally impossible

C. A Type II error by definition

D. Proof that the model is invalid

Correct Answer: A. Statistically significant but potentially not managerially significant

Question 9

For a binary outcome, logistic regression commonly models:

A. The raw median

B. The log odds

C. The interquartile range

D. The sample variance only

Correct Answer: B. The log odds

Question 10

Why should an analyst investigate rather than automatically delete an outlier?

A. All outliers are correct

B. An outlier may represent an error, a valid rare case, or a meaningful process feature

C. Deleting outliers always increases bias

D. Outliers cannot affect regression

Correct Answer: B. An outlier may represent an error, a valid rare case, or a meaningful process feature

Research Methodology
Chapter 9 of 15