ISTA 116 Hypothesis Testing: Binary Data

Size: px
Start display at page:

Download "ISTA 116 Hypothesis Testing: Binary Data"

Transcription

1 ISTA 116 Hypothesis Testing: Binary Data November 14, 2013

2 Types of Errors Example H 1 : Drug is better than a placebo H 0 : Drug no better than a placebo We reject H 0 if the data would be improbable on the assumption that H 0 is true.

3 Types of Errors Example H 1 : Drug is better than a placebo H 0 : Drug no better than a placebo We reject H 0 if the data would be improbable on the assumption that H 0 is true. But improbable things happen sometimes! This means that we will occasionally reject H 0 incorrectly!

4 Types of Errors Example H 1 : Drug is better than a placebo H 0 : Drug no better than a placebo We reject H 0 if the data would be improbable on the assumption that H 0 is true. But improbable things happen sometimes! This means that we will occasionally reject H 0 incorrectly! E.g., we conclude that the drug works when in fact it doesn t: reject H 0 by mistake.

5 Types of Errors Example H 1 : Drug is better than a placebo H 0 : Drug no better than a placebo We could prevent this from ever happening by never rejecting H 0

6 Types of Errors Example H 1 : Drug is better than a placebo H 0 : Drug no better than a placebo We could prevent this from ever happening by never rejecting H 0 But then we make it more likely that we make the opposite error (e.g., fail to discover valuable new drugs)

7 Types of Errors We can summarize the possibilities in a contingency table, where one dimension is whether H 0 or H 1 is actually correct (does the student actually know stuff?), and the other is whether or not H 0 is rejected (do we conclude that he knows stuff?). Action H 0 rejected H 0 not rejected Truth H 0 is false No Error (Hit) False Negative H 0 is true False Positive No Error Table: Possible outcomes of a null hypothesis significance test

8 Types of Errors False positives (H 0 incorrectly rejected and H 1 endorsed) and false negatives (H 0 is incorrectly retained and H 1 rejected) are called Type I Errors and Type II Errors, respectively. Action H 0 rejected H 0 not rejected Truth H 0 is false No Error (Hit) Type II Error H 0 is true Type I Error No Error Table: Possible outcomes of a null hypothesis significance test

9 Error Rates The Type I Error Rate is the probability that we make a Type I Error out of the times that H 0 is true. Action H 0 rejected H 0 not rejected Truth H 0 is false No Error (Hit) Type II Error H 0 is true Type I Error No Error Table: Possible outcomes of a null hypothesis significance test

10 Error Rates The Type I Error Rate is the probability that we make a Type I Error out of the times that H 0 is true. The Type II Error Rate is the probability that we make a Type II Error out of the times that H 0 is false. Action H 0 rejected H 0 not rejected Truth H 0 is false No Error (Hit) Type II Error H 0 is true Type I Error No Error Table: Possible outcomes of a null hypothesis significance test

11 Error Rates The Type I Error Rate is the probability that we make a Type I Error out of the times that H 0 is true. The Type II Error Rate is the probability that we make a Type II Error out of the times that H 0 is false. These are probabilities. Action H 0 rejected H 0 not rejected Truth H 0 is false No Error (Hit) Type II Error H 0 is true Type I Error No Error Table: Possible outcomes of a null hypothesis significance test

12 Error Rates The Type I Error Rate is the probability that we make a Type I Error out of the times that H 0 is true. The Type II Error Rate is the probability that we make a Type II Error out of the times that H 0 is false. These are conditional probabilities. Action H 0 rejected H 0 not rejected Truth H 0 is false No Error (Hit) Type II Error H 0 is true Type I Error No Error Table: Possible outcomes of a null hypothesis significance test

13 Error Rates Type I Error Rate: P(Reject H 0 H 0 true) Action H 0 rejected H 0 not rejected Truth H 0 is false No Error (Hit) Type II Error H 0 is true Type I Error No Error Table: Possible outcomes of a null hypothesis significance test

14 Error Rates Type I Error Rate: P(Reject H 0 H 0 true) Type II Error Rate: P(Not Reject H 0 H 0 false) Action H 0 rejected H 0 not rejected Truth H 0 is false No Error (Hit) Type II Error H 0 is true Type I Error No Error Table: Possible outcomes of a null hypothesis significance test

15 Choosing a Significance Level Recall, we want to reject H 0 when the data would have been unlikely if H 0 were true. Action H 0 rejected H 0 not rejected Truth H 0 is false No Error (Hit) Type II Error H 0 is true Type I Error No Error Table: Possible outcomes of a null hypothesis significance test

16 Choosing a Significance Level Recall, we want to reject H 0 when the data would have been unlikely if H 0 were true. How unlikely is unlikely? We have a choice, as long as we set the threshold before we collect any data. We call this threshold α (it represents a probability). Action H 0 rejected H 0 not rejected Truth H 0 is false No Error (Hit) Type II Error H 0 is true Type I Error No Error Table: Possible outcomes of a null hypothesis significance test

17 Choosing a Significance Level α is the Type I Error rate: the conditional proportion of the time that we expect to incorrectly reject H 0 when it is true. Action H 0 rejected H 0 not rejected H 0 is false 1 β β 1 H 0 is true α 1 α 1 Table: Conditional Error Probabilities associated with a NHST

18 Choosing a Significance Level α is the Type I Error rate: the conditional proportion of the time that we expect to incorrectly reject H 0 when it is true. We call the Type II Error rate β. This is the conditional proportion of the time that we expect to fail to reject H 0 when we should have. Action H 0 rejected H 0 not rejected H 0 is false 1 β β 1 H 0 is true α 1 α 1 Table: Conditional Error Probabilities associated with a NHST

19 Choosing a Significance Level α is the Type I Error rate: the conditional proportion of the time that we expect to incorrectly reject H 0 when it is true. We call the Type II Error rate β. This is the conditional proportion of the time that we expect to fail to reject H 0 when we should have. The quantity 1 β tells us the conditional probability that we will be able to endorse our initial hypothesis (H 1 ) when it is true. This is also called the power of the test. Action H 0 rejected H 0 not rejected H 0 is false 1 β β 1 H 0 is true α 1 α 1 Table: Conditional Error Probabilities associated with a NHST

20 Step 3: Establish a Rejection Criterion How many does the student need to get correct for us to reject H 0? Probability H Values

21 Step 3: Establish a Rejection Criterion Enough so that we won t have too many Type I Errors (false positives). Probability H Values

22 Step 3: Establish a Rejection Criterion Convention: limit α to 5%. If we set the threshold to the 95th percentile of the H 0 distribution, it will only be exceeded 5% of the time that H 0 is true. Probability H Values

23 Step 3: Establish a Rejection Criterion P(X x) x How high does c have to be so that P(X c H 0 ) is less than 5%?

24 Step 3: Establish a Rejection Criterion P(X x) x How high does c have to be so that P(X c H 0 ) is less than 5%? If we reject H 0 when X 9, we will make a Type I Error less than 5% of the time.

25 Step 4: Get the data, and check! Suppose the student gets 8 correct. Then we would...

26 Step 4: Get the data, and check! Suppose the student gets 8 correct. Then we would... Our rejection criterion was 9 and above, so we cannot reject H 0 in this case.

27 Type I vs. Type II Errors We can set α to whatever we want. The lower it is, the less often we make Type I Errors.

28 Type I vs. Type II Errors We can set α to whatever we want. The lower it is, the less often we make Type I Errors. So why not make it really small?

29 Type I vs. Type II Errors We can set α to whatever we want. The lower it is, the less often we make Type I Errors. So why not make it really small? Tradeoff: Fewer Type I Errors More Type II Errors.

30 Type I vs. Type II Errors Decreasing α moves the threshold out toward the tail of the H 0 distribution. Probability α = 0.15, c = Values

31 Type I vs. Type II Errors Decreasing α moves the threshold out toward the tail of the H 0 distribution. Probability α = 0.05, c = Values

32 Type I vs. Type II Errors Decreasing α moves the threshold out toward the tail of the H 0 distribution. Probability α = 0.01, c = Values

33 Type I vs. Type II Errors We will retain H 0 when we do not exceed the threshold. But if H 1 is correct, this is a Type II Error. The more stringent the threshold, the more likely Type II Errors become (and so we miss new discoveries). Probability α = 0.15, c = Values

34 Type I vs. Type II Errors We will retain H 0 when we do not exceed the threshold. But if H 1 is correct, this is a Type II Error. The more stringent the threshold, the more likely Type II Errors become (and so we miss new discoveries). Probability α = 0.05, c = Values

35 Type I vs. Type II Errors We will retain H 0 when we do not exceed the threshold. But if H 1 is correct, this is a Type II Error. The more stringent the threshold, the more likely Type II Errors become (and so we miss new discoveries). Probability α = 0.01, c = Values

36 Hypothesis Testing Procedure 1. Translate research question into quantitative null and alternative hypotheses (H 0 and H 1 ) about the population/long run. 2. Identify a test statistic (what quantity (random variable) are we going to use to summarize the data?) 3. Establish a rejection criterion. (a) Find the distribution that the test statistic would have if H 0 (or the version of H 0 closest to H 1 ) is true. (b) Decide which data values would favor H 1 over H 0. (c) Out of these, set a cutoff so that the (conditional) probability of a Type I Error rate is low enough (usually 5% or less). 4. Collect the data, compute the test statistic, and make the decision.

37 Testing the Fairness of a Die Suppose we suspect that a die is loaded to come up 1 more often than it would if the die were fair.

38 Testing the Fairness of a Die Suppose we suspect that a die is loaded to come up 1 more often than it would if the die were fair. How could we test this?

39 Testing the Fairness of a Die Suppose we suspect that a die is loaded to come up 1 more often than it would if the die were fair. How could we test this? We set up an experiment where we will roll the die 300 times.

40 Testing the Fairness of a Die Suppose we suspect that a die is loaded to come up 1 more often than it would if the die were fair. How could we test this? We set up an experiment where we will roll the die 300 times. What are our null and alternative hypotheses?

41 Testing the Fairness of a Die Relevant aspect of the die is

42 Testing the Fairness of a Die Relevant aspect of the die is the probability of a 1. Call this p 1. H 0 : Die is fair

43 Testing the Fairness of a Die Relevant aspect of the die is the probability of a 1. Call this p 1. H 0 : Die is fair p 1 = 1/6 H 1 : Die is biased toward 1

44 Testing the Fairness of a Die Relevant aspect of the die is the probability of a 1. Call this p 1. H 0 : Die is fair p 1 = 1/6 H 1 : Die is biased toward 1 p 1 > 1/6 Relevant quantity from the data (test statistic) is

45 Testing the Fairness of a Die Relevant aspect of the die is the probability of a 1. Call this p 1. H 0 : Die is fair p 1 = 1/6 H 1 : Die is biased toward 1 p 1 > 1/6 Relevant quantity from the data (test statistic) is the number of 1s rolled If H 0 is true, this test statistic has a distribution.

46 Testing the Fairness of a Die Relevant aspect of the die is the probability of a 1. Call this p 1. H 0 : Die is fair p 1 = 1/6 H 1 : Die is biased toward 1 p 1 > 1/6 Relevant quantity from the data (test statistic) is the number of 1s rolled If H 0 is true, this test statistic has a B(300, 1/6) distribution. A high number of 1s favor H 1. How high?

47 Testing the Fairness of a Die Relevant aspect of the die is the probability of a 1. Call this p 1. H 0 : Die is fair p 1 = 1/6 H 1 : Die is biased toward 1 p 1 > 1/6 Relevant quantity from the data (test statistic) is the number of 1s rolled If H 0 is true, this test statistic has a B(300, 1/6) distribution. A high number of 1s favor H 1. How high? We should reject H 0 if we get a value which is above the 95th percentile of the B(300, 1/6) distribution.

48 Testing the Fairness of a Die Notice that we don t actually need to find the exact cutoff in advance. If we get an observed test statistic, we can just compute its percentile in the H 0 distribution.

49 Testing the Fairness of a Die Notice that we don t actually need to find the exact cutoff in advance. If we get an observed test statistic, we can just compute its percentile in the H 0 distribution. If this percentile is, then we can reject H 0.

50 Testing the Fairness of a Die Notice that we don t actually need to find the exact cutoff in advance. If we get an observed test statistic, we can just compute its percentile in the H 0 distribution. If this percentile is greater than 95, then we can reject H 0.

51 Testing the Fairness of a Die Suppose we get 60 1 s. How do we proceed?

52 Testing the Fairness of a Die Suppose we get 60 1 s. How do we proceed? We need to determine the probability of 60 or a value more supportive of H 1 in the B(300, 1/6) distribution.

53 Testing the Fairness of a Die Suppose we get 60 1 s. How do we proceed? We need to determine the probability of 60 or a value more supportive of H 1 in the B(300, 1/6) distribution. High values are more supportive in this case, so we want P(X 60).

54 Testing the Fairness of a Die Suppose we get 60 1 s. How do we proceed? We need to determine the probability of 60 or a value more supportive of H 1 in the B(300, 1/6) distribution. High values are more supportive in this case, so we want P(X 60).

55 Testing the Fairness of a Die Suppose we get 60 1 s. How do we proceed? We need to determine the probability of 60 or a value more supportive of H 1 in the B(300, 1/6) distribution. High values are more supportive in this case, so we want P(X 60). 1 - pbinom(59, 300, 1/6) [1] What s our decision? We cannot reject H 0, because we get values this high more than 5% of the time under H 0.

56 Testing the Fairness of a Die Suppose we suspect that a die is loaded to come up 1 less often than it would if the die were fair.

57 Testing the Fairness of a Die Suppose we suspect that a die is loaded to come up 1 less often than it would if the die were fair. How could we test this?

58 Testing the Fairness of a Die Suppose we suspect that a die is loaded to come up 1 less often than it would if the die were fair. How could we test this? We set up an experiment where we will roll the die 300 times.

59 Testing the Fairness of a Die Suppose we suspect that a die is loaded to come up 1 less often than it would if the die were fair. How could we test this? We set up an experiment where we will roll the die 300 times. What are our null and alternative hypotheses?

60 Testing the Fairness of a Die Relevant aspect of the die is

61 Testing the Fairness of a Die Relevant aspect of the die is the probability of a 1. Call this p 1. H 0 : Die is fair

62 Testing the Fairness of a Die Relevant aspect of the die is the probability of a 1. Call this p 1. H 0 : Die is fair p 1 = 1/6 H 1 : Die is biased away from 1

63 Testing the Fairness of a Die Relevant aspect of the die is the probability of a 1. Call this p 1. H 0 : Die is fair p 1 = 1/6 H 1 : Die is biased away from 1 p 1 < 1/6 Relevant quantity from the data (test statistic) is

64 Testing the Fairness of a Die Relevant aspect of the die is the probability of a 1. Call this p 1. H 0 : Die is fair p 1 = 1/6 H 1 : Die is biased away from 1 p 1 < 1/6 Relevant quantity from the data (test statistic) is the number of 1s rolled If H 0 is true, this test statistic has a distribution.

65 Testing the Fairness of a Die Relevant aspect of the die is the probability of a 1. Call this p 1. H 0 : Die is fair p 1 = 1/6 H 1 : Die is biased away from 1 p 1 < 1/6 Relevant quantity from the data (test statistic) is the number of 1s rolled If H 0 is true, this test statistic has a B(300, 1/6) distribution. A low number of 1s favor H 1. How low?

66 Testing the Fairness of a Die Relevant aspect of the die is the probability of a 1. Call this p 1. H 0 : Die is fair p 1 = 1/6 H 1 : Die is biased away from 1 p 1 < 1/6 Relevant quantity from the data (test statistic) is the number of 1s rolled If H 0 is true, this test statistic has a B(300, 1/6) distribution. A low number of 1s favor H 1. How low? We should reject H 0 if we get a value which is below the 5th percentile of the B(300, 1/6) distribution.

67 R tip: the qbinom() function The pbinom(q, size, prob) function gives us the value of the CDF at the value q, in a binomial distribution with parameters n = size and p = prob.

68 R tip: the qbinom() function The pbinom(q, size, prob) function gives us the value of the CDF at the value q, in a binomial distribution with parameters n = size and p = prob. What if we want the opposite? That is, we want to know what value is at the 5th percentile?

69 R tip: the qbinom() function The pbinom(q, size, prob) function gives us the value of the CDF at the value q, in a binomial distribution with parameters n = size and p = prob. What if we want the opposite? That is, we want to know what value is at the 5th percentile? We can use qbinom(p, size, prob).

70 R tip: the qbinom() function The pbinom(q, size, prob) function gives us the value of the CDF at the value q, in a binomial distribution with parameters n = size and p = prob. What if we want the opposite? That is, we want to know what value is at the 5th percentile? We can use qbinom(p, size, prob).

71 R tip: the qbinom() function The pbinom(q, size, prob) function gives us the value of the CDF at the value q, in a binomial distribution with parameters n = size and p = prob. What if we want the opposite? That is, we want to know what value is at the 5th percentile? We can use qbinom(p, size, prob). (x <- qbinom(0.05, 300, 1/6)) [1] 40

72 R tip: the qbinom() function Did it work? If we plug this value back in to pbinom(), will we get 0.05?

73 R tip: the qbinom() function Did it work? If we plug this value back in to pbinom(), will we get 0.05?

74 R tip: the qbinom() function Did it work? If we plug this value back in to pbinom(), will we get 0.05? pbinom(x, 300, 1/6) [1]

75 R tip: the qbinom() function Did it work? If we plug this value back in to pbinom(), will we get 0.05? pbinom(x, 300, 1/6) [1] What went wrong?

76 R tip: the qbinom() function Here s the inverse CDF of the B(300, 1/6) distribution. x P(X x)

77 R tip: the qbinom() function Let s zoom in on the bottom 10% x P(X x)

78 Avoiding Probability Creep Everything from the 4.86 percentile to the 6.75 percentile falls in the 40 bin. If we want to keep the Type I Error rate below 5%, we should reject H 0 only when the observed value is strictly below the 5th percentile. Similarly, when we re looking for high values, we should reject only if the observed value is strictly above the 95th percentile.

79 Outline Two-Tailed Tests

80 Non-directional Hypotheses We could similarly test a coin for bias. Suppose rather than having a specific hypothesis about the direction of bias, we just want to test for bias generally.

81 Non-directional Hypotheses We could similarly test a coin for bias. Suppose rather than having a specific hypothesis about the direction of bias, we just want to test for bias generally. Remember that we are willing to make a Type I Error α (say 0.05) of the time that the null hypothesis is true.

82 Non-directional Hypotheses We could similarly test a coin for bias. Suppose rather than having a specific hypothesis about the direction of bias, we just want to test for bias generally. Remember that we are willing to make a Type I Error α (say 0.05) of the time that the null hypothesis is true. We flip the coin 500 times, and get heads 230 times. What do we want to calculate?

83 Non-directional Hypotheses We could similarly test a coin for bias. Suppose rather than having a specific hypothesis about the direction of bias, we just want to test for bias generally. Remember that we are willing to make a Type I Error α (say 0.05) of the time that the null hypothesis is true. We flip the coin 500 times, and get heads 230 times. What do we want to calculate? Proceeding as before, we can represent the number of heads under the null hypothesis using a binomial distribution with n = 500 and p = 0.5.

84 Non-directional Hypotheses We could similarly test a coin for bias. Suppose rather than having a specific hypothesis about the direction of bias, we just want to test for bias generally. Remember that we are willing to make a Type I Error α (say 0.05) of the time that the null hypothesis is true. We flip the coin 500 times, and get heads 230 times. What do we want to calculate? Proceeding as before, we can represent the number of heads under the null hypothesis using a binomial distribution with n = 500 and p = 0.5. In this case, we are interested in P(Y 230). Using R, we can do pbinom(230, 500, 0.5), which gives us about What do we conclude?

85 Here s the spike plot Probability P(X 230) Values

86 Non-directional Hypotheses Suppose instead we had gotten 270 heads (i.e., 230 tails). What would we do?

87 Non-directional Hypotheses Suppose instead we had gotten 270 heads (i.e., 230 tails). What would we do? Now we want to know P(Y 270), which is

88 Non-directional Hypotheses Suppose instead we had gotten 270 heads (i.e., 230 tails). What would we do? Now we want to know P(Y 270), which is also 0.04, by symmetry

89 Non-directional Hypotheses Probability P(X 270) Values

90 Non-directional Hypotheses Here s both sides at once. Probability P(X 230) 0.04 P(X 270) Values

91 Non-directional Hypotheses So 4% of the time that we flip a fair coin 500 times we get 230 or fewer heads, and 4% of the time we get 270 or more heads. If the coin actually is fair and we get 230 or fewer, or 270 or more, we will reject H 0, which will be a.

92 Non-directional Hypotheses So 4% of the time that we flip a fair coin 500 times we get 230 or fewer heads, and 4% of the time we get 270 or more heads. If the coin actually is fair and we get 230 or fewer, or 270 or more, we will reject H 0, which will be a Type I Error. How often will we make Type I Errors of this sort?

93 Non-directional Hypotheses So 4% of the time that we flip a fair coin 500 times we get 230 or fewer heads, and 4% of the time we get 270 or more heads. If the coin actually is fair and we get 230 or fewer, or 270 or more, we will reject H 0, which will be a Type I Error. How often will we make Type I Errors of this sort? 8% in total! But wait, we re supposed to make Type I Errors only 5% of the time. What went wrong?

94 Non-directional Hypotheses When the null hypothesis is true, we should reject it only α (e.g., 0.05) of the time. If our alternative hypothesis is non-directional, then we want to be able to reject the null if a sample value is either very large or very small.

95 Non-directional Hypotheses When the null hypothesis is true, we should reject it only α (e.g., 0.05) of the time. If our alternative hypothesis is non-directional, then we want to be able to reject the null if a sample value is either very large or very small. This means that we need to split the 0.05 probability in half, between very high and very low values.

96 Non-directional Hypotheses When the null hypothesis is true, we should reject it only α (e.g., 0.05) of the time. If our alternative hypothesis is non-directional, then we want to be able to reject the null if a sample value is either very large or very small. This means that we need to split the 0.05 probability in half, between very high and very low values. As a result, we will only reject H 0 if the number of heads is in the top 2.5% of the distribution, or in the bottom 2.5%

97 Non-directional Hypotheses When the null hypothesis is true, we should reject it only α (e.g., 0.05) of the time. If our alternative hypothesis is non-directional, then we want to be able to reject the null if a sample value is either very large or very small. This means that we need to split the 0.05 probability in half, between very high and very low values. As a result, we will only reject H 0 if the number of heads is in the top 2.5% of the distribution, or in the bottom 2.5% Overall, we will make a Type I Error at most 5% of the time that the null hypothesis is correct.

98 Non-directional Hypotheses Here s both sides at once. Probability P( X <= 227 OR X >= 273 ) = Values

99 Outline Two-Tailed Tests

100 Hypothesis Testing Procedure 1. Translate research question into quantitative null and alternative hypotheses (H 0 and H 1 ) about the population/long run. 2. Identify a test statistic (what quantity (random variable) are we going to use to summarize the data?) 3. Establish a rejection criterion. (a) Find the distribution that the test statistic would have if H 0 (or the version of H 0 closest to H 1 ) is true. (b) Decide which data values would favor H 1 over H 0. If H 1 is unidirectional, then values on one extreme of the distribution are supportive. If H 1 is bidirectional, then values on either extreme of the distribution are supportive. (c) Set corresponding cutoff(s) so that the (conditional) probability of a Type I Error is low enough (usually 5% or less). 4. Collect the data, compute the test statistic, and make the decision.

Introduction to. Hypothesis Testing CHAPTER LEARNING OBJECTIVES. 1 Identify the four steps of hypothesis testing.

Introduction to. Hypothesis Testing CHAPTER LEARNING OBJECTIVES. 1 Identify the four steps of hypothesis testing. Introduction to Hypothesis Testing CHAPTER 8 LEARNING OBJECTIVES After reading this chapter, you should be able to: 1 Identify the four steps of hypothesis testing. 2 Define null hypothesis, alternative

More information

p-values and significance levels (false positive or false alarm rates)

p-values and significance levels (false positive or false alarm rates) p-values and significance levels (false positive or false alarm rates) Let's say 123 people in the class toss a coin. Call it "Coin A." There are 65 heads. Then they toss another coin. Call it "Coin B."

More information

Introduction to Hypothesis Testing. Hypothesis Testing. Step 1: State the Hypotheses

Introduction to Hypothesis Testing. Hypothesis Testing. Step 1: State the Hypotheses Introduction to Hypothesis Testing 1 Hypothesis Testing A hypothesis test is a statistical procedure that uses sample data to evaluate a hypothesis about a population Hypothesis is stated in terms of the

More information

Introduction to Hypothesis Testing

Introduction to Hypothesis Testing I. Terms, Concepts. Introduction to Hypothesis Testing A. In general, we do not know the true value of population parameters - they must be estimated. However, we do have hypotheses about what the true

More information

Comparison of frequentist and Bayesian inference. Class 20, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

Comparison of frequentist and Bayesian inference. Class 20, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom Comparison of frequentist and Bayesian inference. Class 20, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom 1 Learning Goals 1. Be able to explain the difference between the p-value and a posterior

More information

Characteristics of Binomial Distributions

Characteristics of Binomial Distributions Lesson2 Characteristics of Binomial Distributions In the last lesson, you constructed several binomial distributions, observed their shapes, and estimated their means and standard deviations. In Investigation

More information

Independent samples t-test. Dr. Tom Pierce Radford University

Independent samples t-test. Dr. Tom Pierce Radford University Independent samples t-test Dr. Tom Pierce Radford University The logic behind drawing causal conclusions from experiments The sampling distribution of the difference between means The standard error of

More information

Recall this chart that showed how most of our course would be organized:

Recall this chart that showed how most of our course would be organized: Chapter 4 One-Way ANOVA Recall this chart that showed how most of our course would be organized: Explanatory Variable(s) Response Variable Methods Categorical Categorical Contingency Tables Categorical

More information

Lecture 9: Bayesian hypothesis testing

Lecture 9: Bayesian hypothesis testing Lecture 9: Bayesian hypothesis testing 5 November 27 In this lecture we ll learn about Bayesian hypothesis testing. 1 Introduction to Bayesian hypothesis testing Before we go into the details of Bayesian

More information

You flip a fair coin four times, what is the probability that you obtain three heads.

You flip a fair coin four times, what is the probability that you obtain three heads. Handout 4: Binomial Distribution Reading Assignment: Chapter 5 In the previous handout, we looked at continuous random variables and calculating probabilities and percentiles for those type of variables.

More information

Experimental Design. Power and Sample Size Determination. Proportions. Proportions. Confidence Interval for p. The Binomial Test

Experimental Design. Power and Sample Size Determination. Proportions. Proportions. Confidence Interval for p. The Binomial Test Experimental Design Power and Sample Size Determination Bret Hanlon and Bret Larget Department of Statistics University of Wisconsin Madison November 3 8, 2011 To this point in the semester, we have largely

More information

Chapter 8 Hypothesis Testing Chapter 8 Hypothesis Testing 8-1 Overview 8-2 Basics of Hypothesis Testing

Chapter 8 Hypothesis Testing Chapter 8 Hypothesis Testing 8-1 Overview 8-2 Basics of Hypothesis Testing Chapter 8 Hypothesis Testing 1 Chapter 8 Hypothesis Testing 8-1 Overview 8-2 Basics of Hypothesis Testing 8-3 Testing a Claim About a Proportion 8-5 Testing a Claim About a Mean: s Not Known 8-6 Testing

More information

Correlational Research

Correlational Research Correlational Research Chapter Fifteen Correlational Research Chapter Fifteen Bring folder of readings The Nature of Correlational Research Correlational Research is also known as Associational Research.

More information

Question: What is the probability that a five-card poker hand contains a flush, that is, five cards of the same suit?

Question: What is the probability that a five-card poker hand contains a flush, that is, five cards of the same suit? ECS20 Discrete Mathematics Quarter: Spring 2007 Instructor: John Steinberger Assistant: Sophie Engle (prepared by Sophie Engle) Homework 8 Hints Due Wednesday June 6 th 2007 Section 6.1 #16 What is the

More information

HYPOTHESIS TESTING: POWER OF THE TEST

HYPOTHESIS TESTING: POWER OF THE TEST HYPOTHESIS TESTING: POWER OF THE TEST The first 6 steps of the 9-step test of hypothesis are called "the test". These steps are not dependent on the observed data values. When planning a research project,

More information

DEVELOPING HYPOTHESIS AND

DEVELOPING HYPOTHESIS AND Shalini Prasad Ajith Rao Eeshoo Rehani DEVELOPING 500 METHODS SEPTEMBER 18 TH 2001 DEVELOPING HYPOTHESIS AND Introduction Processes involved before formulating the hypotheses. Definition Nature of Hypothesis

More information

6.3 Conditional Probability and Independence

6.3 Conditional Probability and Independence 222 CHAPTER 6. PROBABILITY 6.3 Conditional Probability and Independence Conditional Probability Two cubical dice each have a triangle painted on one side, a circle painted on two sides and a square painted

More information

Lesson 9 Hypothesis Testing

Lesson 9 Hypothesis Testing Lesson 9 Hypothesis Testing Outline Logic for Hypothesis Testing Critical Value Alpha (α) -level.05 -level.01 One-Tail versus Two-Tail Tests -critical values for both alpha levels Logic for Hypothesis

More information

MATH 140 Lab 4: Probability and the Standard Normal Distribution

MATH 140 Lab 4: Probability and the Standard Normal Distribution MATH 140 Lab 4: Probability and the Standard Normal Distribution Problem 1. Flipping a Coin Problem In this problem, we want to simualte the process of flipping a fair coin 1000 times. Note that the outcomes

More information

Introduction to Hypothesis Testing OPRE 6301

Introduction to Hypothesis Testing OPRE 6301 Introduction to Hypothesis Testing OPRE 6301 Motivation... The purpose of hypothesis testing is to determine whether there is enough statistical evidence in favor of a certain belief, or hypothesis, about

More information

Solutions: Problems for Chapter 3. Solutions: Problems for Chapter 3

Solutions: Problems for Chapter 3. Solutions: Problems for Chapter 3 Problem A: You are dealt five cards from a standard deck. Are you more likely to be dealt two pairs or three of a kind? experiment: choose 5 cards at random from a standard deck Ω = {5-combinations of

More information

Week 3&4: Z tables and the Sampling Distribution of X

Week 3&4: Z tables and the Sampling Distribution of X Week 3&4: Z tables and the Sampling Distribution of X 2 / 36 The Standard Normal Distribution, or Z Distribution, is the distribution of a random variable, Z N(0, 1 2 ). The distribution of any other normal

More information

STA 130 (Winter 2016): An Introduction to Statistical Reasoning and Data Science

STA 130 (Winter 2016): An Introduction to Statistical Reasoning and Data Science STA 130 (Winter 2016): An Introduction to Statistical Reasoning and Data Science Mondays 2:10 4:00 (GB 220) and Wednesdays 2:10 4:00 (various) Jeffrey Rosenthal Professor of Statistics, University of Toronto

More information

Online 12 - Sections 9.1 and 9.2-Doug Ensley

Online 12 - Sections 9.1 and 9.2-Doug Ensley Student: Date: Instructor: Doug Ensley Course: MAT117 01 Applied Statistics - Ensley Assignment: Online 12 - Sections 9.1 and 9.2 1. Does a P-value of 0.001 give strong evidence or not especially strong

More information

Hypothesis Testing for Beginners

Hypothesis Testing for Beginners Hypothesis Testing for Beginners Michele Piffer LSE August, 2011 Michele Piffer (LSE) Hypothesis Testing for Beginners August, 2011 1 / 53 One year ago a friend asked me to put down some easy-to-read notes

More information

Hypothesis Testing. Reminder of Inferential Statistics. Hypothesis Testing: Introduction

Hypothesis Testing. Reminder of Inferential Statistics. Hypothesis Testing: Introduction Hypothesis Testing PSY 360 Introduction to Statistics for the Behavioral Sciences Reminder of Inferential Statistics All inferential statistics have the following in common: Use of some descriptive statistic

More information

HYPOTHESIS TESTING WITH SPSS:

HYPOTHESIS TESTING WITH SPSS: HYPOTHESIS TESTING WITH SPSS: A NON-STATISTICIAN S GUIDE & TUTORIAL by Dr. Jim Mirabella SPSS 14.0 screenshots reprinted with permission from SPSS Inc. Published June 2006 Copyright Dr. Jim Mirabella CHAPTER

More information

Lecture 7: Continuous Random Variables

Lecture 7: Continuous Random Variables Lecture 7: Continuous Random Variables 21 September 2005 1 Our First Continuous Random Variable The back of the lecture hall is roughly 10 meters across. Suppose it were exactly 10 meters, and consider

More information

CONTENTS OF DAY 2. II. Why Random Sampling is Important 9 A myth, an urban legend, and the real reason NOTES FOR SUMMER STATISTICS INSTITUTE COURSE

CONTENTS OF DAY 2. II. Why Random Sampling is Important 9 A myth, an urban legend, and the real reason NOTES FOR SUMMER STATISTICS INSTITUTE COURSE 1 2 CONTENTS OF DAY 2 I. More Precise Definition of Simple Random Sample 3 Connection with independent random variables 3 Problems with small populations 8 II. Why Random Sampling is Important 9 A myth,

More information

Descriptive Statistics

Descriptive Statistics Descriptive Statistics Primer Descriptive statistics Central tendency Variation Relative position Relationships Calculating descriptive statistics Descriptive Statistics Purpose to describe or summarize

More information

Testing Hypotheses About Proportions

Testing Hypotheses About Proportions Chapter 11 Testing Hypotheses About Proportions Hypothesis testing method: uses data from a sample to judge whether or not a statement about a population may be true. Steps in Any Hypothesis Test 1. Determine

More information

Chapter 2. Hypothesis testing in one population

Chapter 2. Hypothesis testing in one population Chapter 2. Hypothesis testing in one population Contents Introduction, the null and alternative hypotheses Hypothesis testing process Type I and Type II errors, power Test statistic, level of significance

More information

Chapter 4. Hypothesis Tests

Chapter 4. Hypothesis Tests Chapter 4 Hypothesis Tests 1 2 CHAPTER 4. HYPOTHESIS TESTS 4.1 Introducing Hypothesis Tests Key Concepts Motivate hypothesis tests Null and alternative hypotheses Introduce Concept of Statistical significance

More information

AP STATISTICS 2010 SCORING GUIDELINES

AP STATISTICS 2010 SCORING GUIDELINES 2010 SCORING GUIDELINES Question 4 Intent of Question The primary goals of this question were to (1) assess students ability to calculate an expected value and a standard deviation; (2) recognize the applicability

More information

Random variables P(X = 3) = P(X = 3) = 1 8, P(X = 1) = P(X = 1) = 3 8.

Random variables P(X = 3) = P(X = 3) = 1 8, P(X = 1) = P(X = 1) = 3 8. Random variables Remark on Notations 1. When X is a number chosen uniformly from a data set, What I call P(X = k) is called Freq[k, X] in the courseware. 2. When X is a random variable, what I call F ()

More information

Class 19: Two Way Tables, Conditional Distributions, Chi-Square (Text: Sections 2.5; 9.1)

Class 19: Two Way Tables, Conditional Distributions, Chi-Square (Text: Sections 2.5; 9.1) Spring 204 Class 9: Two Way Tables, Conditional Distributions, Chi-Square (Text: Sections 2.5; 9.) Big Picture: More than Two Samples In Chapter 7: We looked at quantitative variables and compared the

More information

Sample Size and Power in Clinical Trials

Sample Size and Power in Clinical Trials Sample Size and Power in Clinical Trials Version 1.0 May 011 1. Power of a Test. Factors affecting Power 3. Required Sample Size RELATED ISSUES 1. Effect Size. Test Statistics 3. Variation 4. Significance

More information

6.4 Normal Distribution

6.4 Normal Distribution Contents 6.4 Normal Distribution....................... 381 6.4.1 Characteristics of the Normal Distribution....... 381 6.4.2 The Standardized Normal Distribution......... 385 6.4.3 Meaning of Areas under

More information

LAB : THE CHI-SQUARE TEST. Probability, Random Chance, and Genetics

LAB : THE CHI-SQUARE TEST. Probability, Random Chance, and Genetics Period Date LAB : THE CHI-SQUARE TEST Probability, Random Chance, and Genetics Why do we study random chance and probability at the beginning of a unit on genetics? Genetics is the study of inheritance,

More information

Stat 5102 Notes: Nonparametric Tests and. confidence interval

Stat 5102 Notes: Nonparametric Tests and. confidence interval Stat 510 Notes: Nonparametric Tests and Confidence Intervals Charles J. Geyer April 13, 003 This handout gives a brief introduction to nonparametrics, which is what you do when you don t believe the assumptions

More information

Statistical tests for SPSS

Statistical tests for SPSS Statistical tests for SPSS Paolo Coletti A.Y. 2010/11 Free University of Bolzano Bozen Premise This book is a very quick, rough and fast description of statistical tests and their usage. It is explicitly

More information

Conditional Probability, Hypothesis Testing, and the Monty Hall Problem

Conditional Probability, Hypothesis Testing, and the Monty Hall Problem Conditional Probability, Hypothesis Testing, and the Monty Hall Problem Ernie Croot September 17, 2008 On more than one occasion I have heard the comment Probability does not exist in the real world, and

More information

A POPULATION MEAN, CONFIDENCE INTERVALS AND HYPOTHESIS TESTING

A POPULATION MEAN, CONFIDENCE INTERVALS AND HYPOTHESIS TESTING CHAPTER 5. A POPULATION MEAN, CONFIDENCE INTERVALS AND HYPOTHESIS TESTING 5.1 Concepts When a number of animals or plots are exposed to a certain treatment, we usually estimate the effect of the treatment

More information

DDBA 8438: Introduction to Hypothesis Testing Video Podcast Transcript

DDBA 8438: Introduction to Hypothesis Testing Video Podcast Transcript DDBA 8438: Introduction to Hypothesis Testing Video Podcast Transcript JENNIFER ANN MORROW: Welcome to "Introduction to Hypothesis Testing." My name is Dr. Jennifer Ann Morrow. In today's demonstration,

More information

Chapter 7 Notes - Inference for Single Samples. You know already for a large sample, you can invoke the CLT so:

Chapter 7 Notes - Inference for Single Samples. You know already for a large sample, you can invoke the CLT so: Chapter 7 Notes - Inference for Single Samples You know already for a large sample, you can invoke the CLT so: X N(µ, ). Also for a large sample, you can replace an unknown σ by s. You know how to do a

More information

Statistics 2014 Scoring Guidelines

Statistics 2014 Scoring Guidelines AP Statistics 2014 Scoring Guidelines College Board, Advanced Placement Program, AP, AP Central, and the acorn logo are registered trademarks of the College Board. AP Central is the official online home

More information

Section 7.1. Introduction to Hypothesis Testing. Schrodinger s cat quantum mechanics thought experiment (1935)

Section 7.1. Introduction to Hypothesis Testing. Schrodinger s cat quantum mechanics thought experiment (1935) Section 7.1 Introduction to Hypothesis Testing Schrodinger s cat quantum mechanics thought experiment (1935) Statistical Hypotheses A statistical hypothesis is a claim about a population. Null hypothesis

More information

The power of a test is the of. by using a particular and a. value of the that is an to the value

The power of a test is the of. by using a particular and a. value of the that is an to the value DEFINITION The power of a test is the of a hypothesis. The of the is by using a particular and a value of the that is an to the value assumed in the. POWER AND THE DESIGN OF EXPERIMENTS Just as is a common

More information

Mind on Statistics. Chapter 12

Mind on Statistics. Chapter 12 Mind on Statistics Chapter 12 Sections 12.1 Questions 1 to 6: For each statement, determine if the statement is a typical null hypothesis (H 0 ) or alternative hypothesis (H a ). 1. There is no difference

More information

2 Precision-based sample size calculations

2 Precision-based sample size calculations Statistics: An introduction to sample size calculations Rosie Cornish. 2006. 1 Introduction One crucial aspect of study design is deciding how big your sample should be. If you increase your sample size

More information

TEACHER NOTES MATH NSPIRED

TEACHER NOTES MATH NSPIRED Math Objectives Students will understand that normal distributions can be used to approximate binomial distributions whenever both np and n(1 p) are sufficiently large. Students will understand that when

More information

Simple Regression Theory II 2010 Samuel L. Baker

Simple Regression Theory II 2010 Samuel L. Baker SIMPLE REGRESSION THEORY II 1 Simple Regression Theory II 2010 Samuel L. Baker Assessing how good the regression equation is likely to be Assignment 1A gets into drawing inferences about how close the

More information

22. HYPOTHESIS TESTING

22. HYPOTHESIS TESTING 22. HYPOTHESIS TESTING Often, we need to make decisions based on incomplete information. Do the data support some belief ( hypothesis ) about the value of a population parameter? Is OJ Simpson guilty?

More information

August 2012 EXAMINATIONS Solution Part I

August 2012 EXAMINATIONS Solution Part I August 01 EXAMINATIONS Solution Part I (1) In a random sample of 600 eligible voters, the probability that less than 38% will be in favour of this policy is closest to (B) () In a large random sample,

More information

Odds ratio, Odds ratio test for independence, chi-squared statistic.

Odds ratio, Odds ratio test for independence, chi-squared statistic. Odds ratio, Odds ratio test for independence, chi-squared statistic. Announcements: Assignment 5 is live on webpage. Due Wed Aug 1 at 4:30pm. (9 days, 1 hour, 58.5 minutes ) Final exam is Aug 9. Review

More information

Tutorial 5: Hypothesis Testing

Tutorial 5: Hypothesis Testing Tutorial 5: Hypothesis Testing Rob Nicholls nicholls@mrc-lmb.cam.ac.uk MRC LMB Statistics Course 2014 Contents 1 Introduction................................ 1 2 Testing distributional assumptions....................

More information

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products Chapter 3 Cartesian Products and Relations The material in this chapter is the first real encounter with abstraction. Relations are very general thing they are a special type of subset. After introducing

More information

Unit 31 A Hypothesis Test about Correlation and Slope in a Simple Linear Regression

Unit 31 A Hypothesis Test about Correlation and Slope in a Simple Linear Regression Unit 31 A Hypothesis Test about Correlation and Slope in a Simple Linear Regression Objectives: To perform a hypothesis test concerning the slope of a least squares line To recognize that testing for a

More information

The Dummy s Guide to Data Analysis Using SPSS

The Dummy s Guide to Data Analysis Using SPSS The Dummy s Guide to Data Analysis Using SPSS Mathematics 57 Scripps College Amy Gamble April, 2001 Amy Gamble 4/30/01 All Rights Rerserved TABLE OF CONTENTS PAGE Helpful Hints for All Tests...1 Tests

More information

QUANTITATIVE METHODS BIOLOGY FINAL HONOUR SCHOOL NON-PARAMETRIC TESTS

QUANTITATIVE METHODS BIOLOGY FINAL HONOUR SCHOOL NON-PARAMETRIC TESTS QUANTITATIVE METHODS BIOLOGY FINAL HONOUR SCHOOL NON-PARAMETRIC TESTS This booklet contains lecture notes for the nonparametric work in the QM course. This booklet may be online at http://users.ox.ac.uk/~grafen/qmnotes/index.html.

More information

Testing Research and Statistical Hypotheses

Testing Research and Statistical Hypotheses Testing Research and Statistical Hypotheses Introduction In the last lab we analyzed metric artifact attributes such as thickness or width/thickness ratio. Those were continuous variables, which as you

More information

Two Correlated Proportions (McNemar Test)

Two Correlated Proportions (McNemar Test) Chapter 50 Two Correlated Proportions (Mcemar Test) Introduction This procedure computes confidence intervals and hypothesis tests for the comparison of the marginal frequencies of two factors (each with

More information

Session 7 Bivariate Data and Analysis

Session 7 Bivariate Data and Analysis Session 7 Bivariate Data and Analysis Key Terms for This Session Previously Introduced mean standard deviation New in This Session association bivariate analysis contingency table co-variation least squares

More information

Topic 8. Chi Square Tests

Topic 8. Chi Square Tests BE540W Chi Square Tests Page 1 of 5 Topic 8 Chi Square Tests Topics 1. Introduction to Contingency Tables. Introduction to the Contingency Table Hypothesis Test of No Association.. 3. The Chi Square Test

More information

6.042/18.062J Mathematics for Computer Science. Expected Value I

6.042/18.062J Mathematics for Computer Science. Expected Value I 6.42/8.62J Mathematics for Computer Science Srini Devadas and Eric Lehman May 3, 25 Lecture otes Expected Value I The expectation or expected value of a random variable is a single number that tells you

More information

Mind on Statistics. Chapter 4

Mind on Statistics. Chapter 4 Mind on Statistics Chapter 4 Sections 4.1 Questions 1 to 4: The table below shows the counts by gender and highest degree attained for 498 respondents in the General Social Survey. Highest Degree Gender

More information

WISE Power Tutorial All Exercises

WISE Power Tutorial All Exercises ame Date Class WISE Power Tutorial All Exercises Power: The B.E.A.. Mnemonic Four interrelated features of power can be summarized using BEA B Beta Error (Power = 1 Beta Error): Beta error (or Type II

More information

STATISTICS 8, FINAL EXAM. Last six digits of Student ID#: Circle your Discussion Section: 1 2 3 4

STATISTICS 8, FINAL EXAM. Last six digits of Student ID#: Circle your Discussion Section: 1 2 3 4 STATISTICS 8, FINAL EXAM NAME: KEY Seat Number: Last six digits of Student ID#: Circle your Discussion Section: 1 2 3 4 Make sure you have 8 pages. You will be provided with a table as well, as a separate

More information

CALCULATIONS & STATISTICS

CALCULATIONS & STATISTICS CALCULATIONS & STATISTICS CALCULATION OF SCORES Conversion of 1-5 scale to 0-100 scores When you look at your report, you will notice that the scores are reported on a 0-100 scale, even though respondents

More information

Three-Stage Phase II Clinical Trials

Three-Stage Phase II Clinical Trials Chapter 130 Three-Stage Phase II Clinical Trials Introduction Phase II clinical trials determine whether a drug or regimen has sufficient activity against disease to warrant more extensive study and development.

More information

The Wilcoxon Rank-Sum Test

The Wilcoxon Rank-Sum Test 1 The Wilcoxon Rank-Sum Test The Wilcoxon rank-sum test is a nonparametric alternative to the twosample t-test which is based solely on the order in which the observations from the two samples fall. We

More information

Mean = (sum of the values / the number of the value) if probabilities are equal

Mean = (sum of the values / the number of the value) if probabilities are equal Population Mean Mean = (sum of the values / the number of the value) if probabilities are equal Compute the population mean Population/Sample mean: 1. Collect the data 2. sum all the values in the population/sample.

More information

Gaming the Law of Large Numbers

Gaming the Law of Large Numbers Gaming the Law of Large Numbers Thomas Hoffman and Bart Snapp July 3, 2012 Many of us view mathematics as a rich and wonderfully elaborate game. In turn, games can be used to illustrate mathematical ideas.

More information

Test Positive True Positive False Positive. Test Negative False Negative True Negative. Figure 5-1: 2 x 2 Contingency Table

Test Positive True Positive False Positive. Test Negative False Negative True Negative. Figure 5-1: 2 x 2 Contingency Table ANALYSIS OF DISCRT VARIABLS / 5 CHAPTR FIV ANALYSIS OF DISCRT VARIABLS Discrete variables are those which can only assume certain fixed values. xamples include outcome variables with results such as live

More information

AP: LAB 8: THE CHI-SQUARE TEST. Probability, Random Chance, and Genetics

AP: LAB 8: THE CHI-SQUARE TEST. Probability, Random Chance, and Genetics Ms. Foglia Date AP: LAB 8: THE CHI-SQUARE TEST Probability, Random Chance, and Genetics Why do we study random chance and probability at the beginning of a unit on genetics? Genetics is the study of inheritance,

More information

WEEK #22: PDFs and CDFs, Measures of Center and Spread

WEEK #22: PDFs and CDFs, Measures of Center and Spread WEEK #22: PDFs and CDFs, Measures of Center and Spread Goals: Explore the effect of independent events in probability calculations. Present a number of ways to represent probability distributions. Textbook

More information

4. Continuous Random Variables, the Pareto and Normal Distributions

4. Continuous Random Variables, the Pareto and Normal Distributions 4. Continuous Random Variables, the Pareto and Normal Distributions A continuous random variable X can take any value in a given range (e.g. height, weight, age). The distribution of a continuous random

More information

MONT 107N Understanding Randomness Solutions For Final Examination May 11, 2010

MONT 107N Understanding Randomness Solutions For Final Examination May 11, 2010 MONT 07N Understanding Randomness Solutions For Final Examination May, 00 Short Answer (a) (0) How are the EV and SE for the sum of n draws with replacement from a box computed? Solution: The EV is n times

More information

The Null Hypothesis. Geoffrey R. Loftus University of Washington

The Null Hypothesis. Geoffrey R. Loftus University of Washington The Null Hypothesis Geoffrey R. Loftus University of Washington Send correspondence to: Geoffrey R. Loftus Department of Psychology, Box 351525 University of Washington Seattle, WA 98195-1525 gloftus@u.washington.edu

More information

Nonparametric statistics and model selection

Nonparametric statistics and model selection Chapter 5 Nonparametric statistics and model selection In Chapter, we learned about the t-test and its variations. These were designed to compare sample means, and relied heavily on assumptions of normality.

More information

ECON1003: Analysis of Economic Data Fall 2003 Answers to Quiz #2 11:40a.m. 12:25p.m. (45 minutes) Tuesday, October 28, 2003

ECON1003: Analysis of Economic Data Fall 2003 Answers to Quiz #2 11:40a.m. 12:25p.m. (45 minutes) Tuesday, October 28, 2003 ECON1003: Analysis of Economic Data Fall 2003 Answers to Quiz #2 11:40a.m. 12:25p.m. (45 minutes) Tuesday, October 28, 2003 1. (4 points) The number of claims for missing baggage for a well-known airline

More information

The Effect of Dropping a Ball from Different Heights on the Number of Times the Ball Bounces

The Effect of Dropping a Ball from Different Heights on the Number of Times the Ball Bounces The Effect of Dropping a Ball from Different Heights on the Number of Times the Ball Bounces Or: How I Learned to Stop Worrying and Love the Ball Comment [DP1]: Titles, headings, and figure/table captions

More information

Hypothesis Testing. Steps for a hypothesis test:

Hypothesis Testing. Steps for a hypothesis test: Hypothesis Testing Steps for a hypothesis test: 1. State the claim H 0 and the alternative, H a 2. Choose a significance level or use the given one. 3. Draw the sampling distribution based on the assumption

More information

AP Statistics 7!3! 6!

AP Statistics 7!3! 6! Lesson 6-4 Introduction to Binomial Distributions Factorials 3!= Definition: n! = n( n 1)( n 2)...(3)(2)(1), n 0 Note: 0! = 1 (by definition) Ex. #1 Evaluate: a) 5! b) 3!(4!) c) 7!3! 6! d) 22! 21! 20!

More information

Mgmt 469. Model Specification: Choosing the Right Variables for the Right Hand Side

Mgmt 469. Model Specification: Choosing the Right Variables for the Right Hand Side Mgmt 469 Model Specification: Choosing the Right Variables for the Right Hand Side Even if you have only a handful of predictor variables to choose from, there are infinitely many ways to specify the right

More information

Procedure for Graphing Polynomial Functions

Procedure for Graphing Polynomial Functions Procedure for Graphing Polynomial Functions P(x) = a n x n + a n-1 x n-1 + + a 1 x + a 0 To graph P(x): As an example, we will examine the following polynomial function: P(x) = 2x 3 3x 2 23x + 12 1. Determine

More information

In the situations that we will encounter, we may generally calculate the probability of an event

In the situations that we will encounter, we may generally calculate the probability of an event What does it mean for something to be random? An event is called random if the process which produces the outcome is sufficiently complicated that we are unable to predict the precise result and are instead

More information

In the past, the increase in the price of gasoline could be attributed to major national or global

In the past, the increase in the price of gasoline could be attributed to major national or global Chapter 7 Testing Hypotheses Chapter Learning Objectives Understanding the assumptions of statistical hypothesis testing Defining and applying the components in hypothesis testing: the research and null

More information

"Statistical methods are objective methods by which group trends are abstracted from observations on many separate individuals." 1

Statistical methods are objective methods by which group trends are abstracted from observations on many separate individuals. 1 BASIC STATISTICAL THEORY / 3 CHAPTER ONE BASIC STATISTICAL THEORY "Statistical methods are objective methods by which group trends are abstracted from observations on many separate individuals." 1 Medicine

More information

Binomial random variables

Binomial random variables Binomial and Poisson Random Variables Solutions STAT-UB.0103 Statistics for Business Control and Regression Models Binomial random variables 1. A certain coin has a 5% of landing heads, and a 75% chance

More information

STAT 35A HW2 Solutions

STAT 35A HW2 Solutions STAT 35A HW2 Solutions http://www.stat.ucla.edu/~dinov/courses_students.dir/09/spring/stat35.dir 1. A computer consulting firm presently has bids out on three projects. Let A i = { awarded project i },

More information

Non-Parametric Tests (I)

Non-Parametric Tests (I) Lecture 5: Non-Parametric Tests (I) KimHuat LIM lim@stats.ox.ac.uk http://www.stats.ox.ac.uk/~lim/teaching.html Slide 1 5.1 Outline (i) Overview of Distribution-Free Tests (ii) Median Test for Two Independent

More information

Mind on Statistics. Chapter 8

Mind on Statistics. Chapter 8 Mind on Statistics Chapter 8 Sections 8.1-8.2 Questions 1 to 4: For each situation, decide if the random variable described is a discrete random variable or a continuous random variable. 1. Random variable

More information

Having a coin come up heads or tails is a variable on a nominal scale. Heads is a different category from tails.

Having a coin come up heads or tails is a variable on a nominal scale. Heads is a different category from tails. Chi-square Goodness of Fit Test The chi-square test is designed to test differences whether one frequency is different from another frequency. The chi-square test is designed for use with data on a nominal

More information

Tests for One Proportion

Tests for One Proportion Chapter 100 Tests for One Proportion Introduction The One-Sample Proportion Test is used to assess whether a population proportion (P1) is significantly different from a hypothesized value (P0). This is

More information

Psychology 60 Fall 2013 Practice Exam Actual Exam: Next Monday. Good luck!

Psychology 60 Fall 2013 Practice Exam Actual Exam: Next Monday. Good luck! Psychology 60 Fall 2013 Practice Exam Actual Exam: Next Monday. Good luck! Name: 1. The basic idea behind hypothesis testing: A. is important only if you want to compare two populations. B. depends on

More information

People have thought about, and defined, probability in different ways. important to note the consequences of the definition:

People have thought about, and defined, probability in different ways. important to note the consequences of the definition: PROBABILITY AND LIKELIHOOD, A BRIEF INTRODUCTION IN SUPPORT OF A COURSE ON MOLECULAR EVOLUTION (BIOL 3046) Probability The subject of PROBABILITY is a branch of mathematics dedicated to building models

More information

Demand, Supply, and Market Equilibrium

Demand, Supply, and Market Equilibrium 3 Demand, Supply, and Market Equilibrium The price of vanilla is bouncing. A kilogram (2.2 pounds) of vanilla beans sold for $50 in 2000, but by 2003 the price had risen to $500 per kilogram. The price

More information

Nonlinear Regression Functions. SW Ch 8 1/54/

Nonlinear Regression Functions. SW Ch 8 1/54/ Nonlinear Regression Functions SW Ch 8 1/54/ The TestScore STR relation looks linear (maybe) SW Ch 8 2/54/ But the TestScore Income relation looks nonlinear... SW Ch 8 3/54/ Nonlinear Regression General

More information