Exercise · Volume 1 · 1.2.10-3
Exercise 1.2.10-3
not stated yet in Lean solution written
| Rating | M15 |
|---|---|
| Markers | M (mathematical) |
| Kind | K3, find a value: compute a number, a set or a closed form from the written solution |
| Section | Section 1.2.10 of Volume 1. Companion chapter: Analysis of an algorithm |
The task
Give decimal values of the minimum, maximum, mean and standard deviation of for .
The exact wording is in your copy of the book.
Hints
Open one hint at a time. Try the exercise again after each.
Hint 1
Use Eq. (16) with .
Hint 2
For the sum use .
Solution
Show the solution
By (16) the statistics of are . For :
, so the mean is .
, so the variance is and the standard deviation is .
The minimum is and the maximum is .
Check
Python gives and .
Remarks
The mean grows like , so the step M4 is rare. The maximum is reached only for the one decreasing input.
This solution is drafted, and a person has not reviewed it yet. The source.
In Lean
not stated yet The exercise is not stated in Lean yet.
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.