Question

In: Statistics and Probability

1a. Construct a 99% confidence interval for proportion of obese people in the population the above...

1a. Construct a 99% confidence interval for proportion of obese people in the population the above sample was taken. (BMI>29.5 is counted as ob

1.b Is there any evidence to show there is difference between proportion of smokers between male and female? Apply appropriate test with alpha=0.05.

USE R AND SHOW CODES

Male=1,   Female=0

Smoker=1, Nonsmoker=0


DATA

sex age currentSmoker BMI
1 39 0 26.97
0 46 0 28.73
1 48 1 25.34
0 61 1 28.58
0 46 1 23.1
0 43 0 30.3
0 63 0 33.11
0 45 1 21.68
1 52 0 26.36
1 43 1 23.61
0 50 0 22.91
0 43 0 27.64
1 46 1 26.31
0 41 0 31.31
0 39 1 22.35

ONLY ANSWER 1.b not 1.a & show how u got x values for p1 & p2

Solutions

Expert Solution

Result:

1.b Is there any evidence to show there is difference between proportion of smokers between male and female? Apply appropriate test with alpha=0.05.

R code:

sex <- c(1,0,1,0,0,0,0,0,1,1,0,0,1,0,0)

smoker <- c(0,0,1,1,1,0,0,1,0,1,0,0,1,0,1)

mydata <- data.frame(sex,smoker)

# to get frequencies

freq <-table(mydata$sex, mydata$smoker)

freq

R output:

freq

  

    0 1

0 6 4

1 2 3

Frequencies: out of 5 males, 3 are smokers. out of 10 females, 4 are smokers.

R code:

#proportion test

prop.test(c(3,4),c(5,10),correct=FALSE)

R output:

        2-sample test for equality of proportions without continuity

        correction

data: c(3, 4) out of c(5, 10)

X-squared = 0.53571, df = 1, p-value = 0.4642

alternative hypothesis: two.sided

95 percent confidence interval:

-0.3259135 0.7259135

sample estimates:

prop 1 prop 2

   0.6    0.4

Calculated chi square = 0.53571, P=0.4642 which is > 0.05 level of significance. Ho is not rejected.

There is no evidence to show that there is difference between proportion of smokers between male and female.

   


Related Solutions

Construct a 99​% confidence interval to estimate the population proportion with a sample proportion equal to...
Construct a 99​% confidence interval to estimate the population proportion with a sample proportion equal to 0.90 and a sample size equal to 250. ------A 99% confidence interval estimates that the population proportion is between a lower limit of ___ and an upper limit of ___. ????????
Construct a 99​% confidence interval to estimate the population proportion with a sample proportion equal to...
Construct a 99​% confidence interval to estimate the population proportion with a sample proportion equal to 0.50 and a sample size equal to 200. LOADING... Click the icon to view a portion of the Cumulative Probabilities for the Standard Normal Distribution table. A 99​% confidence interval estimates that the population proportion is between a lower limit of nothing and an upper limit of nothing. ​(Round to three decimal places as​ needed.)
Construct a 99% confidence interval on the population variance and the population standard deviation for the...
Construct a 99% confidence interval on the population variance and the population standard deviation for the data listed below: 91.8, 112.1, 138.3, 90.6, 136.6, 113.6, 101.5, 123.6, 81.4, 119.2, 111.4, 89.4, 110.5, 80.5, 94.8, 117.0, 105.7, 146.6, 138.6, 99.9, 106.6
Construct a 99​% confidence interval of the population proportion using the given information. x=120, n=200 The...
Construct a 99​% confidence interval of the population proportion using the given information. x=120, n=200 The lower bound is ----- The upper bound is ------ ​(Round to three decimal places as​ needed.)
Calculate a 99% confidence interval for population proportion when the population proportion is 0.826 and n=92....
Calculate a 99% confidence interval for population proportion when the population proportion is 0.826 and n=92. Thank you!
Assuming that the population is normally​ distributed, construct a 99% confidence interval for the population​ mean,...
Assuming that the population is normally​ distributed, construct a 99% confidence interval for the population​ mean, based on the following sample size of n=7.​ 1, 2,​ 3,4, 5, 6​,and 30   Change the number 30 to 7 and recalculate the confidence interval. Using these​ results, describe the effect of an outlier​ (that is, an extreme​ value) on the confidence interval. Find a 99 % confidence interval for the population mean. ​(Round to two decimal places as​ needed.) Change the number 30...
assuming that the population is normally distributed, construct a 99% confidence interval for the population mean,...
assuming that the population is normally distributed, construct a 99% confidence interval for the population mean, based on the following sample size n=6. 1,2,3,4,5 and 29. in the given data, replace the value 29 with 6 and racalculate the confidence interval. using these results, describe the effect of an outlier on the condidence interval, in general find a 99% confidence interval for the population mean, using the formula.
Assuming that the population is normally​ distributed, construct a 99​% confidence interval for the population mean...
Assuming that the population is normally​ distributed, construct a 99​% confidence interval for the population mean for each of the samples below. Explain why these two samples produce different confidence intervals even though they have the same mean and range. Sample​ A: 1   4   4   4   5   5   5   8 Sample B: 1   2   3   4   5   6   7   8 Construct a 99​% confidence interval for the population mean for sample A. less than or equalsmuless than or equals Type...
You are to construct a 99% confidence interval of a normally distributed population; the population standard...
You are to construct a 99% confidence interval of a normally distributed population; the population standard deviation is known to be 25. A random sample of size 28 is taken; (i) the sample mean is found to 76 and (ii) the sample standard deviation was found to be 30. Construct the Confidence interval. Clearly name the standard distribution you use
Assuming that the population is normally​ distributed, construct a 99% confidence interval for the population mean...
Assuming that the population is normally​ distributed, construct a 99% confidence interval for the population mean for each of the samples below. Explain why these two samples produce different confidence intervals even though they have the same mean and range. SAMPLE A: 1 1 4 4 5 5 8 8 SAMPLE B: 1 2 3 4 5 6 7 8 1.Construct a 99% confidence interval for the population mean for sample A. ( type integers or decimals rounded to two...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT