1. Learn
  2. /
  3. Courses
  4. /
  5. Monte Carlo Simulations in Python

Connected

Exercise

Evaluating BMI and HDL outcomes

What is the difference in the predicted disease progression (the response y) for patients who are in both the top 10% of BMI and the top 25% of HDL compared to those in both the lowest 10% of BMI and the lowest 25% of HDL? Again, a simulation has already been performed for you: your task is to evaluate the simulation results in df_results to find an answer to this question!

The following libraries have been imported: pandas as pd, numpy as np, and scipy.stats as st.

Instructions

100 XP
  • Complete the mean outcome definitions by filtering the results for patients who are in the both top 10% of BMI and the top 25% of HDL and then for patients who are in both the lowest 10% of BMI and the lowest 25% of HDL, leveraging hdl_q25, hdl_q75, bmi_q10, bmi_q90, which are already defined for you.