Run A Statistical Hypothesis Test
Describe the research question, the two groups being compared with their sample sizes, the outcome variable, and the significance level, and this prompt runs a complete hypothesis test end to end. - States the null and alternative hypotheses in plain language - Checks the chosen test's assumptions (normality, variance, independence) - Selects and justifies the right test, reporting the statistic, p-value - Reports a confidence interval alongside the p-value - Computes an effect size and comments on practical significance - Delivers the full Python/R workflow as code
I need to determine whether {research_question}. Context: - Dataset: {groups_description} - Sample sizes: Group A = {group_a_size}, Group B = {group_b_size} - Variable being compared: {outcome_variable} - Significance level: {significance_level} Carry out: 1. State the null and alternative hypotheses in everyday language 2. Verify the assumptions the chosen test requires (normality, equal variance, independence) 3. Choose and justify the right statistical test (t-test, Mann-Whitney, chi-square, ANOVA, etc.) 4. Run it and report the test statistic, p-value, and confidence interval 5. Compute an effect size (Cohen's d, odds ratio, or another suitable measure) 6. Explain the outcome in plain language: "There is/isn't sufficient evidence that..." 7. Comment on practical significance (is the effect large enough to matter, even if it's statistically significant?) Provide the Python/R code for the whole workflow, from loading the data to the conclusion.