A golf course has 18 holes. A guidebook provided to golfers includes useful information about each hole. The individuals in this data set are shown below.

\begin{tabular}{|c|c|c|c|}
\hline
\begin{tabular}{c}
Hole \\
Number
\end{tabular} & Yards & Bunkers & \begin{tabular}{c}
Difficulty \\
Level
\end{tabular} \\
\hline
1 & 312 & 2 & moderate \\
\hline
2 & 530 & 5 & moderate \\
\hline
3 & 147 & 1 & easy \\
\hline
4 & 350 & 0 & moderate \\
\hline
5 & 410 & 2 & hard \\
\hline
6 & 185 & 1 & moderate \\
\hline
\end{tabular}

Which of the variables in the data set is a categorical variable?

A. Hole number
B. Yards
C. Bunkers
D. Difficulty level



Answer :

To determine which of the variables in the given data set is a categorical variable, let's first understand the nature of each variable:

1. Hole Number: This represents the numerical label assigned to each hole. It is a numerical variable.
2. Yards: This indicates the length of each hole in yards. It is measured in numerical units and represents a numerical variable.
3. Bunkers: This shows the number of bunkers (sand traps) present on each hole. Since this is counted and measurable, it is also a numerical variable.
4. Difficulty Level: This describes the perceived difficulty of each hole and is expressed in qualitative terms like "easy," "moderate," and "hard." This type of data represents categories and is, therefore, a categorical variable.

Based on these descriptions, the categorical variable in the data set is the difficulty level.