using System; using System.Collections.Generic; using System.Linq; using System.Text; using S = Science.Statistics.BasicStatistics; namespace Statistics4Ed.Chapter21.SetA { public class Exercise02 { public Exercise02() { } private string result; public string Result { get{return result;} } public void Compute() { S.BoxModel model = new S.BoxModel(); model.AddTicket(0.0, (int)(100000 * (1.0 - 194.0 / 500.0))); model.AddTicket(1.0, (int)(100000 * (194.0/500.0))); // older than 25 model.NumberOfDraws = 500; S.StandardErrorAndExpectedValue s = new S.StandardErrorAndExpectedValue(model); result += s.ExpectedValueForPercentage.ToString() + " "; result += s.StandardErrorForPercentage.ToString() + "\r\n"; } } } /* 38.8 2.17924757657316 */