View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Data Driven Fitting with MATLAB

3.7 | 3 ratings Rate this file 57 Downloads (last 30 days) File Size: 2.54 MB File ID: #31562 Version:
image thumbnail

Data Driven Fitting with MATLAB


Richard Willey (view profile)


25 May 2011 (Updated )

Demostration code and data sets for the "Data Driven Fitting with MATLAB" webinar.

| Watch this File

File Information

Data driven fitting allows you to generate a fit without specifying a parametric equation that describes the relationship between your variables.
Fitit.m is a simple function for data driven curve fitting.

FititDemo.m illustrates how to use fitit to generate a curve fit.

Load_Forecasting.m demonstrates building a short term electricity load (or price) forecasting system with MATLAB. Three non-linear regression models (Boosted Decision Trees, Bagged Decision Trees, and Neural Networks) are calibrated to forecast hourly day-ahead loads given temperature forecasts, holiday information and historical loads. The models are trained on hourly data from the NEPOOL region (courtesy ISO New England) from 2004 to 2007 and tested on out-of-sample data from 2008.


This file inspired Data Driven Fitting Com Matlab.

Required Products Curve Fitting Toolbox
Neural Network Toolbox
Statistics and Machine Learning Toolbox
MATLAB release MATLAB 7.12 (R2011a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
18 Oct 2016 Akash

Akash (view profile)

It does not generate partial dependence plots. Is there any in-built matlab tool for that?

18 May 2016 Carlos

Carlos (view profile)

05 Dec 2014 Jim O'Doherty

Anyone using this "out of the box" should change the line:

cp = cvpartition(100,'k',10);


cp = cvpartition(length(X),'k',10);

Comment only
03 Aug 2013 Benjamin

how to change the row of data to fit the number of partition in the function cross validation?

Comment only
14 Aug 2012 Gwen Weng

It requires the data to be dense and not have large gaps.

Comment only
06 Aug 2012 Boxiang

The author of this file failed to mention that the number of row of the data to be fit must equals to the number of partition 'N' in the function corss validation. The users have to change it themselves.

01 Sep 2016

Updated license

Contact us