using System; using System.Collections.Generic; using S = Science.Statistics.BasicStatistics; namespace ScienceTest.StatisticsTest.BasicStatisticsTest { public class OneSampleZTestBotoxTest { public OneSampleZTestBotoxTest() { } private string result; public string Result { get{return result;} } public void Compute() { S.StandardDeviationAndAverage sd = new S.StandardDeviationAndAverage(); sd.Average = 0.53; sd.StandardDeviation = (1.0 - 0.0)*Math.Sqrt(0.53*0.47); S.StandardErrorAndExpectedValue s = new S.StandardErrorAndExpectedValue(sd,63); result += s.ExpectedValueForPercentage.ToString() + " "; result += s.StandardErrorForPercentage.ToString() + "\r\n"; S.ObservedValue ov = new S.ObservedValue(); ov.Percentage = 83.0; S.OneSampleZTest test = new S.OneSampleZTest(s, ov); result += test.zValue.ToString()+" "; result += test.Conclusion+"\r\n"; } } } // 53 6.28805872584556 // 4.77094780885111 Reject null.