Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double ssqrt1 = Math.Sqrt(s1);
- double ssqrt2 = Math.Sqrt(s2);
- double nsqrt = Math.Sqrt(n);
- double ci1LowerBound = mean2d - 2.58 * (ssqrt1/nsqrt);
- double ci1UpperBound = mean2d + 2.58 * (ssqrt1/nsqrt);
- double ci2LowerBound = mean3d - 2.58 * (ssqrt2/nsqrt);
- double ci2UpperBound = mean3d + 2.58 * (ssqrt2/nsqrt);
- Console.WriteLine("Confidence interval for 2d = " + ci1LowerBound + " <= " + mean2d + " <= " + ci1UpperBound);
- Console.WriteLine("Confidence interval for 3d = " + ci2LowerBound + " <= " + mean3d + " <= " + ci2UpperBound);
- Console.ReadKey();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement