Question

In: Math

In R code please: Test the hypothesis whether the students smoking habit (Smoke) is independent of...

In R code please: Test the hypothesis whether the students smoking habit (Smoke) is independent of their exercise level (Exer) in dataset survey (MASS package) at 0.05 significance level.

(Please include how to download the MASS package. Thanks.)

Solutions

Expert Solution


Related Solutions

Develop a null and alternative hypothesis for a test of whether or not there is a...
Develop a null and alternative hypothesis for a test of whether or not there is a statistically significant relationship between the variables and find the descriptive statistics on the three relevant variables in the table. Highlight the means, standard deviations, and observations. (IN EXCEL PLEASE) TABLE C9-1: House & Holmes Appraisal Values by Appraised Home in $000s + Total Homes on Market Home House Appraisal Holmes Appraisal Total Homes on Market 1 235 228 161 2 210 205 179 3...
What is a hypothesis and why might a hypothesis test be useful in deciding whether to...
What is a hypothesis and why might a hypothesis test be useful in deciding whether to launch a new product or not? Give a business example to support the reasoning.
 Complete a hypothesis test involving your independent variable. Test the claim that the mean of...
 Complete a hypothesis test involving your independent variable. Test the claim that the mean of your independent variable is different then you guess (seethe “Set-Up” section of your project for your guess), using  = 0.05. Note: Because Minitab is using the same screen to perform both C.I. and H.T., Minitab is asking you to set (1-), the level of confidence and not  the level of significance of the test. If you want to perform a test at...
Suppose it is desired to test the hypothesis that the mean score of students on a...
Suppose it is desired to test the hypothesis that the mean score of students on a national examination is 500 against the alternative hypothesis that it is less than 500. A random sample of 15 students is taken from the population and produces a sample mean score of 475 and a sample standard deviation of 35. Assume the population of test scores is normally distributed. State the decision rule, the test statistic, and your decision.
Suppose it is desired to test the hypothesis that the mean score of students on a...
Suppose it is desired to test the hypothesis that the mean score of students on a national examination is 500 against the alternative hypothesis that it is less than 500. A random sample of 15 students is taken from the population and produces a sample mean score of 475 and a sample standard deviation of 35. Assume the population of test scores is normally distributed. State the decision rule, the test statistic, and your decision.
To test whether my friend’s fish Googly had psychic powers, I wrote R code to display...
To test whether my friend’s fish Googly had psychic powers, I wrote R code to display two windows. I entered either “Left” or “Right” depending on which way Googly was facing. Then the random number generator in R selected either the left or the right window, with probability 0.5 for each, in which to display a star. Let p be the probability Googly guesses correctly on a given trial (assume this is constant.) In 80 trials, Googly correctly guessed the...
a. Develop a null and alternative hypothesis for a test of whether or not the mean...
a. Develop a null and alternative hypothesis for a test of whether or not the mean of the data representing wives’ satisfaction scores and husbands’ satisfaction scores are statistically different. Find descriptive statistics on the three relevant variables in the table. Highlight the means, standard deviations, and observations. TABLE C9-2: Wife and Husband Feedback Scores on 1-7 Scale + Same Day or Not Appraisal Survey Wife's Score Husband's Score Same Day 1 4 5 Y 2 3 2 Y 3...
1. Use R Studio: Include R Code A survey is taken of 250 students, and a...
1. Use R Studio: Include R Code A survey is taken of 250 students, and a phat of 0.48 is found. The same survey is repeated with 1000 students, and the same phat value is found. Compare the two 95% confidence intervals. What is the relationship between them? Is the margin of error for the second one four times smaller? If not, how much smaller is it?
True or False? A hypothesis test is conducted at to test whether the population correlation coefficient...
True or False? A hypothesis test is conducted at to test whether the population correlation coefficient is zero. If the sample size is 25 and the sample correlation coefficient is 0.6, then the critical values of the student t that define the upper and lower tail rejection areas are 2.069 and -2.069, respectively.
Use the traditional method to test the given hypothesis. Assume that the samples are independent and...
Use the traditional method to test the given hypothesis. Assume that the samples are independent and that they have been randomly selected Use the given sample data to test the claim that p 1 > p 2. Use a significance level of 0.01. ​ n1 = 85 n2 = 90 x1 = 38 x2 = 23
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT