Question

In: Statistics and Probability

Based upon the appropriate test, is there a difference in the frequency of Vomit2 by Head_in?...

Based upon the appropriate test, is there a difference in the frequency of Vomit2 by Head_in? Yes or No, and explain why you indicated yes or no.

> vomit2_headintable <- table(vomit2, head_in)
> vomit2_headintable
      head_in
vomit2   0   1
     0 305 639
     1   1  10

Solutions

Expert Solution

You need to perform a chi square test of independence with following hypothesis -

Null Hypothesis - H0: The variables 'vomit2' and 'head_in' are independent.

Alternate Hypothesis - H1: The variables 'vomit2' and 'head_in' are not independent.

Significance level = = 0.05

You need to run following command in R to get the Chi-Square test output -

chisq.test(vomit2_headintable)

This gives following output -

Pearson's Chi-squared test with Yates' continuity correction data: data X-squared = 1.7313, df = 1, p-value = 0.1883 
Warning message:
In chisq.test(data) : Chi-squared approximation may be incorrect

If you want the output without the continuity correction, then use -

chisq.test(vomit2_headintable, correction = FALSE)

This gives following output -

Pearson's Chi-squared test data: data X-squared = 2.692, df = 1, p-value = 0.1009 
Warning message:
In chisq.test(data, correct = FALSE) :
  Chi-squared approximation may be incorrect

As the p-value is greater than the significance level of 0.05 in both the cases, so we can easily say that we fail to reject the null hypothesis and thus, there isn't enough evidence in the data to support the claim that the two variables 'vomit2' and 'head_in' are not independent.

So, we can say that the two variables are independent.

So, we can say that there is no difference in frequency of vomit2 by head_in.

__________________________________________________


Related Solutions

outline two conditions upon which Difference-in-Difference (DHD) technique is an appropriate method to obtain an appropriate...
outline two conditions upon which Difference-in-Difference (DHD) technique is an appropriate method to obtain an appropriate counterfactual to estimate a casual effect.
Which is the most regressive, based upon the difference in effective rates between the lowest and...
Which is the most regressive, based upon the difference in effective rates between the lowest and highest family income quintiles?
For the following scenarios calculate the appropriate test statistic and make a decision based on the...
For the following scenarios calculate the appropriate test statistic and make a decision based on the provided decision rule. (Steps 5 & 6 of the six step hypothesis test.) Be sure to explain what your decision means in the context of the problem. a. The US Department of Transportation estimates that 18% of Americans carpool. Does that imply that 1% of all cars will have two or more occupants? A sample of 600 cars travelling southbound on the New Jersey...
For the following scenarios calculate the appropriate test statistic and make a decision based on the...
For the following scenarios calculate the appropriate test statistic and make a decision based on the provided decision rule. Be sure to explain what your decision means in the context of the problem. a. The owner of a heating and air company would like to know whether there is a difference in the mean number of service calls made per day by two employees. To test this he conducts a hypothesis test at the .05 significance level with the following...
What statistical test is most appropriate if you want to examine whether there is a difference...
What statistical test is most appropriate if you want to examine whether there is a difference in graduation rates (percentages) between public and private high schools in your state of residence? Assume the data meets the assumptions for a parametric test.
a. State the difference between personal frequency and excitation frequency b. State the difference in angular...
a. State the difference between personal frequency and excitation frequency b. State the difference in angular frequency and linear frequency c. State the difference between transient response and steady state response d. Mention the different meanings of eigenvalue and eigenvector in the vibration equation e. Mention the difference between viscous and silencer d
1. Explain the difference between Insider Trading based upon a tipper/tippee theory and a misappropriation theory...
1. Explain the difference between Insider Trading based upon a tipper/tippee theory and a misappropriation theory and give on example of each? 2. Explain the legal concept of a bailment and give one example of a bailment using proper terminology
Method A: Based on the frequency of a simple harmonic oscillator. The angular frequency of a...
Method A: Based on the frequency of a simple harmonic oscillator. The angular frequency of a mass on a spring is given by ω=(k/m)1/2ω=(k/m)1/2 where m is the mass and k is the spring constant. The period of a harmonic oscillator is T=2π/ωT=2π/ω . If you do a little math, you can get a formula for the spring constant in terms of the mass and the period. a) Design a procedure to measure the spring constant based on Method A...
Example of appropriate t test
Example of appropriate t test
Which of the following measures is appropriate for a risk that has a low frequency of...
Which of the following measures is appropriate for a risk that has a low frequency of occurrence and a highseverity Avoid Risk Transfer/Share risk Reduce risk Retain risk
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT