21.2 STATISTICS
Statistics is the branch of mathematics, which accepts sample data and helps to deduce conclusions. Let us start with simple statistical formulas for standard deviation and variance.
21.2.1 Standard deviation and variance
- For a given a sample data, variance is a measure of describing a theoretical probability distribution. Variance is the mean of squares of deviation given by
where stands for average.
- The standard deviation is given by
Problem: Write a program to find average, variance, and standard deviation of a ...
Get Object Oriented Programming with C++, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.