using System; using System.Collections.Generic; using S = Science.Statistics.BasicStatistics; namespace ScienceTest.StatisticsTest.BasicStatisticsTest { public class TwoSampleZTestBotoxTest { public TwoSampleZTestBotoxTest() { } private string result; public string Result { get{return result;} } public void Compute() { S.StandardDeviationAndAverage treatment = new S.StandardDeviationAndAverage(); treatment.Average = 40.0 / 64.0; treatment.ByBootstrapMethod(); S.StandardDeviationAndAverage control = new S.StandardDeviationAndAverage(); control.Average = 17.0 / 62.0; control.ByBootstrapMethod(); S.StandardErrorAndExpectedValue tSE = new S.StandardErrorAndExpectedValue(treatment,64); S.StandardErrorAndExpectedValue cSE = new S.StandardErrorAndExpectedValue(control, 62); S.TwoSampleZTest test = new S.TwoSampleZTest(tSE, cSE); result += test.zValue.ToString() + " "; result += test.PValue.ToString()+" "; result += test.Conclusion+"\r\n"; } } } // 4.23181720265225 0.00115905387897897 Reject null.