Skip to main content
1 of 3
Felipe
  • 105
  • 4

checking validity of sample using confidence interval

we know that in order to calculate the confidence interval at 95% we can do mean +/- Z95*SD/sqrt(N) using the mean of the sample data and StdDev of the data with N equals to the data size

But if the mean is known and the standard deviation is known, and we want to check if our data sample is valid using 100 simulations for instance is it correct to say that if we run a simulation 100 times, we should expect 95 of those times for the mean of the sample to be between:

knownMean - 1.96realStdDev/sqrt(N) < mean of sample < knownMean + 1.96realStdDev/sqrt(N)

is this equivalent to cheking the following?

sampleMean - 1.96sampleSD/sqrt(N) < known Mean < sampleMean + 1.96sampleSD/sqrt(N)

Are both equivalent ways of testing the validity of the simulated data? And if not, why not?

Felipe
  • 105
  • 4