shapirowilk(A)
Performs a Shapiro-Wilk normality test using the data in array A and a confidence level of 0.05 (5%).
shapirowilk(A,cl)
Performs a Shapiro-Wilk normality test using the data in array A and confidence level cl.
See also dagostinopearson linearreg_ht_nor
Example
a = ( 3.109 3.114 3.131 3.14 3.178 3.186 3.203 3.223 3.288 3.378 3.391 3.395 3.414 3.418 3.44 3.466 3.481 3.493 3.493 3.5 3.506 3.506 3.538 3.558 3.572 3.605 3.605 3.77 3.898 )
( 3.109 3.114 3.131 3.14 3.178 3.186 3.203 3.223 3.288 3.378 3.391 3.395 3.414 3.418 3.44 3.466 3.481 3.493 3.493 3.5 3.506 3.506 3.538 3.558 3.572 3.605 3.605 3.77 3.898 )
shapirowilk(a)
Shapiro-Wilk test for normality.
Ho : Sample is normally distributed
Ha : Sample is not normally distributed
Significance level : 0.05 (5.0%)
Results:
Do not reject the null hypothesis. (1.0)
Test statistics W : 0.9456334856207107
P value is : 0.14083337460735834