Learn about counts and proportions; tables; stratified tables; unstacking DataFrames; dropping columns; and Simpson's paradox.
- [Instructor] Moving on to categorical variables.…How do we describe variation in those?…Using tables, of course.…So, leaving gapminder aside for a moment,…we will use the Whickham data set,…this cast by David Kaplan,…in his excellent textbook, Statistical Modeling.…Then we import packages and then the data set.…
The table records interviews with women…in Whickham, England, in 1973 who were asked…if they were smokers.…The interviews were followed up 20 years later,…when it was recorded if the woman were still alive.…The categorical values in this case smoker and outcome,…are both binary, yes or no.…We can tally up the explanatory smoker,…and the response outcome variables separately.…
We use the method value counts and enclosing…the results in a data frame creates a prettier output.…Doing so doesn't tell us much other than…both pairs of groups are represented…fairly well in the table.…Smokers and non smokers, women who survived for 20 years…and those who didn't.…If you want to see the values as fractions of the total…
- Installing and setting up Python
- Importing and cleaning data
- Visualizing data
- Describing distributions and categorical variables
- Using basic statistical inference and modeling techniques
- Bayesian inference
Skill Level Intermediate
R Statistics Essential Trainingwith Barton Poulson5h 59m Intermediate
SPSS Statistics Essential Trainingwith Barton Poulson4h 57m Beginner
1. Installation and Setup
2. Importing and Cleaning Data
3. Visualizing and Describing Data
4. Introduction to Statistical Inference
5. Introduction to Statistical Modeling
Next steps1m 55s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.