Lecture 24: Control Flow in Python - Loops and FunctionsIn nearly every programming language, every program runs from top-to-bottom, one line at a time. In addition to running from top-to-bottom, there are three control flow commands in Python that allows us to control the flow of a Python program.
Lecture 23: Control Flow in Python - Conditionals and LoopsIn nearly every programming language, every program runs from top-to-bottom, one line at a time. In addition to running from top-to-bottom, there are three control flow commands in Python that allows us to control the flow of a Python program.
Lecture 21: Binary Event SimulationAs we work towards simulating events using Python, we need to first develop an understanding of different types of events to simulate. The first type of events are events with exactly two outcomes, or binary outcome events.
Lecture 20: SimulationSimulation is an imitation of a real-world event within a computer program. We can use millions of simulations and observe the distribution of outcomes to help us understand the answer to a problem that may be difficult to model mathematically.
Lecture 12: Center and SpreadParameters are numerical facts about the population. In this lecture, we will look at parameters such as the average (µ) and standard deviation (σ) of a list of numbers. Later, we will start talking about statistics. Statistics are estimates of parameters computed from a sample.
Lecture 4: Observational Studies & Simpson’s Paradox
For years observational studies have shown that people who carry lighters are more likely to get lung cancer. However, this does not mean that carrying lighters causes you to get cancer. Smoking is an obvious confounder! If we weren’t sure about this, how can we determine whether it’s the lighters or the confounders or (maybe some combination of both) that is causing the lung cancer?
Lecture: Ideal Experimental Design
Does the death penalty have a deterrent effect? Is chocolate good for you? What causes breast cancer? All of these questions attempt to assign a cause to an effect. A careful examination of data can help shed light on questions like these.