Skip to content

About

This is an interactive courseware module for use in introductory biology classrooms. This module teaches the basics of statistics using a biological dataset. It includes a number of live scripts.​

Topics

Resources

Contributing

Security policy

Stars

3 stars

Watchers

3 watching

Forks

Repository files navigation

Biosciences: Statistical Methods

View on File Exchange Open in MATLAB Online

MATLAB Versions Tested

Curriculum Module

Created with R2025a. Compatible with R2025a and later releases.

Information

This curriculum module contains interactive MATLAB® live scripts that use biological data to teach fundamental concepts of statistics, data analysis, and data visualization.

Background

You can use these live scripts as demonstrations in lectures, class activities, or interactive assignments outside class. This module will teach students how to use statistical methods in MATLAB® to analyze ecologically relevant data. We will explore the data using descriptive statistics, fit the data using a predictive model, find the linear correlations between variables, and finally, discuss how to test a hypothesis. This module utilizes the Palmer penguins [1] dataset, which contains data about three different species of penguin in Antarctica.

The instructions inside the live scripts will guide you through the exercises and activities. Get started with each live script by running it one section at a time. To stop running the script or a section midway (for example, when an animation is in progress), use the EndIcon.png Stop button in the RUN section of the Live Editor tab in the MATLAB Toolstrip.

MATLAB Compatibility

These plain-text live scripts require MATLAB R2025a or newer. For MATLAB R2024b or older, download the legacy MLX version.

Contact Us

Contact the MathWorks Educator Content Development Team if you would like to request assistance, provide feedback, or if you have a question.

Prerequisites

This module assumes you're familiar with the basics of using MATLAB by going through the MATLAB Onramp before continuing. We also recommend reviewing the Biosciences: Working with Data courseware.

Getting Started

Accessing the Module

On MATLAB® Online™:

Use the OpenInMO.png link to download the module. You will be prompted to log in or create a MathWorks account. The project will be loaded, and you will see an app with several navigation options to get you started.

On Desktop:

Download or clone this repository. Open MATLAB, navigate to the folder containing these scripts and double-click on BiosciencesStatisticalMethods.prj. It will add the appropriate files to your MATLAB path and open an app that asks you where you would like to start.

Ensure you have all the required products (listed below) installed. If you need to include a product, add it using the Add-On Explorer. To install an add-on, go to the Home tab and select AddOnsIcon.png Add-Ons > Get Add-Ons.

Products

MATLAB® is used throughout. Tools from the Curve Fitting Toolbox™ and the Statistics and Machine Learning Toolbox™ are used frequently as well.

Scripts

LoadCleanData.png
In this script, students will...
$\bullet$ clean data and prepare a dataset for analysis
Academic disciplines
$\bullet$ Biology
ExploringData.png
In this script, students will...
$\bullet$ visualize data
$\bullet$ create and filter tables
Academic disciplines
$\bullet$ Biology
DescriptiveStats.png
In this script, students will...
$\bullet$ calculate and visualize descriptive statistics including mean, median, mode, standard deviation, and range
Academic disciplines
$\bullet$ Biology
PredictiveModeling.png
In this script, students will...
$\bullet$ calculate and visualize linear regression lines
$\bullet$ consider goodness of fit metrics and how to avoid overfitting
Academic disciplines
$\bullet$ Biology
Corcoeff.png
In this script, students will...
$\bullet$ compute and visualize correlation coefficients
$\bullet$ analyze the strength of a correlation and consider what it means for a biological dataset
Academic disciplines
$\bullet$ Biology
HypothesisTest.png
In this script, students will...
$\bullet$ develop null and alternate hypotheses
$\bullet$ visualize a hypothesis with a box-and-whisker plot
$\bullet$ run a hypothesis test
Academic disciplines
$\bullet$ Biology
PSet.png
In this script, students will...
$\bullet$ create scatter and box-and-whisker plots to analyze data
$\bullet$ use hypothesis testing to determine whether a claim is statistically significant
Academic disciplines
$\bullet$ Biology

License

The license for this module is available in the LICENSE.md.

Related Courseware Modules

Courseware
Location
Biosciences: Working With Data
Penguins.jpeg
Available on:
OpenInFX.png
OpenInMO.png
GitHub
Biosciences: Image Processing
FluorescentCells.jpeg
Available on:
OpenInFX.png
OpenInMO.png
GitHub
Biosciences: Machine Learning
Rose.jpeg
Available on:
OpenInFX.png
OpenInMO.png
GitHub
Biosciences: Genetics
DNAHelix.png
Available on:
OpenInFX.png
OpenInMO.png
GitHub

Or feel free to explore our other modular courseware content.

Educator Resources

Contribute

Looking for more? Find an issue? Have a suggestion? Please contact the MathWorks Educator Content Development Team. If you want to contribute directly to this project, you can find information about how to do so in the CONTRIBUTING.md page on GitHub.

Citations

[1] Horst AM, Hill AP, Gorman KB (2020). palmerpenguins: Palmer Archipelago (Antarctica) penguin data. R package version 0.1.0. https://allisonhorst.github.io/palmerpenguins/. doi:10.5281/zenodo.3960218.

Help us Improve

Share your feedback to help us improve this module.

© Copyright 2023-2026 The MathWorks, Inc

About

This is an interactive courseware module for use in introductory biology classrooms. This module teaches the basics of statistics using a biological dataset. It includes a number of live scripts.​

Topics

Resources

Contributing

Security policy

Stars

3 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages