Skip to content

Commit

Permalink
add prml
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoshengzhe committed May 7, 2014
1 parent 4210931 commit 85b6701
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions prml/01_introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,19 @@ p(g|orange) &= \frac{p(g, orange)}{p(orange)} \\
&= 0.5
\end{align*}

### 1.5
\begin{align*}
var[f] &= E[(f(x) - E[f(x)])^2] \\
&= E[f(x)^2 - 2f(x)E[f(x)] + E^2[f(x)]] \\
&= E[f(x)^2] - E^2(f(x))
\end{align*}

### 1.6
If $x$ and $y$ are independent, then $p(x, y) = p(x) \cdot p(y)$ and thus $E(x,y)=E(x)E(y)$.

Therefore,
\begin{align*}
cov(x, y) &= E_{x,y}[(x-E[x])(y-E[y])] \\
&= E_{x,y}[xy] - E[x]E[y] \\
&= 0
\end{align*}
3 changes: 3 additions & 0 deletions prml/compile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

pandoc `find . -name *$1*` -o test.pdf

0 comments on commit 85b6701

Please sign in to comment.