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

CMPTR
3rd Edition
ISBN:9781337681872
Author:PINARD
Publisher:PINARD
Chapter6: Security And Privacy
Section: Chapter Questions
Problem 18QY
icon
Related questions
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 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

 
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Temporal Difference Learning
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage