Question
Statistical Inference We simulated age_group1 and age_group2 using two different ranges. Clearly, in this simulated example, we are using two different distributions, and we know
Statistical Inference
We simulated age_group1 and age_group2 using two different ranges.
Clearly, in this simulated example, we are using two different distributions, and we know that their mean should be statistically different.
Importantly, we can safely assume that the data points are independent. Why? Because you have separately created age_group1 and age_group2.
Be sure to print out the test statistics & P-value.
Your task: Perform a Student's t-test to formally determine whether the arithmetic means of age_group1 and age_group2 are different. Report the test statistics and P-value.
You can use scipy or statsmodel libraries for this task. If you are comfortable with the math, you can also implement the test from scratch on your own. However, you cannot use any other libraries.
# YOUR CODE HERE
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started