1
$\begingroup$

I have some data samples , used histfit in matlab and did some integrated tests in matlab to test if the data is normally distributed, but i`m not convinced.

I have around 200 values in my sample

  • Can I tell from the graphs if it is nor not?
  • All my data has to be under the curve to be normally distributed?

Pics related: Sample 1 Sample 2 Sample 3

$\endgroup$
3
  • $\begingroup$ What does your data actually represent? That might already give you an answer to your question w/o actually needing to "look at the data". $\endgroup$ Mar 26, 2019 at 11:19
  • $\begingroup$ It represents execution times of a repetitive function, in nanoseconds. $\endgroup$ Mar 27, 2019 at 19:29
  • $\begingroup$ Ok, so strictly speaking it can't be normal then since its strictly positive. For (waiting) times usually an exponential distribution is a good starting point. Or log normal if you want to keep normality around. $\endgroup$ Mar 28, 2019 at 2:48

2 Answers 2

2
$\begingroup$

Perfectly normally distributed data is in practice effectively non-existent. While one can manipulate bin widths to show many things or end up with misleading plots, your data does not look normal.

But why do you want to know? If you care about what analysis method to use, then firstly you should not care about the data (i.e. dependent and independent variables), but the regression residuals. Secondly, deviations don't necessarily invalidate a model with normally distributed error terms.

$\endgroup$
1
$\begingroup$

All my data has to be under the curve to be normally distributed?

No, it doesn´t.

Can I tell from the graphs if it is nor not?

As you said yourself: i`m not convinced. To convince yourself one way, or another, you can either make another plot (like QQ-plot), or do a statistical test for normality and check if the p-value is significant. Shapiro-wilk test is quite common though it seems that directed tests assessing skewness or curtosis should be preferred. It all depends on what you are planning to do in the next step. Student´s t test is more sensitive to skewness, while tests with inference about variances might be sensitive to kurtosis.

$\endgroup$
2
  • $\begingroup$ Let us continue this discussion in chat. $\endgroup$
    – Glen_b
    Mar 26, 2019 at 23:21
  • $\begingroup$ (I have taken the discussion on to chat, at the above link) $\endgroup$
    – Glen_b
    Mar 26, 2019 at 23:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.