Skip to content

Commit 3355ac7

Browse files
committed
integrated new content
The proof "mean-ls" was renamed to "mean-mse" and slightly rewritten. Additionally, addition of this proof to the index pages.
1 parent ad45378 commit 3355ac7

6 files changed

Lines changed: 66 additions & 48 deletions

File tree

I/PbA.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,10 @@ title: "Proof by Author"
474474
- [Variance of the exponential distribution](/P/exp-var)
475475
- [Variance of the log-normal distribution](/P/lognorm-var)
476476

477+
### salbalkus (1 proof)
478+
479+
- [The expected value minimizes the mean squared error](/P/mean-mse)
480+
477481
### StatProofBook (1 proof)
478482

479483
- [Proof Template](/P/-temp-)

I/PbN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,3 +474,4 @@ title: "Proof by Number"
474474
| P466 | cdf-probexc | [Exceedance probability for a random variable in terms of cumulative distribution function](/P/cdf-probexc) | JoramSoch | 2024-09-06 |
475475
| P467 | postpred-jl | [Posterior predictive distribution is a marginal distribution of the joint likelihood](/P/postpred-jl) | aloctavodia | 2024-09-11 |
476476
| P468 | mean-wlln | [Weak law of large numbers](/P/mean-wlln) | JoramSoch | 2024-09-13 |
477+
| P469 | mean-mse | [The expected value minimizes the mean squared error](/P/mean-mse) | salbalkus | 2024-09-13 |

I/PbT.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ title: "Proof by Topic"
494494

495495
- [t-distribution is a special case of multivariate t-distribution](/P/t-mvt)
496496
- [t-test for multiple linear regression using contrast-based inference](/P/mlr-t)
497+
- [The expected value minimizes the mean squared error](/P/mean-mse)
497498
- [The log probability scoring rule is a strictly proper scoring rule](/P/lpsr-spsr)
498499
- [The p-value follows a uniform distribution under the null hypothesis](/P/pval-h0)
499500
- [The regression line goes through the center of mass point](/P/slr-comp)

I/ToC.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ title: "Table of Contents"
117117
&emsp;&ensp; 1.10.8. **[Expectation of a trace](/P/mean-tr)** <br>
118118
&emsp;&ensp; 1.10.9. **[Expectation of a quadratic form](/P/mean-qf)** <br>
119119
&emsp;&ensp; 1.10.10. **[Squared expectation of a product](/P/mean-prodsqr)** <br>
120-
&emsp;&ensp; 1.10.11. **[Law of total expectation](/P/mean-tot)** <br>
121-
&emsp;&ensp; 1.10.12. **[Law of the unconscious statistician](/P/mean-lotus)** <br>
122-
&emsp;&ensp; 1.10.13. **[Weak law of large numbers](/P/mean-wlln)** <br>
123-
&emsp;&ensp; 1.10.14. *[Expected value of a random vector](/D/mean-rvec)* <br>
124-
&emsp;&ensp; 1.10.15. *[Expected value of a random matrix](/D/mean-rmat)* <br>
125-
&emsp;&ensp; 1.10.16. **[Expected value minimizes expected squared error](/P/mean-ls)** <br>
120+
&emsp;&ensp; 1.10.11. **[Expected value minimizes squared error](/P/mean-mse)** <br>
121+
&emsp;&ensp; 1.10.12. **[Law of total expectation](/P/mean-tot)** <br>
122+
&emsp;&ensp; 1.10.13. **[Law of the unconscious statistician](/P/mean-lotus)** <br>
123+
&emsp;&ensp; 1.10.14. **[Weak law of large numbers](/P/mean-wlln)** <br>
124+
&emsp;&ensp; 1.10.15. *[Expected value of a random vector](/D/mean-rvec)* <br>
125+
&emsp;&ensp; 1.10.16. *[Expected value of a random matrix](/D/mean-rmat)* <br>
126126

127127
1.11. Variance <br>
128128
&emsp;&ensp; 1.11.1. *[Definition](/D/var)* <br>

P/mean-ls.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

P/mean-mse.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
layout: proof
3+
mathjax: true
4+
5+
author: "Salvador Balkus"
6+
affiliation: "Harvard T.H. Chan School of Public Health"
7+
e_mail: "sbalkus@g.harvard.edu"
8+
date: 2024-09-13 23:30:00
9+
10+
title: "The expected value minimizes the mean squared error"
11+
chapter: "General Theorems"
12+
section: "Probability theory"
13+
topic: "Expected value"
14+
theorem: "Expected value minimizes squared error"
15+
16+
sources:
17+
- authors: "Wikipedia"
18+
year: 2024
19+
title: "Derivative test"
20+
in: "Wikipedia, the free encyclopedia"
21+
pages: "retrieved on 2024-09-13"
22+
url: "https://en.wikipedia.org/wiki/Derivative_test"
23+
24+
proof_id: "P469"
25+
shortcut: "mean-mse"
26+
username: "salbalkus"
27+
---
28+
29+
30+
**Theorem:** Let $X_1, \ldots, X_n$ be a collection of [random variables](/D/rvar) with common [mean](/D/mean) $E(X_i) = \mu$. Then, $\mu$ minimizes the mean squared error:
31+
32+
$$ \label{eq:mean-mse}
33+
\mu = \operatorname*{arg\,min}_{a \in \mathbb{R}} E\left[ (X_i - a)^2 \right] \; .
34+
35+
36+
**Proof:** Using the [linearity of expectation](/P/mean-lin), we can simplify the objective function:
37+
38+
$$ \label{eq:mse}
39+
E\left[ (X_i - a)^2 \right] = E\left[ X_i^2 - 2aX_i + a^2 \right] = a^2 - 2a\mu + E(X_i^2) \; .
40+
$$
41+
42+
Setting the first derivative
43+
44+
$$ \label{eq:dmse-da}
45+
\frac{d}{da} \left[ a^2 - 2a\mu + E(X_i^2) ] = 2a - 2\mu
46+
$$
47+
48+
to zero to perform a derivative test, we obtain:
49+
50+
$$ \label{eq:mean-mse-qed}
51+
2a - 2\mu = 0 \quad \Leftrightarrow \quad a = \mu \; .
52+
$$
53+
54+
The second derivative is equal to 2, which is greater than 0. Since $a = \mu$ is the sole critical point, we can conclude that this value is the unique global minimum. This completes the proof that the expected value minimizes the mean squared error.

0 commit comments

Comments
 (0)