Hi,
The Kolmogorov-Smirnov test producing a result of 1 indicates that, under the significance level used by the test (commonly 0.05 unless specified otherwise), you reject the null hypothesis that the data comes from a normal distribution. In other words, your dataset does not follow a normal distribution based on this test.
Since the Cochran's formula uses the underlying assumption of the data being normally distributed, it would not be the ideal approach to determine the sample size in this case. Instead you can use other methods such as:
- For estimating a mean (average) when the data is not normally distributed, consider using the t-distribution.
- For estimating a proportion (percentage) when the data is not normally distributed, you can use the binomial distribution.
- (n) is the required sample size.
- (Z) is the critical value from the t-distribution corresponding to the desired confidence level.
- is the estimated standard deviation
- (E) is the desired margin of error (half the width of the confidence interval).
- (p) is the estimated proportion
You can read more about the t-distribution and binomial distribution in MATLAB here :
- https://www.mathworks.com/help/stats/students-t-distribution.html
- https://www.mathworks.com/help/stats/binomial-distribution.html