Testing Distribution of Duration of Symptoms of Drug
Verified
Added on  2022/12/26
|7
|1165
|46
AI Summary
This article discusses the testing of the distribution of the duration of symptoms of drug 1 and drug 2 for malaria patients. It includes histograms, confidence interval estimates, and hypothesis testing using t-test.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
Title: Assignment Name: Student Name: Course Name and Number: Professor: Date:
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
Question 1 The histograms above were used to test the distribution of the duration of the symptoms of drug 1. 0.1.2.3.4 Density 1213141516 drug 1_duration The histogram above indicated that the duration of malaria symptoms for patients under drug 1 was normally distributed. This was clearly indicated by the normal curve in the histogram. 0.1.2.3.4.5 Density 89101112 drug 2_duration
The histogram above indicated that the duration of malaria symptoms for patients under drug 2 was normally distributed. However, it was positively skewed as the normal curve indicated. Since both the duration of malaria symptoms of drug1 and drug2 this meant that their confidence interval could be estimated using the standard normal distribution (Selbæk and Engedal, 2012). The following table represents the mean and the 95% corresponding confidence interval. MeanLower 95% confidence interval Upper 95% confidence interval 13.913.514.4 The above table represents the 95% confidence interval estimates for the mean duration of the symptoms of drug 1. MeanLower 95% confidence interval Upper 95% confidence interval 10.19.710.4 The above table represents the 95% confidence interval estimate forthe mean duration of the symptoms of drug2. Question 2 The confidence interval has the interpretation that the probability that the true mean of the duration of symptoms of drug1 and drug2 will belong in the interval, there is 95% certainty (Lee, 2016).
Question 3 Since the number of observations was less than thirty (i.e. n<30) an independent sample t-test was used to compare whether there was a difference in the mean duration of drug1 and drug2. This is because the duration of drug 1 and drug 2 do not depend on each other and thereforethey are independent. The following hypothesis was formulated: H0: there is no difference in the mean duration of the two drugs Versus H1: there is a difference in the mean duration of the two drugs. The test was carried out at 5% level of significance. The T statistics was used to test the hypothesis above, and below is the output of the test. Two-sample t test with equal variances VariableObsMeanStd. Err.Std. Dev.[95% Conf. Interval] drug1_~n2313.9.21.013.514.4 drug2_~n2310.0.2.99.710.4 combined4612.0.32.2711.312.6 diff3.9.33.34.4
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
diff = mean(drug1_duration) - mean(drug2_duration)t = 13.8 Ho: diff = 0degreesof freedom =44 Ha: diff < 0Ha: diff != 0Ha: diff > 0 Pr(T < t) = 1.0Pr(T > t) = 0.0Pr(T > t) = 0. From the output, the test had a p-value of 0.0. Since the p-value was less than 5% level of significance this lead to the rejection of the null hypothesis (H0). This lead to the conclusion that there is a difference in the mean duration of the two drugs. Question 4 The following table represents, the mean of the cost before and the mean of the cost after and their corresponding confidence interval. VariableObsMeanStd.ErrUpper 95% confidence interval Lower 95% confidence interval Before22038600.63617.531470.945730.2 after22013302.31053.811225.515379.1 The mean of the cost before indicated that most of the cost was around 38600.57 while most of the cost after was around 13302.3. This implied that there was an average decrease in the cost after the intervention. The 95% confidence interval for the mean of the cost after was [31470.98,
45730.17].The confidence interval indicated that there was 95% certainty that the true mean of the cost before would lie within the interval. The 95% confidence interval for the mean of the cost after was [11225.46, 15379.14]. The confidence interval indicated that there was 95% certainty that the true mean of the cost before would lie within the interval (Hopkins, 2017). Testing the null hypothesis that there was no need for intervention (the difference before and after intervention of a new drug is zero) the 95% confidence interval was used to make the decision. Since the null value was not included in the confidence interval (i.e. the difference before and after intervention is zero) the null hypothesis was rejected and thus the conclusion was the intervention of new drug changed the average hospitalization cost. The following hypothesis was used to investigate whether there was a need for intervention. H0: intervention was insignificant Versus H1: intervention was significant. Since the null value was not included in the confidence interval (i.e. μ=0) the null hypothesis was rejected. Therefore, the intervention of the new drug was significant. Question 5 The following output represents the proportion of those who were vaccinated and those who were not vaccinated. VaccinationProportionStd.ErrLower 95% confidence interval Upper 95% confidence interval
Received free vaccination 0.510.020.480.5 The output indicated that the proportion of children who received free vaccination was 0.51. The 95% confidence interval for the proportion of children who were vaccinated was [0.48, 0.54]. The probability distribution used is a normal distribution. This is because the proportions are used like sample estimates of the means that follows a normal distribution (Morey et al, 2016). References Hopkins, W.G., 2017. A Spreadsheet for Deriving a Confidence Interval, Mechanistic Inference and Clinical Inference from a P Value.Sportscience,21. Lee, D.K., 2016. Alternatives to P value: confidence interval and effect size.Korean journal of anesthesiology,69(6), p.555. Morey, R.D., Hoekstra, R., Rouder, J.N., Lee, M.D. and Wagenmakers, E.J., 2016. The fallacy of placing confidence in confidence intervals.Psychonomic bulletin & review,23(1), pp.103- 123. Selbæk, G. and Engedal, K., 2012. Stability of the factor structure of the Neuropsychiatric Inventory in a 31-month follow-up study of a large sample of nursing-home patients with dementia.International Psychogeriatrics,24(1), pp.62-73.