辅导data留学生、讲解newspaper、辅导Python/C++程序设计
- 首页 >> Python编程Homework
(due December 27)
1.Dataset “students” shows how students from four countries (CA, NZ, UK USA) travel to school. Can you conclude from the data that there is a difference in the way students travel to school among the four countries? Explain your findings.
2. Dataset “diet” shows results of a 6 week diet program (3 types) of the participants. Do the following:
Read the data into r (diet)
Add a new variable to the dataset as follows
> diet$loss = diet$pre.weight – diet$pos.weight
(pre.weight and pos.weight indicate weights of participants before and after the diet)
Analyze whether diet types made a difference in the weight loss.
2.Dataset “ads” shows the number of inquiries received for an advertisement placed in a local newspaper. The “day” variable refers to the day of the week and the “type” variable refers to the section of the paper the ad was placed. Do these conditions influence the number of inquiries? Explain.
Note) Copy the necessary results and figures on the word file and discuss your findings.