# Exercises for Programmers: Exercise 36, std deviation population vs sample

**URL:** <https://forum.devtalk.com/t/exercises-for-programmers-exercise-36-std-deviation-population-vs-sample/5494>\
**Category:** PragProg Customers\
**Tags:** book-exercises-for-programmers, errata\
**Created:** [30 December 2020 07:45 UTC](https://forum.devtalk.com/t/exercises-for-programmers-exercise-36-std-deviation-population-vs-sample/5494 "2020-12-30T07:45:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brad-h](https://forum.devtalk.com/user_avatar/forum.devtalk.com/brad-h/32/1739_2.png) [@brad-h](https://forum.devtalk.com/u/brad-h)\
**Post date:** [30 December 2020 07:45 UTC](https://forum.devtalk.com/t/exercises-for-programmers-exercise-36-std-deviation-population-vs-sample/5494/1 "2020-12-30T07:45:54Z")

</div>

Title: Exercises for Programmers  
Example: Exercise 36, std deviation population vs sample

The algorithm shown for exercise 36 describes calculating the standard deviation for the population, but the example value shows the standard deviation for the sample.  
Population std dev from example values: 353.5533906  
Sample std dev from example values: 408.2482905  
Additionally, the value shown in the book appears to be a typo: 400.25 (instead of 408.25).
