The most important concept in probability and statistics: the expected value
For instance, all the popular loss functions in machine learning, like cross-entropy, are expected values. However, its definition is far from intuitive.
Here is what's behind the scenes:
It's better to start with an example.
So, let's play a simple game! The rules: I’ll toss a coin, and if it comes up heads, you win $1. However, if it is tails, you lose $2.
Should you even play this game with me? We’ll find out.
After n rounds, your earnings can be calculated by the number of heads times $1 minus the number of tails times $2.
If we divide total earnings by n, we obtain your average earnings per round.
The main reason math is considered difficult: proofs.
Reading and writing proofs are hard, but you cannot get away without them. The best way to learn is to do.
So, let's deconstruct the proof of the most famous mathematical result: the Pythagorean theorem.
Here it is in its full glory.
Theorem. (The Pythagorean theorem.) Let ABC be a right triangle, let a and b be the lengths of its two legs, and let c be the length of its hypotenuse.
Then a² + b² = c².
Now, the proof. Mathematical proofs often feel like pulling a rabbit out of a hat. I’ll go a bit overboard and start by pulling out two rabbits.
The first rabbit. Take a look at the following picture.
The depicted square’s side is a + b long, so its area is (a + b)².