Navigating the vast sea of statistical analysis can be one of the most daunting phases of your undergraduate research journey. As Step 7 in the Undergraduate Dissertation Roadmap, this guide is designed not as an exhaustive textbook on every statistical test ever invented, but as a strategic framework. By understanding the core principles of descriptive and inferential statistics, identifying your variables correctly, and systematically checking assumptions, you can approach your data with confidence and clarity.
1. The Foundation: Descriptive vs. Inferential Statistics
Before jumping into complex modeling, you must understand the two primary branches of statistical analysis. They serve different but complementary purposes in your research.
Descriptive Statistics
Descriptive statistics do exactly what their name implies: they describe and summarize your sample data. They do not allow you to make conclusions beyond the data you have collected. Key measures include:
- Measures of Central Tendency: Mean (average), Median (middle value), and Mode (most frequent value). These tell you where the center of your data lies.
- Measures of Dispersion (or Variability): Range, Variance, Standard Deviation, and Interquartile Range (IQR). These tell you how spread out your data is. A small standard deviation indicates that data points are clustered closely around the mean, while a large standard deviation indicates a wider spread.
- Frequencies and Percentages: Useful for categorical data to show the distribution of different groups within your sample.
Inferential Statistics
Inferential statistics allow you to make inferences, predictions, or generalizations about a larger population based on your sample data. Because you are estimating, inferential statistics inherently involve uncertainty and probability. This is where hypothesis testing, p-values, and confidence intervals come into play. Common inferential tests include t-tests, ANOVA, regression analysis, and Chi-square tests.
2. Knowing Your Data: Variables and Measurement Levels
The type of statistical test you choose is heavily dependent on the nature of your variables. Misclassifying your variables is a common mistake that leads to incorrect analytical choices.
Independent vs. Dependent Variables
- Independent Variable (IV): The variable you manipulate or categorize. It is presumed to be the cause.
- Dependent Variable (DV): The variable you measure. It is presumed to be the effect, dependent on the IV.
Levels of Measurement
Variables can also be classified by their level of measurement:
- Nominal: Categorical data without any inherent order (e.g., eye color, gender, research methodology type).
- Ordinal: Categorical data with a meaningful order or ranking, but the intervals between categories are not necessarily equal (e.g., Likert scales: strongly disagree to strongly agree).
- Interval: Numerical data where the intervals between values are equal, but there is no true zero point (e.g., temperature in Celsius). You can add and subtract, but not meaningfully multiply or divide.
- Ratio: Numerical data with equal intervals and a true, meaningful zero point (e.g., height, weight, income, age).
Note: In many statistical software packages (like SPSS or R), interval and ratio data are often grouped together as "Scale" or "Continuous" variables.
3. Framing the Inquiry: Hypotheses
Statistical tests are designed to evaluate competing claims about a population. These claims are formulated as hypotheses.
- Null Hypothesis (H0): The default assumption that there is no effect, no difference, or no relationship between variables in the population. It is the hypothesis that you are attempting to test against.
- Alternative Hypothesis (H1 or HA): The claim you are testing for; it suggests that there is a statistically significant effect, difference, or relationship.
In frequentist statistics, you do not "prove" the alternative hypothesis. Instead, you assess whether the data provides sufficient evidence to reject the null hypothesis. This is a subtle but vital distinction in academic writing.
4. The Decision Tree: Choosing an Appropriate Test
Selecting the right test doesn't require memorizing a textbook. Instead, ask yourself three fundamental questions about your research design:
- What is your research goal? Are you looking for differences between groups, relationships/associations between variables, or predicting an outcome?
- What type of data do you have? (Nominal, ordinal, or continuous?)
- How many groups or variables are you analyzing? Are samples independent or paired?
Testing for Differences
- Two Independent Groups (Continuous DV): Independent Samples t-test (e.g., comparing test scores between Group A and Group B).
- Two Related Groups (Continuous DV): Paired Samples t-test (e.g., comparing pre-test and post-test scores of the same group).
- Three or More Independent Groups (Continuous DV): One-Way ANOVA (e.g., comparing productivity levels across three different departments).
Testing for Relationships
- Two Continuous Variables: Pearson Correlation (tests for a linear relationship).
- Two Ordinal Variables (or non-normal continuous): Spearman's Rank Correlation.
- Two Categorical Variables: Chi-Square Test of Independence (e.g., relationship between gender and voting preference).
Predicting Outcomes
- Predicting a Continuous DV from one or more IVs: Linear Regression (or Multiple Linear Regression).
- Predicting a Binary Categorical DV: Logistic Regression (e.g., predicting whether a customer will churn: yes/no based on usage metrics).
5. The Crucial Step: Checking Assumptions
Statistical tests are mathematical models, and like all models, they are built on underlying assumptions about the data. If your data violates these assumptions, the results of your test may be invalid, leading to incorrect conclusions. This is a common area where undergraduate researchers lose marks.
Common Assumptions
- Normality: The assumption that the data is normally distributed (forms a bell curve). Checked visually using Q-Q plots or histograms, and statistically using tests like Shapiro-Wilk. However, remember that normality tests are sensitive to sample size. In large samples, even trivial deviations from normality might be statistically significant. Always use visual inspection alongside statistical tests.
- Homogeneity of Variance (Homoscedasticity): The assumption that the variance within each group is approximately equal. Evaluated using Levene’s Test. If this assumption is violated in a t-test, you might use a Welch t-test instead.
- Independence of Observations: The assumption that one data point does not influence another. This is usually ensured through proper research design and random sampling, rather than a statistical test.
If parametric assumptions (like normality) are grossly violated and cannot be resolved via data transformation, you should pivot to non-parametric tests. For instance, replacing an Independent t-test with a Mann-Whitney U test, or an ANOVA with a Kruskal-Wallis test. Non-parametric tests do not assume a normal distribution, as they generally analyze the ranks of the data rather than the raw values.
6. Interpretation: Beyond the P-Value
The p-value is perhaps the most misunderstood metric in statistical analysis. A p-value is the probability of observing data at least as extreme as yours, assuming the null hypothesis is completely true.
- p < 0.05: Conventionally indicates strong evidence against the null hypothesis, so you reject the null hypothesis. The result is considered "statistically significant."
- p > 0.05: Indicates weak evidence against the null hypothesis, so you fail to reject it.
CRITICAL WARNING: A p-value does NOT tell you the probability that the null hypothesis is true. Furthermore, statistical significance does not equal practical significance. With a massive sample size, even a microscopic and meaningless difference between groups can yield a p < 0.05.
Effect Size and Confidence Intervals
Because p-values are heavily influenced by sample size, you must also report the effect size. The effect size quantifies the magnitude of the difference or the strength of the relationship. Common effect size metrics include Cohen's d (for differences between means), Pearson's r (for correlation), and Eta-squared (for ANOVA).
Additionally, reporting Confidence Intervals (CIs) is highly recommended. A 95% CI provides a range of values within which you can be 95% confident the true population parameter lies. CIs provide much more information than a simple p-value, offering both an estimate of the effect and a measure of its precision.
7. Analyzing Data in Practice: A Python Example
To illustrate how this framework translates into practice, let's look at conducting an independent samples t-test using Python's scipy and statsmodels libraries. Imagine we are testing if there is a significant difference in exam scores between students who attended a revision seminar (Group A) and those who did not (Group B).
import pandas as pd
import scipy.stats as stats
import pingouin as pg # Great library for effect sizes
# 1. Load Data (Simulated for this example)
data = pd.DataFrame({
'Group': ['Seminar'] * 30 + ['No_Seminar'] * 30,
'Score': [85, 88, 92, 78, 89, 95...] + [75, 78, 70, 82, 79, 71...] # Truncated for brevity
})
seminar_scores = data[data['Group'] == 'Seminar']['Score']
no_seminar_scores = data[data['Group'] == 'No_Seminar']['Score']
# 2. Check Assumptions
# A. Normality (Shapiro-Wilk test)
stat_s, p_s = stats.shapiro(seminar_scores)
stat_ns, p_ns = stats.shapiro(no_seminar_scores)
print(f"Normality p-values: Seminar={p_s:.3f}, No Seminar={p_ns:.3f}")
# If p > 0.05, assume normal
# B. Homogeneity of Variance (Levene's Test)
stat_l, p_l = stats.levene(seminar_scores, no_seminar_scores)
print(f"Levene's p-value: {p_l:.3f}")
# If p > 0.05, variances are equal. If p < 0.05, we must use Welch's t-test (equal_var=False)
# 3. Conduct the T-Test (assuming equal variance for this example)
t_stat, p_val = stats.ttest_ind(seminar_scores, no_seminar_scores, equal_var=True)
print(f"T-statistic: {t_stat:.3f}, P-value: {p_val:.3f}")
# 4. Calculate Effect Size (Cohen's d)
cohens_d = pg.compute_effsize(seminar_scores, no_seminar_scores, eftype='cohen')
print(f"Cohen's d: {cohens_d:.3f}")
This workflow—checking assumptions, running the appropriate test based on those checks, and calculating effect sizes—represents a robust analytical approach suitable for an undergraduate dissertation.
8. Reporting Your Results
When writing your results chapter, clarity and adherence to standard formatting (such as APA style) are paramount. Avoid dumping raw output from SPSS or Python into your document. Instead, craft a narrative that guides the reader through your findings.
- Start with descriptives: Provide the means and standard deviations for your groups before jumping into inferential tests.
- State the test and assumptions: Briefly mention the test used and whether assumptions were met. (e.g., "An independent samples t-test was conducted to compare exam scores... Assumptions of normality and homogeneity of variance were met.")
- Report the statistics formally: Include the test statistic, degrees of freedom, p-value, and effect size. (e.g., t(58) = 3.45, p = .001, d = 0.89).
- Provide a plain English interpretation: Translate the numbers back into the context of your research question. (e.g., "Students who attended the seminar scored significantly higher than those who did not, representing a large effect size.")
Frequently Asked Questions
What happens if my data fails the normality assumption?
If your data is significantly non-normal, you have a few options. First, check for outliers that might be skewing the distribution. Second, you can attempt to transform the data (e.g., log transformation). If that fails, or if you prefer a simpler approach, you should use the non-parametric equivalent of your intended test (e.g., Mann-Whitney U instead of an Independent t-test). Non-parametric tests do not require the assumption of normality.
Is it bad if my results are not statistically significant (p > 0.05)?
Not at all. In research, finding no significant difference or relationship is still a finding. It is crucial to report non-significant results accurately. "Failing to reject the null hypothesis" adds value to the scientific literature by showing what interventions or relationships may not exist, preventing future researchers from repeating the same dead-ends. Never manipulate your data or run endless tests just to achieve a p < 0.05 (a practice known as p-hacking).
Why do I need to report effect size if I already have a significant p-value?
Because p-values are confounded by sample size. A study with 10,000 participants might find a highly significant p-value for a difference in test scores between two groups, but the actual difference might only be 0.1 points on a 100-point scale. The p-value says the difference is "real" (not due to chance), but the effect size tells you if the difference is "meaningful" or "large enough to care about."
Need Expert Help with Your Data Analysis?
Statistical analysis can be overwhelming, especially when grappling with assumption violations or complex modeling. At Cee Writing, our team of academic data specialists can help you select the right tests, interpret your outputs, and write up your results flawlessly.
Get Data Analysis Support