Multiple regression: Difference between revisions
Content added Content deleted
Line 12: | Line 12: | ||
<math>y_j = \Sigma_i \beta_i \cdot x_{ij} , j \in 1..n</math> |
<math>y_j = \Sigma_i \beta_i \cdot x_{ij} , j \in 1..n</math> |
||
You can assume <i> y </i> is given to you as a vector (a one-dimensional array), and |
You can assume <i> y </i> is given to you as a vector (a one-dimensional array), and <i> X </i> is given to you as a two-dimensional array (i.e. matrix). |
||
<br><br> |
<br><br> |
||
;Example use case: |
|||
Think of multiple regression as "surface fitting" rather than curve fitting. For example, you might use multiple regression to create a three-dimensional surface so you can estimate implied volatility given time to maturity and delta of an options contract. For pretty pictures of this, see [https://www.google.com/search?q=+volatility+surface&tbm=isch volatility surface] graphs. In this case, X is a two-dimensional matrix of <code>{time[i], delta[i]}</code>, and Y is a matching list of <code>implied_volatility[i]</code>. |
|||
;References: |
|||
* [https://en.wikiversity.org/wiki/Multiple_linear_regression Multiple Regression] page on Wikiversity |
|||
* [https://en.wikipedia.org/wiki/Linear_regression#Simple_and_multiple_linear_regression Multiple Regression] description in Wikipedia |
|||
=={{header|Ada}}== |
=={{header|Ada}}== |