BIOLOGY FOR LIFE
  • IB Bio Syllabus
    • Unity and Diversity (A) >
      • A1 molecules >
        • A1.1: Water
        • A1.2: Nucleic Acids
      • A2 Cells >
        • A2.1: Origins of Cells
        • A2.2: Cell Structure
        • A2.3: Viruses
      • A3 Organisms >
        • A3.1: Diversity of Organisms
        • A3.2: Classification and Cladistics
      • A4 Ecosystems >
        • A4.1: Evolution and Speciation
        • A4.2: Conservation of Biodiversity
    • Form and Function (B) >
      • B1 Molecules >
        • B1.1: Carbohydrates and Lipids
        • B1.2: Proteins
      • B2 Cells >
        • B2.1 Membranes and Membrane Transport
        • B2.2 Organelles and Compartmentalization
        • B2.3 Cell Specialization
      • B3 Organisms >
        • B3.1 Gas Exchange
        • B3.2 Transport
        • B3.3 Muscle and Motility
      • B4 Ecosystems >
        • B4.1 Adaptation to Environment
        • B4.2 Ecological Niches
    • Interaction and Interdependence (C) >
      • C1 Molecules >
        • C1.1: Enzymes and Metabolism
        • C1.2: Cell Respiration
        • C1.3: Photosynthesis
      • C2 Cells >
        • C2.1: Chemical Signaling
        • C2.2: Neural Signaling
      • C3 Organisms >
        • C3.1: Integration of Body Systems
        • C3.2: Defense Against Disease
      • C4 Ecosystems >
        • C4.1 Populations and Communities
        • C4.2 Transfers of Energy and Matter
    • Continuity and Change (D) >
      • D1 Molecules >
        • D1.1: DNA Replication
        • D1.2: Protein Synthesis
        • D1.3: Mutation and Gene Editing
      • D2 Cells >
        • D2.1: Cell and Nuclear Division
        • D2.2: Gene Expression
        • D2.3: Water Potential
      • D3 Organisms >
        • D3.1: Reproduction
        • D3.2: Inheritance
        • D3.3: Homeostasis
      • D4 Ecosystems >
        • D4.1: Natural Selection
        • D4.2: Stability and Change
        • D4.3: Climate Change
  • IB Requirements
    • Internal Assessment >
      • Research Design
      • Analysis
      • Conclusion
      • Evaluation
    • External Assessment >
      • Exam Revision
    • Extended Essay
    • Reflective Project
    • Collaborative Sciences Project
    • Learner Profile
  • Skills for Biology
    • Tools >
      • Experimental Techniques >
        • Addressing Safety
        • Measuring Variables >
          • Measurement Uncertainties
          • Observations
          • Biological Drawings
        • Applying Techniques >
          • Microscopy
      • Technology >
        • Tech to Collect Data
        • Tech to Process Data
      • Mathematics >
        • General Math
        • Units and Symbols
        • Processing Uncertainties
        • Graphing >
          • Types of Graphs
          • How to Graph
          • Graph Error Bars
    • Inquiry Processes >
      • Exploring >
        • Research Questions
        • Hypotheses and Predictions
      • Designing >
        • Variables
        • Sampling
      • Control of Variables
      • Collecting Data >
        • Data Tables
      • Processing Data
      • Interpreting Results
      • Concluding
      • Evaluating >
        • Error Analysis
  • Statistics
    • Descriptive Statistics >
      • Skew and the Normal Distribution
      • Outliers
      • Measures of Central Tendancy
      • Measures of Dispersion
      • Correlation Coefficients
      • Coefficient of Determination
    • Inferential Statistics >
      • Standard Error
      • T-Test
      • ANOVA
      • Kruskal-Wallis
      • X2 Test of Independence
      • X2 Goodness of Fit
    • Glossary of Statistic Terms and Equations
  • SHS Course Info
    • Above & Beyond >
      • Biology Club
      • Pumpkin Carving
      • Scavenger Hunt
      • Science News
      • Wood Duck Project (legacy)
      • Invasive Crayfish Project (legacy)
    • Assessment >
      • Class Grading IB Bio I
      • Class Grading IB Bio II
      • Daily Quizzes (legacy)
      • Lab Practicals (legacy)
    • Class Photos
    • Recommendations
  • Contact
    • About >
      • Philosophy
      • Resume
      • Reflection
      • Favorite Quotes
      • AEF Blog
  • Expeditions
    • Bahamas (2009)
    • Trinidad (2010)
    • Trinidad (2011)
    • Ecuador (2012)
    • Trinidad (2013)
    • Peru (2014)
    • Bahamas (2015)
    • Peru (2016)
    • Costa Rica (2017)
    • Costa Rica (2018)
    • Arizona (2022)
    • Florida (2023)
    • Belize (2024)
    • Costa Rica (2025)
  • Summer Ecology Research
  • Teacher Resources

Kruskal-Wallis

The Kruskal-Wallis test is an inferential statistic that compares three or more independent groups.  The test is particularly valuable when dealing with small sample sizes, skewed distributions, or when you're working with ranked data.  In biological research, it is not uncommon to encounter situations where the data is not normally distributed, has unequal variances between groups, or consists of ordinal (ranked) data rather than continuous measurements; in these conditions the Kruskal-Wallis test is appropriate.

The Kruskal-Wallis test operates by ranking all observations
from smallest to largest across all groups, then comparing the sum of ranks between groups. Instead of comparing means like ANOVA, it compares the median ranks of each group. ​
Null Hypothesis:
"There is not a significant difference in the medians between the groups; any observed differences may be due to chance and sampling error."

For example:  
  • There is no significant difference between the number of birds at the different locations; the differences we see in the means of the groups may be due to chance and sampling error.
Alternative Hypothesis:
"There is a significant difference in the medians between the groups; the observed differences are most likely not due to chance or sampling error."

For example:  
  • There is a significant difference between the number of birds at the different locations; the difference we see in the means of the groups is mostly likely not due to chance or sampling error.
Kruskal-Wallis calculators  will return a p-value.   A p-value of less than 0.05 means that the null hypothesis is rejected (that there is a significant difference among your groups). However, you do not know which group or groups are causing this to be true. If there is at least one significant difference among the groups, then the p-value will be <0.05.

When the Kruskal-Wallis test yields a significant result, post-hoc testing becomes essential to identify which specific groups differ from one another. Dunn's test is the most commonly used post-hoc in association with the Kruskal-Wallis test. Without post-hoc testing, you would know that differences exist somewhere among your groups but wouldn't be able to pinpoint exactly where those differences occur. The Post-hoc test compares each group to each other group to see if there is a significant difference between then.  A p-value will be provided for each possible pairwise comparison between experimental groups.
I give many of my IB Biology resources away, for the benefit of students and teachers around the world. 
If you've found the materials helpful, please consider sending a gift from our classroom wish list.


​Did I forget something?  Know of a mistake? Have a suggestion?  Let me know by emailing me here.

Before using any of the files available on this site,
​please familiarize yourself with the 
Creative Commons Attribution License. 
​​​It prohibits the use of any material on this site for commercial  purposes of any kind.  ​
​
Picture
  • IB Bio Syllabus
    • Unity and Diversity (A) >
      • A1 molecules >
        • A1.1: Water
        • A1.2: Nucleic Acids
      • A2 Cells >
        • A2.1: Origins of Cells
        • A2.2: Cell Structure
        • A2.3: Viruses
      • A3 Organisms >
        • A3.1: Diversity of Organisms
        • A3.2: Classification and Cladistics
      • A4 Ecosystems >
        • A4.1: Evolution and Speciation
        • A4.2: Conservation of Biodiversity
    • Form and Function (B) >
      • B1 Molecules >
        • B1.1: Carbohydrates and Lipids
        • B1.2: Proteins
      • B2 Cells >
        • B2.1 Membranes and Membrane Transport
        • B2.2 Organelles and Compartmentalization
        • B2.3 Cell Specialization
      • B3 Organisms >
        • B3.1 Gas Exchange
        • B3.2 Transport
        • B3.3 Muscle and Motility
      • B4 Ecosystems >
        • B4.1 Adaptation to Environment
        • B4.2 Ecological Niches
    • Interaction and Interdependence (C) >
      • C1 Molecules >
        • C1.1: Enzymes and Metabolism
        • C1.2: Cell Respiration
        • C1.3: Photosynthesis
      • C2 Cells >
        • C2.1: Chemical Signaling
        • C2.2: Neural Signaling
      • C3 Organisms >
        • C3.1: Integration of Body Systems
        • C3.2: Defense Against Disease
      • C4 Ecosystems >
        • C4.1 Populations and Communities
        • C4.2 Transfers of Energy and Matter
    • Continuity and Change (D) >
      • D1 Molecules >
        • D1.1: DNA Replication
        • D1.2: Protein Synthesis
        • D1.3: Mutation and Gene Editing
      • D2 Cells >
        • D2.1: Cell and Nuclear Division
        • D2.2: Gene Expression
        • D2.3: Water Potential
      • D3 Organisms >
        • D3.1: Reproduction
        • D3.2: Inheritance
        • D3.3: Homeostasis
      • D4 Ecosystems >
        • D4.1: Natural Selection
        • D4.2: Stability and Change
        • D4.3: Climate Change
  • IB Requirements
    • Internal Assessment >
      • Research Design
      • Analysis
      • Conclusion
      • Evaluation
    • External Assessment >
      • Exam Revision
    • Extended Essay
    • Reflective Project
    • Collaborative Sciences Project
    • Learner Profile
  • Skills for Biology
    • Tools >
      • Experimental Techniques >
        • Addressing Safety
        • Measuring Variables >
          • Measurement Uncertainties
          • Observations
          • Biological Drawings
        • Applying Techniques >
          • Microscopy
      • Technology >
        • Tech to Collect Data
        • Tech to Process Data
      • Mathematics >
        • General Math
        • Units and Symbols
        • Processing Uncertainties
        • Graphing >
          • Types of Graphs
          • How to Graph
          • Graph Error Bars
    • Inquiry Processes >
      • Exploring >
        • Research Questions
        • Hypotheses and Predictions
      • Designing >
        • Variables
        • Sampling
      • Control of Variables
      • Collecting Data >
        • Data Tables
      • Processing Data
      • Interpreting Results
      • Concluding
      • Evaluating >
        • Error Analysis
  • Statistics
    • Descriptive Statistics >
      • Skew and the Normal Distribution
      • Outliers
      • Measures of Central Tendancy
      • Measures of Dispersion
      • Correlation Coefficients
      • Coefficient of Determination
    • Inferential Statistics >
      • Standard Error
      • T-Test
      • ANOVA
      • Kruskal-Wallis
      • X2 Test of Independence
      • X2 Goodness of Fit
    • Glossary of Statistic Terms and Equations
  • SHS Course Info
    • Above & Beyond >
      • Biology Club
      • Pumpkin Carving
      • Scavenger Hunt
      • Science News
      • Wood Duck Project (legacy)
      • Invasive Crayfish Project (legacy)
    • Assessment >
      • Class Grading IB Bio I
      • Class Grading IB Bio II
      • Daily Quizzes (legacy)
      • Lab Practicals (legacy)
    • Class Photos
    • Recommendations
  • Contact
    • About >
      • Philosophy
      • Resume
      • Reflection
      • Favorite Quotes
      • AEF Blog
  • Expeditions
    • Bahamas (2009)
    • Trinidad (2010)
    • Trinidad (2011)
    • Ecuador (2012)
    • Trinidad (2013)
    • Peru (2014)
    • Bahamas (2015)
    • Peru (2016)
    • Costa Rica (2017)
    • Costa Rica (2018)
    • Arizona (2022)
    • Florida (2023)
    • Belize (2024)
    • Costa Rica (2025)
  • Summer Ecology Research
  • Teacher Resources