Coder Social home page Coder Social logo

minoue-xx / regression-basics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mathworks-teaching-resources/regression-basics

0.0 1.0 0.0 49.26 MB

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

License: Other

regression-basics's Introduction

Regression BasicsView Regression Basics on File Exchange

Curriculum Module
Created with R2020a. Compatible with R2020a and later releases.

Description

This package contains a live script and supporting files to illustrate some basics of regression analysis. The materials are designed to be flexible and can be easily modified to accommodate a variety of teaching and learning methods. We include a brief background, interactive illustrations, tasks, reflection questions, a real-world application example, and a guided exercise for the different concepts explored.

The instructions inside the live scripts will guide you through the tasks and activities one section at a time. To run this interactive script in a controls-only mode, use the Hide code button on the View tab of the MATLAB toolstrip.

Learning Goals

  • Explain the difference between linear, multiple linear, and nonlinear regression.
  • Use ordinary least squares to solve for linear regression parameters.
  • Assess and improve the performance of a regression model using a goodness-of-fit measure.
  • Apply gradient descent to iteratively minimize a cost function and estimate model parameters.
  • Explain the effect of increasing and decreasing the learning rate and number of steps for the gradient descent algorithm.
  • Use a linear regression model to perform short-term forecasting.

Suggested Prework

MATLAB Onramp – a free two-hour introductory tutorial to learn the essentials of MATLAB®.

This module assumes a basic knowledge of algebra and multivariable calculus.

Details

regressionBasics.mlx
An interactive lesson that introduces the fundamentals of regression analysis. Students apply a basic linear regression to model real-world electricity load data.

electricityLoadData.mlx
A supplementary script to download the external electricity load data from New York ISO for use in the practice problem.

regressSolnIm/
This folder includes supplementary figure files containing solutions for tasks in regressionBasics.mlx. The main script provides controls to hide or expose the solutions when needed. Ensure that this folder is in the same location as regressionBasics.mlx

linearData.mat, linearData2.mat, multivariateData.mat, nonlinearData.mat
Data files containing some sample data for the different types of regression problems.

Products

MATLAB, Statistics and Machine Learning Toolbox™

License

The license for this module is available in the LICENSE.TXT file in this GitHub repository.

Educator Resources

Have any questions or feedback? Contact the MathWorks online teaching team.

Copyright 2021 The MathWorks, Inc.

regression-basics's People

Contributors

plalan-mw avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.