2016 Update

This commit is contained in:
Tina Müller 2016-12-05 22:15:40 +01:00
parent 948b86eafa
commit dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions

View file

@ -1,13 +1,13 @@
;Task:
Given a set of data vectors in the following format:
<math>y = \{ y_1, y_2, ..., y_n \}\,</math>
<math>y = \{ y_1, y_2, ..., y_n \}\,</math>
<math>X_i = \{ x_{i1}, x_{i2}, ..., x_{in} \}, i \in 1..k\,</math>
<math>X_i = \{ x_{i1}, x_{i2}, ..., x_{in} \}, i \in 1..k\,</math>
Compute the vector <math>\beta = \{ \beta_1, \beta_2, ..., \beta_k \}</math> using
[[wp:Ordinary least squares|ordinary least squares]] regression using the following equation:
Compute the vector <math>\beta = \{ \beta_1, \beta_2, ..., \beta_k \}</math> using [[wp:Ordinary least squares|ordinary least squares]] regression using the following equation:
<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 <i>X</i> is given to you as a two-dimensional array (i.e. matrix).
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>