Skip to content

Commit 2e8d29d

Browse files
mli0603mli0603
and
mli0603
authored
Update neural-networks-2.md (#207)
Fixed bug in variance calculation at the second step. See https://en.wikipedia.org/wiki/Variance#Product_of_independent_variables. Co-authored-by: mli0603 <[email protected]>
1 parent a982d7f commit 2e8d29d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neural-networks-2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ $$
109109
\begin{align}
110110
\text{Var}(s) &= \text{Var}(\sum_i^n w_ix_i) \\\\
111111
&= \sum_i^n \text{Var}(w_ix_i) \\\\
112-
&= \sum_i^n [E(w_i)]^2\text{Var}(x_i) + E[(x_i)]^2\text{Var}(w_i) + \text{Var}(x_i)\text{Var}(w_i) \\\\
112+
&= \sum_i^n [E(w_i)]^2\text{Var}(x_i) + [E(x_i)]^2\text{Var}(w_i) + \text{Var}(x_i)\text{Var}(w_i) \\\\
113113
&= \sum_i^n \text{Var}(x_i)\text{Var}(w_i) \\\\
114114
&= \left( n \text{Var}(w) \right) \text{Var}(x)
115115
\end{align}

0 commit comments

Comments
 (0)