Home » C Examples » C Program To Compute Standard Deviation For Non-Grouped Data

# C Program To Compute Standard Deviation For Non-Grouped Data

The standard deviation is a measure to understand how much data deviates from the mean value. The data may be grouped or non-grouped where non-group data is a list of data.

In this example program, we compute the standard deviation for input non-grouped data and output the result.

Learn the basics of C programming before you begin with this example. Continue reading if you know the basics.

In the next section, we will discuss the problem in detail.

### Problem Definition

The standard deviation is a measure useful in comparing two sets of data when their mean value is the same. To calculate the standard deviation we use the following formula in this example C program.

SD = $\sqrt{\frac{(x - \overline{x})^2}{n}}$

Where $\overline{x}$ is the mean value.

Given the formula, you can find standard deviation in the following steps.