Mann-Whitney U Test with SciPy
📖 Scenario: You are a data analyst working with two groups of patients. You want to check if the two groups have different distributions of recovery times without assuming the data follows a normal distribution.
🎯 Goal: Perform the Mann-Whitney U test using SciPy to compare recovery times between two patient groups and interpret the test result.
📋 What You'll Learn
Create two lists of recovery times for two patient groups
Set a significance level variable
Use SciPy's mannwhitneyu function to perform the test
Print the U statistic and p-value
💡 Why This Matters
🌍 Real World
The Mann-Whitney U test is used in medical research, social sciences, and other fields to compare two groups when data is not normally distributed.
💼 Career
Data analysts and scientists use this test to make decisions about differences between groups without relying on assumptions of normality.
Progress0 / 4 steps