Skip to content

Commit 63d9568

Browse files
authored
Merge pull request #27 from bfgray3/yhat
move hat over y
2 parents 70b914d + 98ed55c commit 63d9568

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

embeddings.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ \subsection{Formulating a machine learning problem}
630630
y = 2\beta_1 + 5\beta_2 + \varepsilon
631631
\end{equation}
632632

633-
How do we know our model is good? We initialize it with some set of values, weights, and we iterate on those weights, usually by minimizing a \textbf{cost function}. The cost function is a function that models the difference between our model's predicted value and the actual output for the training data. The first output may not be the most optimal, so we iterate over the model space many times, optimizing for the specific metric that will make the model as representative of reality as possible and minimize the difference between the actual and predicted values. So in our case, we compare $y\string^$ to $y$. The average squared difference between an observation’s actual and predicted values is the cost, otherwise known as \textbf{MSE} - mean squared error.
633+
How do we know our model is good? We initialize it with some set of values, weights, and we iterate on those weights, usually by minimizing a \textbf{cost function}. The cost function is a function that models the difference between our model's predicted value and the actual output for the training data. The first output may not be the most optimal, so we iterate over the model space many times, optimizing for the specific metric that will make the model as representative of reality as possible and minimize the difference between the actual and predicted values. So in our case, we compare $\hat{y}$ to $y$. The average squared difference between an observation’s actual and predicted values is the cost, otherwise known as \textbf{MSE} - mean squared error.
634634

635635
\begin{equation}
636636
MSE = \frac{1}{N} \sum_{i=1}^{n} (y_i - (m x_i + b))^2

0 commit comments

Comments
 (0)