R Tutorial: Introduction to Statistical Modeling in R

Danny Kaplan explains statistical modeling by comparing a T-test to a skateboard and a model to a helicopter, showing why models offer more flexibility. A model is a representation built for a purpose, whether it's a blueprint, doll, or equation informed by data.
Chapters
Hi, welcome to statistical Modeling. I'm Danny Kaplan, the author of this course. I'll be the instructor in these datacamp video segments, and I'll be behind the scenes in the interactive exercises that follow each video. Statistical modeling is one of the most important aspects of dealing with data. A statistical model is a kind of summary of data. The summary can be a way to encapsulate patterns in data. Some of these models are what's called machine learning. The summary can be a way to translate from existing observations into conclusions, for instance, classifying a sales prospect as strong or weak, or a wine as excellent or poor. Very often, models are used to untangle the many influences that can shape an outcome, quantifying how each influence contributes. And models are an essential part of the process for quantifying the strength of evidence for a conclusion provided by the available data. People who are new to statistical modeling often ask me, what's the difference between plain statistics and modeling? As you'll see, statistical modeling refers to a set of concepts and techniques that give you more power to analyze complex systems and situations than traditional methods such as the T test taught in introductory statistics. As you know, if you've had an introduction to statistics, a T test is one method for addressing a simple question. Are two groups different? The T test is kind of like a skateboard. There's nothing wrong with a skateboard, but it has very limited use. Statistical models, to run with the analogy, are like helicopters. They can get you from place to place, like a skateboard, but let you go much further and faster. And they're better at dealing with travel over rugged terrain, those situations where traditional techniques just won't get you where you need to be. True, sometimes skateboards are used in rough circumstances, but this often results in a painful and pointless conclusion. Okay, a statistical model is neither a skateboard or a helicopter. Those are just metaphors. So what is a model? My favorite definition, and certainly the most helpful one, is a model is a representation for a purpose. Representation means the model stands for something, often something or process. In the real world, the purpose is central. Without knowing what the model will be used for, you can hardly design an appropriate model. Here are a few everyday models. Each is a representation. The blueprint stands for building. The doll represents a child. The model airplane represents an aircraft. And each of these representations is useful for some purposes but not for others. The blueprint is useful for seeing how space can be subdivided or consolidated, but it is not useful for figuring out, say, how sound in the building will reverberate. The model airplane is useful for showing how the various parts of the plane engine, wings, tail are related, but it's not useful for safety testing. We build models because they are much more convenient than the real thing for carrying out the purpose for which the model is intended. It's infinitely easier to add a new wall in a blueprint than it is in a real building. A mathematical model is simply a model built from mathematical stuff numbers, model formulas, equations and so on. A statistical model is a special kind of mathematical model. It is informed by data and is often built to predict future events or to test out hypotheses about how the system being modeled actually works. In this course you'll learn how to design, train and use statistical models. This will of course involve data, but since a model is a representation for a purpose, it's important that you have always in mind what purpose your model is intended to serve so that you can build a model that does the job it's meant for.
More from Richie

#359 My Best Friend is AI with Valerie Tiberius, Professor of Philosophy at University of Minnesota

How AI Agents Will Work While You Sleep | Ruslan Salakhutdinov, Professor at Carnegie Mellon

#358 How AI Agents Will Work While You Sleep | Ruslan Salakhutdinov, Professor at Carnegie Mellon







