Statistics & Data Analytics

Statistical Analysis: Descriptive and Inferential Statistics and Choosing the Right Test

Most statistics problems become simpler once you know what kind of data you have and what question you are asking. This guide builds that foundation and gives you a practical way to choose and interpret the right test.

  • Undergraduate · Masters · PhD
  • 6 min read
  • Practice questions
  • 2 learning resources

Types of data

Level Description Example Typical summaries
Nominal Categories without order Study mode, country Counts, percentages, mode
Ordinal Ordered categories Satisfaction (low/medium/high) Median, percentiles
Interval Equal intervals, no true zero Temperature in °C Mean, SD
Ratio Equal intervals and a true zero Age, income, reaction time Mean, SD, ratios

Interval and ratio are often grouped as "scale" or "continuous" data.

Descriptive statistics

  • Centre: mean (sensitive to outliers), median (robust), mode.
  • Spread: standard deviation, interquartile range, range.
  • Shape: skewness, outliers; always look at a histogram or box plot.

Inferential statistics

You rarely study a whole population, so you use a sample to estimate population values and test hypotheses.

  • Null hypothesis (H₀): no effect or no difference.
  • p-value: the probability of results at least as extreme as yours if H₀ were true. A small p (conventionally < .05) is evidence against H₀.
  • Confidence interval: a range of plausible values for the population parameter.
  • Effect size: how large the effect is (Cohen’s d, r, η², odds ratio). Significance depends on sample size; effect size tells you whether it matters.
  • Type I error: a false positive; Type II error: a false negative. Power is the probability of detecting a real effect.

Choosing a test

Question Outcome Groups / predictors Parametric test Non-parametric alternative
Difference between 2 independent groups Scale 2 groups Independent t-test Mann–Whitney U
Difference within the same people (2 times) Scale Paired Paired t-test Wilcoxon signed-rank
Difference among 3+ independent groups Scale 3+ groups One-way ANOVA Kruskal–Wallis
Association between categories Nominal Nominal Chi-square test Fisher’s exact (small counts)
Relationship between two variables Scale Scale Pearson’s r Spearman’s rho
Predicting a continuous outcome Scale Several predictors Linear regression –
Predicting a yes/no outcome Binary Several predictors Logistic regression –

Parametric tests assume, among other things, approximately normal distributions (or large samples) and similar variances across groups.

Worked example

A fictional study comparing three teaching formats (lecture, flipped, blended) on exam scores, 30 students each.

  1. Question: do mean scores differ across formats? Scale outcome, three independent groups → one-way ANOVA.
  2. Descriptives: lecture M = 64, flipped M = 71, blended M = 69.
  3. Assumptions: histograms look roughly normal; Levene’s test non-significant.
  4. Result: F(2, 87) = 5.12, p = .008, η² = .11 (a medium effect).
  5. Post hoc (Tukey): flipped > lecture (p = .006); other differences not significant.
  6. Interpretation: the flipped format was associated with higher scores than lectures. Because students were not randomly assigned, other differences between groups might contribute.

Common mistakes

  • "p = .06, so there is no effect." Absence of evidence is not evidence of absence; look at the effect size and interval.
  • Running many tests without adjusting for multiple comparisons.
  • Using means for heavily skewed data without comment.
  • Treating Likert items as continuous without justification.
  • Ignoring paired structure (using an independent test on before-and-after data).

Explore learning resources

Worked examples, worksheets and checklists to use alongside this guide. They are learning tools, not answers to an assessment: adapt them to your own task and your institution’s requirements.

Decision guideChoosing the right test in four questionsWork through these in order.
  1. What is my question? Difference, relationship or prediction?
  2. What type is my outcome variable? Nominal, ordinal or scale?
  3. How many groups or predictors, and are observations independent or paired?
  4. Are parametric assumptions reasonable? If not, choose the non-parametric alternative.

Then check the table in the guide and confirm with your course materials.

Worked examplesReporting results in APA styleModel sentences to adapt.
  • t-test: "Part-time students (M = 3.3, SD = 0.8) reported lower engagement than full-time students (M = 3.6, SD = 0.7), t(118) = 2.17, p = .032, d = 0.40."
  • Correlation: "Support and engagement were positively correlated, r(118) = .46, p < .001."
  • Chi-square: "Study mode was associated with completion, χ²(1, N = 240) = 6.4, p = .011, φ = .16."
  • ANOVA: "Scores differed across formats, F(2, 87) = 5.12, p = .008, η² = .11."

Watch the topic explained

Video lesson · about 9 minutes · in production

Choosing the Right Statistical Test

An original lesson that teaches statistics with diagrams and a worked example, with captions and a transcript. These are the chapters it will cover; each links to the matching part of this guide.

  1. 01Types of data
  2. 02Describing data well
  3. 03Hypotheses, p-values and effect sizes
  4. 04A test-selection flowchart
  5. 05Worked ANOVA example
Get notified on YouTube

Check your understanding

4 short questions. Choose an answer for each, then check. Every answer comes with an explanation.

1. Which test compares the means of two independent groups?
Show the answer

Answer: Independent t-test. The independent t-test compares two separate groups.

2. A p-value of .03 means…
Show the answer

Answer: If H₀ were true, results this extreme would occur about 3% of the time. p-values describe data under the null hypothesis, not the probability the hypothesis is true.

3. Before-and-after scores for the same students, skewed data. Which test?
Show the answer

Answer: Wilcoxon signed-rank. Paired, non-normal data suit the Wilcoxon signed-rank test.

4. Why report effect sizes?
Show the answer

Answer: They show how large and meaningful an effect is. Effect sizes show magnitude, which p-values do not.

A learning activity to check your own understanding. It is not an assessment and nothing is recorded.

Take your learning further

Learn statistics with a specialist Academic Expert

Sometimes a concept needs more than a written explanation. A live 1:1 session with an Academic Expert who works in statistics lets you ask your own questions, work through examples at your pace and get feedback on your own thinking.

What you can work on together

  • Identify your variable types and research question
  • Choose appropriate tests and check assumptions
  • Understand p-values, confidence intervals and effect sizes
  • Interpret output from SPSS, R, STATA or Excel
  • Report results clearly in APA style
  • Get feedback on your own results section

How sessions help

  • Make sense of your brief and marking criteria, so you know exactly what is being asked.
  • Ask the questions you would not ask in a big class, as often as you need.
  • Get timely, specific feedback on work you have written yourself.
  • Practise explaining your reasoning out loud, ready for vivas, presentations and practicals.
  • Extra support with academic English and conventions if English is not your first language.

Teach → coach → review. Experts explain, demonstrate and give feedback. You stay the author of your work and make the decisions in it.

Frequently asked questions

Can I use a t-test on Likert scale data?

For single Likert items, non-parametric tests are often preferred. For scale scores built from several items, parametric tests are commonly used if assumptions are reasonable. Justify your choice.

What sample size do I need?

It depends on the test, expected effect size and power. Use a power analysis (for example with G*Power) before collecting data.

Our academic integrity commitment

UniLearno supports learning, understanding and independent academic development. Our Academic Experts explain concepts, demonstrate methods, guide research and give feedback on work you have created. We do not complete assessed work, fabricate data or references, or produce anything for you to submit. You remain responsible for your own ideas, analysis, conclusions and final submission, and for following your institution’s academic integrity and AI-use rules.

Why a shortcut costs more than it saves
  • It is more visible than it looks. Markers notice when work does not match what they know of you; document history, reference lists and follow-up conversations about your work are all used to check authorship.
  • It creates a lasting risk. Services that sell completed assignments have threatened students afterwards, demanding money not to tell their university.
  • The gap does not go away. Later units, supervised exams, vivas, placements and the job itself all assume you have the skill.
  • Help that teaches is the safer route. Understanding the brief, getting feedback early and practising with an expert closes the gap for good.

Read our full integrity and responsible AI approach →

Sources and about this guide

  1. Field, A. (2024). Discovering statistics using IBM SPSS Statistics (6th ed.). SAGE.
  2. Wasserstein, R. L., & Lazar, N. A. (2016). The ASA statement on p-values: Context, process, and purpose. The American Statistician, 70(2), 129–133.
  3. Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Erlbaum.
Written by
UniLearno Learning Team
Last reviewed
Found an error?
Tell us and we will check and correct it.

What do you want to develop next?

  1. Tell us what you're working on.
  2. Find the right expertise.
  3. Start learning.
Find my academic expert