Please provide steps to solve the following question.
A study is designed to investigate whether there is a difference in response to various treatments I patients with chronic pain. The data are shown below. Are symptoms independent of treatment? Conduct a chi square test at a 5% level of significance.
Df = ?
Critical value = ?
Symptoms worsened // No effect // Symptoms improved // Total
Treatment 1 22 14 14 50
Treatment 2 14 15 21 50
Treatment 3 9 12 29 50
The solution gived detailed steps on performing a chi-square test for independence of three groups. All formula and calcuations are shown and explained.