The Complete Guide to Statistics: Every Type, from Descriptive to Advanced Analysis

Mohamed Aldeoshey

Many researchers and graduate students struggle with statistics, not because it is hard, but because nobody laid it out in order. This guide puts every type of statistics in one place, from simple means to regression and multivariate analysis, in plain language with documented references. A link to the statistics calculator sits in the middle and at the end so you can apply what you read to your own data.

Statistics Calculator

Try the calculator: enter your data and get the right test and the result in clear steps.

Open the Statistics Calculator

What statistics is and why we need it

Statistics is the science of collecting, organizing, summarizing and analyzing data, then drawing conclusions while measuring how uncertain those conclusions are. In psychology, medicine and education it is not enough to say a treatment “helped” or a group did “better”. We need to know how big the difference was, whether it is larger than chance alone would produce, and whether it can be generalized beyond the people studied.

Textbooks split the field into two large branches. Descriptive statistics summarizes the data in hand with numbers and charts (mean, standard deviation, frequency table). Inferential statistics uses a sample to judge a larger population and answers questions such as: is the difference between groups real, is there a relationship between two variables? Today we add multivariate methods, nonparametric methods and Bayesian statistics.

Part 1: Types of data and levels of measurement

Before any test, ask what type of data you have, because the choice of method depends on it. Stevens (1946) classified measurement into four levels:

  • Nominal: categories with no order, such as sex, blood group or diagnosis.
  • Ordinal: ordered categories with unknown distances between them, such as symptom severity (mild, moderate, severe) or education level.
  • Interval: equal distances without a true zero, such as temperature in Celsius and scores on many psychological scales.
  • Ratio: equal distances with a true zero, such as age, weight and reaction time.

Variables are also categorical (nominal and ordinal) or quantitative (interval and ratio), and discrete (number of attacks) or continuous (height). Keep the independent variable (what we expect to have an effect) apart from the dependent variable (the outcome we measure), and watch for mediating, moderating and confounding variables that can blur the picture.

Part 2: Descriptive statistics

Measures of central tendency

The mean is the sum of the values divided by their number. It is the most precise summary for symmetric data but is pulled by extreme values. The median is the middle value after sorting and is not affected by outliers, so it is preferred for income or length of hospital stay. The mode is the most frequent value and the only suitable measure for nominal data. A large gap between mean and median signals a skewed distribution.

Measures of spread

The mean alone is not enough: two groups can both average 50, one ranging from 48 to 52 and the other from 10 to 90. So we report the range, the interquartile range (third quartile minus first, suited to the median), the variance (mean of squared deviations, divided by n-1 in a sample) and the standard deviation (square root of the variance, in the original units). The standard error of the mean (SD divided by the square root of n) describes how precisely the mean is estimated, not how much individuals vary, and reports often confuse the two.

Shape of the distribution

Skewness describes asymmetry (a long tail to the right or left) and kurtosis describes peak sharpness and tail weight. Check shape with a histogram, box plot and Q-Q plot, and with tests such as Shapiro-Wilk, with care: in large samples trivial departures become “significant”, and in small samples the test sees nothing. Combine the plot and the test.

Tables and charts

Categorical variables go in frequency tables with percentages and bar or pie charts. Quantitative variables go in histograms, box plots and stem-and-leaf plots. The relationship between two quantitative variables goes in a scatter plot. A good chart reveals outliers and data-entry errors before they ruin the analysis.

Part 3: Probability and distributions

Probability is a number from zero to one describing how likely an event is. The probability of two independent events both happening is the product of their probabilities, and the probability of either is the sum minus the overlap. Conditional probability is the probability of an event given another, and Bayes’ rule, used to interpret medical tests, builds on it: a positive result from a highly sensitive test can mislead when the disease is rare in the population.

The normal distribution, the symmetric bell curve, is described by its mean and standard deviation. About 68% of values lie within one SD of the mean, about 95% within 1.96 SD and about 99.7% within three. The z-score converts any value into the number of SDs from the mean, which lets you compare scores from different scales. Other distributions include the binomial (successes in a fixed number of trials), the Poisson (rare events in a period), and the t, chi-square and F distributions that underlie hypothesis tests.

The central limit theorem says that means of large samples approach a normal distribution even if the raw data are not normal. This is why many tests assume normality and why they tolerate some departure in large samples.

Part 4: Sampling and study design

No test can rescue a biased sample. A simple random sample gives every person an equal chance, a stratified sample guarantees representation of groups (sex, age), a cluster sample picks whole groups (classes, clinics), and a systematic sample takes every kth person. A convenience sample is the most common in psychology, and its weakness is that it does not allow confident generalization. Sample size is calculated before the study, not after, from the expected effect size, the significance level and the power you want.

Design decides what you can conclude. A randomized controlled trial is the strongest design for causal inference. Correlational, cross-sectional, cohort and case-control studies reveal relationships but cannot establish causation alone. The familiar rule stands: correlation does not imply causation.

Part 5: Estimation and confidence intervals

A value computed from a sample (mean, proportion) is a point estimate of the true population value. A 95% confidence interval gives a plausible range for it. The correct reading: if we repeated the study many times the same way, 95% of the computed intervals would contain the true value. It does not mean there is a 95% probability that the true value lies in this particular interval. A confidence interval is more useful than a p-value alone because it shows size and precision together: a narrow interval means a precise estimate, a wide one means the sample is too small.

Part 6: Hypothesis testing

The idea: start from the null hypothesis (no difference, no relationship) and ask, if it were true, how probable is a result at least this extreme? That probability is the p-value. If it is below the significance level set in advance (alpha, usually 0.05) we reject the null. The p-value has limits you must know:

  • It is not the probability that the null hypothesis is true.
  • It does not measure effect size or practical importance; in large samples a tiny difference becomes “significant”.
  • 0.05 is a convention, not a law of nature, and the American Statistical Association has warned against relying on it alone (Wasserstein & Lazar, 2016).

A Type I error is rejecting a true null (a false alarm), with probability alpha. A Type II error is failing to reject a false null, with probability beta, and power is 1-beta, usually targeted at 80% or more. Saying a difference is significant is not enough; report an effect size: Cohen’s d for differences between means (about 0.2 small, 0.5 medium, 0.8 large, rough guides from Cohen, 1988, not strict cutoffs), r for correlation, eta squared for explained variance, and the odds ratio for binary outcomes. When one study runs many tests the chance of a false alarm grows, so use corrections such as Bonferroni or Holm.

Part 7: The most used parametric tests

The t-test

Three forms: the one-sample t-test compares a sample mean with a known value; the independent-samples t-test compares the means of two different groups (for example treatment and control), preferably the Welch version, which does not assume equal variances; the paired t-test compares before and after measurements of the same people. Assumptions: independent observations, roughly normal scores or differences, and similar spread unless Welch is used.

Analysis of variance (ANOVA)

ANOVA compares three or more means at once. Why not run several t-tests? Because that inflates the Type I error. The F-test compares between-group variance with within-group variance. If it is significant we run post hoc comparisons (Tukey or Bonferroni) to see which groups differ. Variants include one-way (one factor), two-way (two factors with their interaction), repeated measures (the same people over time), ANCOVA (adjusting for a covariate) and MANOVA (more than one dependent variable). Check homogeneity of variance (Levene) and sphericity in repeated measures.

Correlation

Pearson’s r measures the strength of a linear relationship between two quantitative variables from -1 to +1. Spearman’s rho measures a rank relationship and suits ordinal or non-normal data. Correlation does not prove causation, is sensitive to outliers and restricted range, and misses curved relationships, so always draw the scatter plot. r squared is read as the proportion of shared variance.

Regression

Simple linear regression predicts a quantitative outcome from one predictor, and multiple regression from several, adjusting each for the others. It gives regression coefficients and R squared (proportion of variance explained), and assumes a linear relationship, independent errors, equal error variance and roughly normal errors, with care about multicollinearity among predictors. Logistic regression is used when the outcome is binary (recovered or not) and gives odds ratios. Others include Poisson regression for counts, ordinal regression, and hierarchical regression to test the added value of blocks of predictors.

Part 8: Tests for categorical data

The chi-square test of independence examines the relationship between two nominal variables in a cross-tabulation (for example sex and diagnosis). Expected counts in cells should be at least about 5, otherwise use Fisher’s exact test. The chi-square goodness-of-fit test compares an observed distribution with an expected one. McNemar’s test is for paired binary data (before and after). Effect size is phi, Cramer’s V or the odds ratio.

Part 9: Nonparametric tests

Use them when data violate the assumptions of parametric tests: a small sample with a skewed distribution, ordinal data, or outliers. Each parametric test has a nonparametric counterpart: Mann-Whitney U for the independent t-test, Wilcoxon signed-rank for the paired t-test, Kruskal-Wallis for one-way ANOVA, Friedman for repeated-measures ANOVA, and Spearman for Pearson. They are slightly less powerful when the assumptions hold and safer when they do not. Modern options include permutation tests and the bootstrap for confidence intervals without a distributional assumption.

Part 10: Psychometrics, reliability and validity

In psychology statistics is only as good as the instrument. Reliability is the consistency of scores: Cronbach’s alpha for internal consistency (0.70 or higher is usually considered acceptable, with higher standards for individual decisions), test-retest reliability, and inter-rater reliability with Cohen’s kappa. Validity means the instrument measures what it claims: content, criterion and construct validity. Construct validity is often examined with exploratory and confirmatory factor analysis. Do all this before interpreting a scale on a new sample, especially translated scales whose properties must be checked in their own setting.

Part 11: Advanced methods in brief

  • Multivariate statistics: factor analysis, principal components, discriminant analysis, cluster analysis.
  • Structural equation and path modeling: test complex models of observed and latent variables, mediation and moderation.
  • Multilevel models: when data are nested (students within classes, patients within clinics).
  • Survival analysis: time to an event such as relapse, with Kaplan-Meier curves and Cox regression.
  • Time series: data ordered in time, such as hospital admission rates.
  • Meta-analysis: pools results of many studies into one effect size estimate and is the basis of systematic reviews.
  • Bayesian statistics: combines prior knowledge with data and gives the probability of the hypothesis itself instead of a p-value.

Statistics Calculator

Try the calculator: enter your data and get the right test and the result in clear steps.

Open the Statistics Calculator

How to choose the right test

Question Data type Parametric test Nonparametric alternative
Compare two independent groups Quantitative Independent t-test (Welch) Mann-Whitney U
Before and after, same people Quantitative Paired t-test Wilcoxon signed-rank
Three or more groups Quantitative One-way ANOVA Kruskal-Wallis
Repeated measures (3 or more) Quantitative Repeated-measures ANOVA Friedman
Relationship between two variables Quantitative Pearson correlation Spearman
Predict a quantitative outcome Quantitative Linear regression –
Predict a binary outcome Binary Logistic regression –
Relationship between two categorical variables Nominal Chi-square Fisher’s exact

Common mistakes that spoil research

  • Choosing the test after seeing the results, or trying tests until a small p appears (p-hacking).
  • Reading “not significant” as “no difference”; the sample may be small and power low.
  • Confusing statistical significance with practical importance and ignoring effect size.
  • Ignoring test assumptions and not checking outliers.
  • Reading correlation as causation.
  • Splitting a quantitative variable into two groups (above and below the mean), which throws away information.
  • Ignoring multiple comparisons.
  • Reporting only p without means, SDs, confidence intervals, effect size and sample size.

How to report results

The APA convention: give the test, degrees of freedom, statistic, p-value, effect size and confidence interval, for example: t(48) = 2.31, p = .025, d = 0.65, 95% CI [0.08, 1.22]. Use suitable precision (usually two decimals) and state which assumptions were checked and which alternative test was used if any.

References

  1. Field, A. (2018). Discovering Statistics Using IBM SPSS Statistics (5th ed.). SAGE.
  2. Gravetter, F. J., & Wallnau, L. B. (2017). Statistics for the Behavioral Sciences (10th ed.). Cengage.
  3. Cohen, J. (1988). Statistical Power Analysis for the Behavioral Sciences (2nd ed.). Lawrence Erlbaum.
  4. Tabachnick, B. G., & Fidell, L. S. (2019). Using Multivariate Statistics (7th ed.). Pearson.
  5. Agresti, A. (2018). Statistical Methods for the Social Sciences (5th ed.). Pearson.
  6. Stevens, S. S. (1946). On the theory of scales of measurement. Science, 103(2684), 677-680.
  7. Wasserstein, R. L., & Lazar, N. A. (2016). The ASA statement on p-values: context, process, and purpose. The American Statistician, 70(2), 129-133.
  8. Cronbach, L. J. (1951). Coefficient alpha and the internal structure of tests. Psychometrika, 16(3), 297-334.
  9. American Psychological Association (2020). Publication Manual of the American Psychological Association (7th ed.).

Statistics is a skill built by practice. Start from your research question, identify your data type, pick the test from the table above, and check its assumptions before trusting the result. If you need someone to review the analysis with you or train you on it, contact us on WhatsApp. This is general educational information and does not replace a statistician for published research.

Statistics Calculator

Try the calculator: enter your data and get the right test and the result in clear steps.

Open the Statistics Calculator

كلم العيادة