Skip to content

Commit 3e94962

Browse files
Dhanunjaya-Ellurisantiviquez
authored andcommitted
Added Explained Variance Score Formula
1 parent 0dfb049 commit 3e94962

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

book/2-regression.tex

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -544,9 +544,9 @@ \subsection{Mean Poisson Deviance}
544544
$
545545
}
546546
};
547-
\draw[-latex,nmlred, semithick] ($(a.south)+(-2.2,0)$) to[bend left=15] node[pos=1, left] {number of samples} +(-1,-1);
548-
\draw[-latex,nmlpurple, semithick] ($(a.north)+(0,0.0)$) to[bend left=15] node[pos=1, right] {actual value} +(1.5,.5);
549-
\draw[-latex,nmlcyan, semithick] ($(a.south)+(1.3,0)$) to[bend right=15] node[pos=1, right] {predicted value} +(1.5,-1);
547+
\draw[-latex,nmlred, semithick] ($(a.south)+(-2.2,0.2)$) to[bend left=15] node[pos=1, left] {number of samples} +(-1,-0.5);
548+
\draw[-latex,nmlpurple, semithick] ($(a.north)+(1.3,0.0)$) to[bend left=15] node[pos=1, right] {actual value} +(1,.5);
549+
\draw[-latex,nmlcyan, semithick] ($(a.south)+(1.3,0)$) to[bend right=15] node[pos=1, right] {predicted value} +(1,-0.5);
550550
}
551551
\end{center}
552552

@@ -809,12 +809,23 @@ \subsection{Pinball Loss }
809809
\section{Explained Variance Score}
810810
\subsection{Explained Variance Score}
811811

812-
The Explained Variance Score is a regression evaluation metric that measures the proportion of variance in the target variable that is captured by the model’s predictions.
812+
The Explained Variance Score (EVS) is a regression evaluation metric that measures the proportion of variance in the target variable that is captured by the model’s predictions.
813813
It focuses specifically on how well the variability of the data is explained, rather than penalizing systematic biases or a lack of correlation between true and predicted values.
814814

815815
% formula
816816
\begin{center}
817-
[FORMULA GOES HERE]
817+
\tikz{
818+
\node[inner sep=2pt, font=\Large] (a) {
819+
{
820+
$\displaystyle
821+
EVS = 1 - \frac{Var({\color{nmlcyan}Y} - {\color{nmlpurple}\hat{Y}})}{Var({\color{nmlcyan}Y})}
822+
$
823+
}
824+
};
825+
826+
\draw[-latex,nmlcyan, semithick] ($(a.north)+(1.2,0)$) to[bend right=15] node[pos=1, left] {actual value} +(-1,.5);
827+
\draw[-latex,nmlpurple, semithick] ($(a.north)+(2.3,0)$) to[bend left=15] node[pos=1, right] {predicted value} +(1,.5);
828+
}
818829
\end{center}
819830

820831
Explained Variance Score ranges from -infinity to 1, with 1 indicating that the model explains all variability in the target variable. Negative values suggest the model performs worse

0 commit comments

Comments
 (0)