To find the relative frequency of undecided voters, we first need to determine the number of undecided voters.
The total number of voters surveyed is 5,000. According to the data:
- Voters for Candidate A: 1,200
- Voters for Candidate B: 3,000
The number of undecided voters can be calculated as follows:
\[ \text{Undecided voters} = \text{Total voters} - (\text{Voters for A} + \text{Voters for B}) \]
\[ \text{Undecided voters} = 5000 - (1200 + 3000) \]
\[ \text{Undecided voters} = 5000 - 4200 \]
\[ \text{Undecided voters} = 800 \]
Next, to find the relative frequency of undecided voters:
\[ \text{Relative frequency of undecided voters} = \frac{\text{Number of undecided voters}}{\text{Total number of voters}} \]
\[ \text{Relative frequency of undecided voters} = \frac{800}{5000} \]
\[ \text{Relative frequency of undecided voters} = 0.16 \]
So, the relative frequency of undecided voters is 0.16.