Download presentation

Presentation is loading. Please wait.

Published byEthan Patterson Modified over 3 years ago

1
BINF 702 Spring 2014 Practice Problems Practice Problems BINF 702 Practice Problems

2
Problem # 1 BINF 702 Spring 2014 Practice Problems

3
Problem # 1 Flow Chart Analysis Only one variable of interest? Yes One sample problem? No (Go to 1) Two-sample problem? Yes

4
BINF 702 Spring 2014 Practice Problems Problem # 1 Flowchart Analysis Underlying distribution normal or can the central- limit theorem be assumed to hold?? No Underlying distribution is binomial? Yes Are samples independent? Yes

5
Problem # 1 Flowchart Analysis Are all expected values greater than or equal to 5? Yes (go to 6) 2 x 2 contingency table? Yes (go to A) Use two-sample test for binomial proportion, or 2 x 2 contingency table methods if no confounding is present, or the Mantel-Haenszel test if confounding is present. BINF 702 Spring 2014 Practice Problems

6
Problem #1 Solution BINF 702 Spring 2014 Practice Problems

7
Problem # 1 Solution in R > prop.test(xx) 2-sample test for equality of proportions with continuity correction data: xx X-squared = 5.6489, df = 1, p-value = 0.01747 alternative hypothesis: two.sided 95 percent confidence interval: -0.38358985 -0.08699838 sample estimates: prop 1 prop 2 0.1000000 0.3352941

8
Problem # 2 BINF 702 Spring 2014 Practice Problems

9
Problem # 2 Flow Chart Analysis Only one variable of interest? Yes One sample problem? No (Go to 1) Two-sample problem? Yes

10
BINF 702 Spring 2014 Practice Problems Problem # 2 Flowchart Analysis Underlying distribution normal or can the central-limit theorem be assumed to hold?? No Underlying distribution is binomial? Yes Are samples independent? Yes

11
Problem # 2 Flowchart Analysis Are all expected values greater than or equal to 5? Yes (go to 6) 2 x 2 contingency table? No (go to A) 2 x k contingency table? Yes (go to B) BINF 702 Spring 2014 Practice Problems

12
Problem # 2 Flowchart Analysis Interested in trend over k binomial proportions? Yes Use chi-square test for trend, if n confounding is present, or the mantel Extension test if confounding is present.

13
Problem # 2 Solution BINF 702 Spring 2014 Practice Problems

14
Problem #2 in R > library(stats) > prop.trend.test(x = c(3,7,8,12), n = c(60,50,50,40)) Chi-squared Test for Trend in Proportions data: c(3, 7, 8, 12) out of c(60, 50, 50, 40), using scores: 1 2 3 4 X-squared = 10.9341, df = 1, p-value = 0.0009441

15
BINF 702 Spring 2014 Practice Problems Problem # 3

16
BINF 702 Spring 2014 Practice Problems Problem # 3 Flow Chart Analysis Only one variable of interest? Yes One sample problem? No (Go to 1) Two-sample problem? Yes

17
BINF 702 Spring 2014 Practice Problems Problem # 3 Flowchart Analysis Underlying distribution normal or can the central- limit theorem be assumed to hold?? Yes Inference concerning means? Yes (go to 3) Are samples independent? Yes

18
BINF 702 Spring 2014 Practice Problems Problem # 3 Flowchart Analysis Are variances of two samples significantly different? (Note – Should be tested using the F test) No Use two-sample t test with equal variances.

19
BINF 702 Spring 2014 Practice Problems Problem # 3 Solution

20
BINF 702 Spring 2014 Practice Problems Problem # 3 Solution in R > pt(q=8.94,df = 2198, lower.tail=FALSE) [1] 4.026324e-19

21
BINF 702 Spring 2014 Practice Problems Problem # 4

22
BINF 702 Spring 2014 Practice Problems Problem # 4 Solution

23
BINF 702 Spring 2014 Practice Problems Problem # 5a

24
BINF 702 Spring 2014 Practice Problems Problem # 5b

25
BINF 702 Spring 2014 Practice Problems Problem # 5c

26
BINF 702 Spring 2014 Practice Problems Problem #5c in R > 2 * pt(q=2.73, df = 19, lower.tail=FALSE) [1] 0.01329876

27
BINF 702 Spring 2014 Practice Problems Problem #6

28
BINF 702 Spring 2014 Practice Problems Problem #6a > 2 * pf(q=2.08, df1 = 24, df2 = 40,lower.tail=FALSE) [1] 0.03939543

29
BINF 702 Spring 2014 Practice Problems Problem #6b

30
BINF 702 Spring 2014 Practice Problems Problem # 6 Flow Chart Analysis Only one variable of interest? Yes One sample problem? No (Go to 1) Two-sample problem? Yes

31
BINF 702 Spring 2014 Practice Problems Problem # 6 Flowchart Analysis Underlying distribution normal or can the central- limit theorem be assumed to hold?? Yes Inference concerning means? Yes (go to 3) Are samples independent? Yes

32
BINF 702 Spring 2014 Practice Problems Problem # 6 Flowchart Analysis Are variances of two samples significantly different? (Note – Should be tested using the F test) Yes Use two-sample t test with unequal variances.

33
Problem #6c Perform the test and report a p-value. > 2 * pt(q=5.34, df = 99,lower.tail=FALSE) [1] 5.929004e-07 BINF 702 Spring 2014 Practice Problems

34
Problem # 7 BINF 702 Spring 2014 Practice Problems

35
Problem # 7a

36
BINF 702 Spring 2014 Practice Problems Problem # 7b

37
BINF 702 Spring 2014 Practice Problems Problem # 7c Which hypothesis test is appropriate here?

38
BINF 702 Spring 2014 Practice Problems Problem # 7 Flow Chart Analysis Only one variable of interest? Yes One sample problem? No (Go to 1) Two-sample problem? Yes

39
Problem # 7 Flowchart Analysis Underlying distribution normal or can the central- limit theorem be assumed to hold?? Yes Inference concerning means? Yes (go to 3) Are samples independent? No Use paired t test. BINF 702 Spring 2014 Practice Problems

40
Problem # 7d Conduct the hypothesis test and report a p-value.

41
BINF 702 Spring 2014 Practice Problems Problem # 7d in R x = c(142, 100, 112, 92, 104, 100, 108, 94, 104, 98) y = c(154, 106, 110, 100, 112, 100, 120, 90, 104, 114) t.test(x=x, y = y, paired=TRUE) Paired t-test data: x and y t = -2.6098, df = 9, p-value = 0.02828 alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval: -10.4541299 -0.7458701 sample estimates: mean of the differences -5.6

Similar presentations

OK

Comparing Two Means Ch. 13. Two-Sample t Interval for a Difference Between Two Means.

Comparing Two Means Ch. 13. Two-Sample t Interval for a Difference Between Two Means.

© 2018 SlidePlayer.com Inc.

All rights reserved.

To ensure the functioning of the site, we use **cookies**. We share information about your activities on the site with our partners and Google partners: social networks and companies engaged in advertising and web analytics. For more information, see the Privacy Policy and Google Privacy & Terms.
Your consent to our cookies if you continue to use this website.

Ads by Google

Ppt on social and religious diversity in india Ppt on aircraft emergencies videos Ppt on collection of data for class 11 Ppt on building information modeling Ppt on action words for class 1 Ppt on general knowledge quiz Safety ppt on working at height Ppt on line drawing algorithm in computer Ppt on energy in hindi Ppt on formal education vs informal education