Analyzing Categorical Data(KA/SAP/U1AnalygingCategoricalData)
Unit 1: Analyzing Categorical Data
Analyzing One Categorical Variable
Categorical variables represent types or categories, such as colors, brands, or yes/no answers. To analyze them, we count how many times each category appears (frequency), and visualize the results using bar charts or pie charts.
Bar Chart Example: Favorite Fruit
Pie Chart Example: Favorite Fruit
Quiz: Analyzing One Categorical Variable
Two-way Tables
Two-way tables (contingency tables) show the relationship between two categorical variables. Each cell shows the count for a combination of categories.
Two-way Table Example: Gender vs. Pet Ownership
Quiz: Two-way Tables
Distributions in Two-way Tables
We can analyze two-way tables by looking at marginal distributions (totals for each category), joint distributions (each cell), and conditional distributions (distribution of one variable for a fixed value of the other).
Comments
Post a Comment