Answer:
4
Step-by-step explanation:
The chi-squared test tests whether distribution of a population of something (such as people, traits etc) into categories deviates significantly from expected values.
The degrees of freedom represents the number of independent ways by which a system can change. The degree of freedom is always the number of categories being analyzed minus 1.
Therefore, the degrees of freedom in this example is 5-1 = 4