Info

此问题已关闭。 请重新打开它进行编辑或回答。

Perform a Linear Regression Analysis on a data set

1 次查看(过去 30 天)
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 个评论
John D'Errico
John D'Errico 2015-4-21
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?

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by