Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Perform a Linear Regression Analysis on a data set

1 visualizzazione (ultimi 30 giorni)
Jared Martin
Jared Martin il 21 Apr 2015
Chiuso: John D'Errico il 21 Apr 2015
Write a program that will perform a linear regression analysis on a data set provided by the instructor. The data set will consist of two columns of data separated by spaces in a text file. The two columns of data are the x and y data values recorded from a process that can be modeled by a simple f (x) = m x + b equation. The idea behind linear regression is to process the the given x and y data in a way that allows you to fit the slope and y-intercept parameters in the modeled equation. The equations that perform this analysis are given below in Equation 1 and 2.
In the above equations, Xk and Yk are the data points from the file. Where X0 and Y0 are the first (x,y) data set from the file, X1 and Y1 are the second values in the file and so on until all N values where XN
  1 Commento
John D'Errico
John D'Errico il 21 Apr 2015
Ok. So start writing. This is your homework, not ours. They gave you the formulas. If we do it for you, all you learn is how to con someone into doing your work. Where is the gain in that?

Risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by