TITLE: How to check if my dataset is normally distributed?
QUESTION [5 upvotes]: I have data sets (measurements) and I need to know if values are normally distributed. I would like to get this information programmatically in my application and not via plotting and checking it visually myself. Is there some statistical method how to check it?
I have an idea to use mean and median and if median equals mean (or is very close) the distribution can be considered as normally distributed. But I'm not sure what "close" is enough.

REPLY [3 votes]: This is a very wide subject - the Wikipedia article on the subject, is a good place to start.
In short, there are many methods and the "right" method for you depends on what you need:

Do you know the mean and variance apriori?
Do you need an exact estimate of how far you are from a normal distribution, or is yes / no answer good enough?
How much computation time do you have?

I think the easiest method is to calculate the skewness and kurtosis of your data. If both are "near" enough to zero, it's normal. To get the "score" one method often used is the Jarque-Beta test which gives you the p-value given the calculated skewness and kurtosis.