Talk:Multiple regression: Difference between revisions

add history of early error that led to most examples being translated from an incorrect early example
imported>Stevegt
m (simplify clarification)
imported>Stevegt
(add history of early error that led to most examples being translated from an incorrect early example)
Line 1:
= Examples are not multiple regression =
 
Many if not most of the examples on this page were apparently translated blindly from a single incorrect example that-- hadthe height/weight asexamples Xin andparticular weightare as Y -- aall single-axis regression. Regression of a single X axis is not multiple regression -- see References below. Those height/weight examples do not belong on this page. Much of the confusion in this discussion, and many of the suggestions for merging with [[Polynomial Fitting]], stem from that error.
 
Multiple regression, as mentioned in the description, is where the X input is a N-dimensional array; a matrix of two or more dimensionscolumns, not a list.
 
== History of error ==
 
* The very first example, [https://rosettacode.org/wiki/Multiple_regression?oldid=121951 Ruby], was incorrect -- it only used a single-axis X input, when the task description clearly said "x is given to you as a two-dimensional array".
* The next example added, [https://rosettacode.org/wiki/Multiple_regression?oldid=121955 Tcl], introduced the single-axis height/weight example. Things sort of went all to heck from there, with other languages cargo-culting the incorrect example from Tcl.
 
== Examples of multiple regression ==
 
Think of multiple regression as "surface fitting" rather than curve fitting. Some examples:
Line 10 ⟶ 17:
 
== Summary for clarification: ==
 
* '''Examples on this page must support a two-dimensional matrix as the X input''', as mentioned in the pagetask description.
* Do remove or replace theThe single-regression examples need to be removed or replaced, specificallyincluding those that predict a weight from a height. They do not belong on a page about multiple regression. I've flagged C, Go, and Python as incorrect; that should help start the process.
 
== References: ==
Anonymous user