Bar Charts for Categorical Variables

Recall the definition of Categorical Variables.

Consider a categorical variable , with sample , where there are a total of C possible categories for . Assume that the categories are disjoint and exhaustive.

The sample count for category is the number of observations in :

The sample proportion for categorical variable associated with category is the fraction or percentage of observations in :

Note: The sum of sample proportions is always 1.

Histograms for Discrete and Continuous Variables

Recall the definitions for Discrete Variables and Continuous Variables.

With histograms, we can visualize the sample distribution of variables.

Measures of Location

The sample mean of observations denoted is given by:

The sample median of observations is denoted is the value for which half the observations are below and half are above.