Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Interactive courseware module that addresses the fundamentals of regression analysis taught in STEM courses.

License

NotificationsYou must be signed in to change notification settings

MathWorks-Teaching-Resources/Regression-Basics

View on File Exchange orOpen in MATLAB Online

MATLAB Versions Tested

Curriculum Module

Created with R2024b. Compatible with R2024b and later releases.

Information

This curriculum module contains an interactiveMATLAB® live script that illustrates some basic concepts of regression analysis.

Background

You can use this live script as a demonstration in lectures, a class activity, or an interactive assignment outside class. This module covers topics including solving for linear regression parameters, assessing and improving performance of regression models, and applying the gradient descent algorithm. It also includes an example of using a linear regression model to perform short-term forecasting.

The instructions inside the live script will guide you through the exercises and activities. Get started with the 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 theimage_0.png Stop button in theRUN section of theLive Editor tab in the MATLAB Toolstrip.

Contact Us

Contact theMathWorks Educator Content Development Team if you would like to provide feedback, or if you have a question.

Prerequisites

This module assumes knowledge of plotting and working with linear data.

Getting Started

Accessing the Module

On MATLAB Online:

Use theimage_1.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 onRegressionBasics.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 theHome tab and selectimage_2.pngAdd-Ons >Get Add-Ons.

Products

MATLAB® is used throughout. Tools from Statistics and Machine Learning Toolbox™ are used frequently as well. Parallel Computing Toolbox™ is used specifically for theparpool function.

Scripts

image_3.png
In this script, students will...
$\bullet$ use least squares to solve for linear regression paramaters.
$\bullet$ use a goodness-of-fit measure to assess model performance.
$\bullet$ apply a basic linear regression to model real-world electricity load data.

Related Courseware Modules

image_4.png
Available on:
image_5.png
image_6.png
GitHub
image_7.png
Available on:
image_8.png
image_9.png
GitHub

Or feel free to explore our othermodular courseware content.

Educator Resources

Contribute

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

© Copyright 2025 The MathWorks, Inc

About

Interactive courseware module that addresses the fundamentals of regression analysis taught in STEM courses.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors5

Languages


[8]ページ先頭

©2009-2025 Movatter.jp