In this question, I have to write a few lines

In this question, I have to write a few lines of code to do a chi_sq test comparing the proportion of overweight and cancer. 

The prof has already written the codes for answering half of the question, I am required to write a few lines of code to load the csv file on my PC desk top, select data from the cancer column and run the test to get a p-value. This value is used to assess the null hypothesis:that overweight and cancer are not associated.

Details of the codes were provided and the output data are shown in italics. Please review and let me know if you could help. thanks.

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

WhatsApp Chat with us on WhatsApp