using System; using System.Collections.Generic; using System.Linq; using System.Text; using S = Science.Statistics.BasicStatistics; namespace Statistics4Ed.Chapter26.SetE { public class Exercise06 { public Exercise06() { } private string result; public string Result { get{return result;} } public void Compute() { S.BoxModel model = new S.BoxModel(); model.AddTicket(0.0, 9); model.AddTicket(1.0, 1); model.NumberOfDraws = 1000; S.StandardErrorAndExpectedValue s = new S.StandardErrorAndExpectedValue(model); S.ObservedValue ov = new S.ObservedValue(); ov.Sum = 173.0; S.OneSampleZTest test = new S.OneSampleZTest(s, ov); result += test.zValue.ToString() + " "; result += test.PValue.ToString() + " "; result += test.Conclusion + "\r\n"; } } } /* 7.69487563974305 1.91775484381651E-11 Reject null. */