Welcome to the interactive live demonstrations for PUBH 6310! 🎉
This page provides links to several live demos built with Marimo, an interactive Python notebook. These demos are designed to help you visualize and understand key statistical concepts covered in the course. To get started, simply click the link for the demo you wish to explore.
This demo explores the fundamentals of sampling. You’ll see firsthand how we draw samples from a larger population and why the method we use is so important. We’ll cover concepts like sampling bias and demonstrate why applying sampling weights and correct for sampling design is crucial for generating accurate estimates when dealing with complex survey designs.
Here, we dive into the relationship between two categorical variables. This demo will walk you through creating and interpreting contingency tables (cross-tabulations) and performing a Chi-squared (${\chi^2}$) test of independence. This is the perfect tool for answering questions like, “Is there a statistically significant association between a patient’s insurance type and their hospital admission status?”
This demonstration introduces logistic regression, a powerful technique used to model binary outcomes (e.g., yes/no, success/failure, admitted/not-admitted). You’ll learn how to fit a logistic regression model and, most importantly, how to interpret its output, including odds ratios (OR), to understand how different predictors affect an outcome.
This comprehensive demo covers how to analyze the relationship between two variables when at least one is continuous. We will explore two main scenarios:
This demo introduces linear regression, a powerful statistical method used for modeling the relationship between variables and making predictions. We will cover how to build, interpret, and validate regression models.