Question

In: Statistics and Probability

A survey of 175 state representatives is conducted to see whether their opinions on a bill...

A survey of 175 state representatives is conducted to see whether their opinions on a bill related to their party affiliation. The following data are obtained.

                        Opinion

             

             Party Approve Disapprove No opinion

            Republican 30 15 10

            Democrat 40 20 15

           Independent 10 15 20

a). Input the data into R.

b). Use R to get a barplot representing the percentage of three parties’ opinion.

c). Conduct Chi-Square test to see whether the data suggest that the opinions are related to party affiliations.

d). Make your decision at 5% significance level.

Applied stats 2 r code questions

Solutions

Expert Solution

The R output is:

The R code is:

x <- matrix(c(30,40,10,15,20,15,10,15,20),nrow = 3)
barplot(x)
chisq.test(x)

The barplot is:

The hypothesis being tested is:

H0: The opinions are not related to party affiliations

Ha: The opinions are related to party affiliations

The p-value is 0.002871.

Since the p-value (0.002871) is less than the significance level (0.05), we can reject the null hypothesis.

Therefore, we can conclude that the opinions are related to party affiliations.

Please give me a thumbs-up if this helps you out. Thank you!


Related Solutions

In a 2008​ survey, people were asked their opinions on astrology​ - whether it was very​...
In a 2008​ survey, people were asked their opinions on astrology​ - whether it was very​ scientific, somewhat​ scientific, or not at all scientific. Of 1436 who​ responded,71 said astrology was very scientific. a. Find the proportion of people in the survey who believe astrology is very scientific. Answer ______ (Round to four decimal places as needed) b. Find a​ 95% confidence interval for the population proportion with this belief. Answer (____, and _____) c. Suppose a TV news anchor...
In the 2008 General Society Survey, people were asked their opinions on astrology – whether it...
In the 2008 General Society Survey, people were asked their opinions on astrology – whether it was very scientific, somewhat scientific, or not at all scientific. Of 1438 who responded, 84 said astrology was very scientific. Find a 99% confidence interval for the population proportion of all people with this belief. Suppose a TV news anchor said that 5% of people in the general population think astrology is very scientific. Would you say that it is plausible? Explain your answer.
n a 2008​ survey, people were asked their opinions on astrology​ - whether it was very​...
n a 2008​ survey, people were asked their opinions on astrology​ - whether it was very​ scientific, somewhat​ scientific, or not at all scientific. Of 1438 who​ responded, 76 said astrology was very scientific. a. Find the proportion of people in the survey who believe astrology is very scientific. b. Find a​ 95% confidence interval for the population proportion with this belief. c. Suppose a TV news anchor said that​ 5% of people in the general population think astrology is...
(a) A soda maker conducted a survey in 3 schools to see if children liked their...
(a) A soda maker conducted a survey in 3 schools to see if children liked their brand over a generic soda. Results are in table School Soda maker Generic brand School 1 232 168 School 2 260 240 School 3 197 203 Using .05 level find out if the true amount of children liked the soda makers soda over the generic kind.
A survey was conducted to determine whether a household's income was associated with the number of...
A survey was conducted to determine whether a household's income was associated with the number of pets kept in that household. The table below shows the number of households, sorted by income level, that kept no pets, one pet or two or more pets:a) Calculate the proportion of total households that were high-income households and also kept no pets. Give your answer as a decimal to 3 decimal places. Proportion = b) Calculate the proportion of low income households that kept...
A survey was conducted to determine whether the gender of voters is associated with the gender...
A survey was conducted to determine whether the gender of voters is associated with the gender of their choice of political candidates in an election where a male was running against a female. A total of 40 women and 40 men voters were surveyed. 30 of the women voters chose the female candidate, and 10 chose the man. 24 of the male voters chose the male candidate, and 16 chose the female. 1. Construct an appropriate 2x2 contingency table (3...
A survey was conducted to determine whether the gender of voters is associated with the gender...
A survey was conducted to determine whether the gender of voters is associated with the gender of their choice of political candidates in an election where a male was running against a female. A total of 40 women and 40 men voters were surveyed. 30 of the women voters chose the female candidate, and 10 chose the man. 24 of the male voters chose the male candidate, and 16 chose the female. With the computer or by hand: a)construct an...
A soda ("7up") maker conducted a survey in 3 schools to see if children liked their...
A soda ("7up") maker conducted a survey in 3 schools to see if children liked their brand over another generic soda. The Results are in table below... School 7 up Generic brand School 1 232 168 School 2 260 240 School 3 197 203 Using a 5% significance level and based on the sample data above find out if the children liked the "7 up" over the generic kind.
A survey was conducted to determine, on average, how long patients have to wait to see...
A survey was conducted to determine, on average, how long patients have to wait to see a doctor. The number of patients that ended up waiting up to 2 hours to see a doctor, recorded in 10-minute intervals, is given in the table below. a) Define and name the random variable associated with this data. b) Find the probability distribution for the random variable and draw the corresponding histogram. Express all probabilities as a fraction in lowest terms. c) What...
An energy bill on the floor of the House of Representatives is proposed by a congressperson...
An energy bill on the floor of the House of Representatives is proposed by a congressperson from Nebraska that would require all cars to use fuel that contains at least 15% ethanol, derived from corn. A northeastern state representative raises the concerns that corn is best for cattle, food, and exports, and that not all cars of today are prepared to use such a fuel. Respond how you would vote on this issue and the reasoning behind your vote in...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT