I want to check if one of the columns in my dataframe "Activity_Sleep" is normally distributed. According to the histogram it normally distributed:
Minutes_active <- hist(activity_sleep$sedentary_minutes,
border="light blue",
col="blue",
las=1,
breaks=5)
The Shapiro test however, gives the following results:
Shapiro.test(activity_sleep$sedentary_minutes)
Shapiro-Wilk normality test
data: activity_sleep$sedentary_minutes
W = 0.95241, p-value = 5.604e-10 .
According to this result, the p-value is extremely small and the null hypothesis, i.e. that the distribution is normal, needs to be rejected.
Why do I get two contrary results?
