There are two methods to calculate the median of an interval [low, high].
- m = ( l + h ) / 2
- m = l + ( h – l ) / 2
l + h may have addition overflow, but h-l will not. Therefore, it is best to use the second method of calculation.
There are two methods to calculate the median of an interval [low, high].
l + h may have addition overflow, but h-l will not. Therefore, it is best to use the second method of calculation.
I could have completed this post in the last month, however I was too exhausted to write this article yesterday (the last day of Feb).
Recently, I am addicted in Probability & Statistics theorem and calculus. I found there is a lot of interesting formula derivation about Normal Distribution (aka Gaussian Distribution), so I’d like to proof it by myself. Here are several methods I tried:
The first formula is the expected value of lognormal distribution. We know, for a continuous function:
And the Probability Density Function (PDF) of lognormal distribution function is:
Hence, we have:
Because of,
Continue readingOne way to check that a vector is an eigenvector is to simply apply the matrix transformation and see if this is the same as multiplying by a scalar. A