Use the smartphone data. Test if the phone type ("Phone Type") and beliefs about the impact of social media ("Impact of SocNetworking" ) are related or not. Use R to find the test statistic.
**Answer is 8.82**
Phone Type | Impact of SocNetworking |
iPhone | worse |
Android smartphone | better |
Android smartphone | better |
iPhone | better |
iPhone | worse |
iPhone | no impact |
Android smartphone | better |
iPhone | no impact |
iPhone | no impact |
iPhone | better |
Android smartphone | no impact |
Android smartphone | better |
iPhone | better |
Android smartphone | worse |
Android smartphone | no impact |
Android smartphone | better |
Android smartphone | better |
iPhone | better |
Android smartphone | no impact |
iPhone | better |
Android smartphone | worse |
Android smartphone | worse |
iPhone | better |
Android smartphone | no impact |
iPhone | no impact |
iPhone | better |
Android smartphone | no impact |
iPhone | better |
iPhone | better |
iPhone | no impact |
Android smartphone | better |
Android smartphone | worse |
iPhone | better |
Android smartphone | worse |
iPhone | better |
Android smartphone | better |
Android smartphone | better |
Android smartphone | better |
Android smartphone | no impact |
Android smartphone | worse |
Android smartphone | worse |
Android smartphone | better |
iPhone | better |
iPhone | better |
iPhone | better |
iPhone | worse |
Android smartphone | better |
Android smartphone | no impact |
iPhone | better |
iPhone | better |
iPhone | worse |
iPhone | better |
iPhone | better |
iPhone | better |
iPhone | better |
Android smartphone | worse |
iPhone | no impact |
iPhone | better |
Android smartphone | no impact |
iPhone | better |
iPhone | better |
Android smartphone | worse |
iPhone | better |
iPhone | better |
Android smartphone | worse |
iPhone | better |
iPhone | no impact |
Android smartphone | no impact |
iPhone | better |
Android smartphone | better |
iPhone | better |
iPhone | no impact |
iPhone | no impact |
Android smartphone | worse |
iPhone | better |
iPhone | better |
**Answer is 8.82**
Use the following code to do the chi-square test in R
getwd() #to figure out your file directory and place the data file in csv format
phone <- read.csv("phone.csv") #reading the
data into r from the default directory
head(phone) # Top 5 data rows of data just to check if you have imported correctly
better no impact worse
Android smartphone 13 9 11
iPhone 30 9 4
table(phone$Phone.Type,
phone$Impact.of.SocNetworking)
chisq.test(phone$Phone.Type, phone$Impact.of.SocNetworking)
Output :
Pearson's Chi-squared test
X-squared = 8.8246, df = 2, p-value = 0.01213
The chi-squared that we get is 8.8246.
We get a p-Value less than the significance level of 0.05, we will have to reject the null hypothesis.
Hence, Phone type and Impact of Social Networking are independent
Get Answers For Free
Most questions answered within 1 hours.