Tag Archives: variance

Use an improved extension method to calculate standard deviation in C#

The example Calculate standard deviation in C# makes an extension method that calculates standard deviation for an IEnumerable of integers. Unfortunately because that example works with integers, it cannot work with other data types. Rian Meier showed me this method, … Continue reading

Posted in algorithms, extension methods, mathematics | Tagged , , , , , , , , , , | 2 Comments

Calculate standard deviation in C#

Standard deviation is a measurement of how spread out the values in a normally distributed sample are. A standard deviation close to 0 means the values are relatively close together. A large standard deviation means they are spread far apart. … Continue reading

Posted in algorithms, extension methods, mathematics | Tagged , , , , , , , , , , | 1 Comment

Plot data with standard deviation ranges in C#

The examples Draw a normal distribution curve in C# and Draw a scaled normal distribution in C# show one approach for visualizing how data is distributed. This example shows a method that lets you visualize where a particular data value … Continue reading

Posted in algorithms, drawing, graphics, mathematics | Tagged , , , , , , , , , , , , , | Leave a comment

Draw a scaled normal distribution in C#

The example Draw a normal distribution curve in C# shows how to draw a normal distribution. Unfortunately for some means and standard deviations, the result may not be very useful. For example, Figure 1 shows a normal distribution where the … Continue reading

Posted in algorithms, drawing, graphics, mathematics | Tagged , , , , , , , , , , , , , | Leave a comment

Draw a normal distribution curve in C#

A normal distribution is a probability distribution that occurs arise when you analyze seemingly “random” occurrences. You can define a normal distribution in terms of its mean and standard deviation. Mean (μ) This is the basically the average of the … Continue reading

Posted in algorithms, drawing, graphics, mathematics | Tagged , , , , , , , , , , , , , | 7 Comments