Common models and contrasts. Tuesday, Lecture 5 Jeanette Mumford University of Wisconsin - Madison

Size: px
Start display at page:

Download "Common models and contrasts. Tuesday, Lecture 5 Jeanette Mumford University of Wisconsin - Madison"

Transcription

1 ommon models and contrasts Tuesday, Lecture 5 Jeanette Mumford University of Wisconsin - Madison

2 Let s set up some simple models 1-sample t-test -sample t-test With contrasts!

3 1-sample t-test Y = 0 +

4 1-sample t-test Y Y = Y N 1

5 1-sample t-test Y Y = Y N 1 Multiply out the right hand side

6 1-sample t-test Y Y = Y N 0 Multiply out the right hand side

7 ut why is it the mean and not something else?

8 ut why is it the mean and not something else? ecause we re using least squares!

9 Two-sample t-test There are at least ways I can think of parameterizing this! Start with the easiest a person is either in group 1 or in group Y i = 1 {sub i in group 1?} + {sub i in group?} +

10 Two-sample t-test There are at least ways I can think of parameterizing this! Start with the easiest a person is either in group 1 or in group Y i = 1 G 1i + G i + group indicator variables

11 Two-sample t-test Group 1 Group 6 4 Y 1 Y Y Y 4 Y = apple 1 + Y 6 0 1

12 Two-sample t-test Y 1 Y Y Y 4 Y 5 Y =

13 Two-sample t-test 6 4 Y 1 Y Y Y 4 Y = mean for Group 1 + mean for Group Y 6

14 Two-sample t-test (another way) Now you do it. Unwrap what this means Y i = {subject i in Group 1} +

15 ontrasts ontrasts are vectors that pull out what we d like to test Using the two sample t-test from the first example, we might test Is the mean of G1 larger than 0? Is the mean of G larger than 0? Is the mean of G1 > G?

16 General idea Take your contrast statement and get it to look like something > 0 Figure out the vector, c, such that c = something

17 6 4 Y 1 Y Y Y 4 Y 5 Is group 1 > 0? 7 5 = Y We ve already established the first beta represents group 1 s mean c = [1, 0] pulls out the first beta apple

18 6 4 Y 1 Y Y Y 4 Y 5 Is group > 0? 7 5 = Y We ve already established the second beta represents group s mean c = [0, 1] pulls out the first beta apple

19 6 4 Is group 1 > group? Y First, get something > 0 group 1 group > 0 c = [1, -1] Y 1 Y Y Y 4 Y = apple = 1 1 apple 1 1 +

20 6 4 Is group 1 > group? Y First, get something > 0 group 1 group > 0 c = [1, -1] Y 1 Y Y Y 4 Y = apple = 1 1 apple 1 1 +

21 6 4 Is group 1 > group? Y First, get something > 0 group 1 group > 0 c = [1, -1] Y 1 Y Y Y 4 Y = apple = 1 1 apple 1 1 +

22 6 4 Is group 1 > group? Y First, get something > 0 group 1 group > 0 c = [1, -1] Y 1 Y Y Y 4 Y = apple = 1 1 apple 1 1 +

23 an you do this for the second setup of the -sample t-test?

24 Take away Did you feel pretty confident with the last example? Yes = Yay! No = Ask questions!

25 What you re going to learn Paired t-test 1-way ANOVA with levels Detour to introduce F-tests x ANOVA Revisit mean centering

26 Paired t-test 1-way ANOVA with levels and repeated measures Wow, sounds so fancy!

27 Paired T Test A common mistake is to use a -sample t test instead of a paired test Tire example -sample T test p=0.58 Paired T test p<0.001 Automobile Tire A Tire

28 Why so different?

29 Why so different? Mean A Mean

30 Why so different? Difference is OK

31 Why so different? Residuals are HUGE!

32 Paired T Test Adjust for the mean of each pair

33 Paired T Test Mean A Mean

34 Paired T Test Difference is same Residual variance much smaller

35 Paired T Test GLM

36 Paired T Test GLM Mean of each pair

37 Paired T Test GLM Difference Mean of each pair

38 Paired T Test GLM Difference Mean of each pair HA : A> =) HA : A >0 c = [ ]

39 Paired T Test GLM Difference Mean of each pair HA : A> =) HA : A >0 c = [ ] What if you wanted to test HA: >A?

40 SPM is slightly different A 1 1 A A A 4 4 A A = A A

41 SPM is slightly different A 1 1 A A A 4 4 A A = A A Rank deficient, but that s okay in SPM. an you construct the contrast for A>?

42 1-Way ANOVA levels asically an extended -sample t-test I will teach the cell means approach ells = ollections of data within each factor level (or level combination) -level 1-way ANOVA has ** cells e.g. types of intervention

43 1-Way ANOVA levels L1 1 L1 L1 L 1 L L L 1 L L 1 A = A 1 1 A

44 1-Way ANOVA levels L1 1 L1 L1 L 1 L L L 1 L L 1 A = an you come up with a contrast to test if L1 > L? 1 A

45 1-Way ANOVA levels L1 1 L1 L1 L 1 L L L 1 L L 1 A = an you come up with a contrast to test if average of L1 and L > L 1 A

46 General rule for contrasts I m only willing to make this claim for cell means models (what we ve been doing) Positive parts of contrast (if present) should sum to 1 Negative parts of contrast (if present) should sum to -1 For previous example, we could have used [1 1 -] Stats would have been the same, but contrast estimates would differ

47 F-tests Simultaneously test multiple contrasts E.g. are any of the levels different from each other? L1 = L = L Rejection of the null implies at least 1 difference L1&L differ or L1&L differ or L&L differ

48 F-tests Uses a contrast matrix Tips for constructing matrix Start with your alternative Get a 0 on the end of your system of equations reak it up

49 F-tests Uses a contrast matrix Tips for constructing matrix Start with your null Get a 0 on the end of your system of equations reak it up H0 :L1 =L =L

50 F-tests Uses a contrast matrix Tips for constructing matrix Start with your null Get a 0 on the end of your system of equations reak it up H0 :L1 L =L L =0

51 F-tests Uses a contrast matrix Tips for constructing matrix Start with your null Get a 0 on the end of your system of equations reak it up to get HA HA : L1 L 6= 0 or L L 6= 0

52 F-tests Uses a contrast matrix Tips for constructing matrix Start with your null Get a 0 on the end of your system of equations reak it up to get HA reate contrast matrix HA : L1 L 6= 0 or L L 6= 0

53 F-tests Uses a contrast matrix Tips for constructing matrix Start with your null Get a 0 on the end of your system of equations reak it up to get HA reate contrast matrix

54 T-test vs F-test T- stat using contrast c t = ˆ dvar c ˆ

55 T-test vs F-test T- stat using contrast t = c(x0 X) 1 X 0 Y p c(x0 X) 1 c 0ˆ

56 T-test vs F-test T- stat using contrast t = c(x0 X) 1 X 0 Y p c(x0 X) 1 c 0ˆ F-stat : still has mean/variance structure but with matrices

57 T-test vs F-test T- stat using contrast t = c(x0 X) 1 X 0 Y p c(x0 X) 1 c 0ˆ F-stat : still has mean/variance structure but with matrices f df 1,df = c 0 ˆ 0 c 0 (X 0 X) 1 crˆ 1 c 0 ˆ

58 T-test vs F-test T- stat using contrast t = c(x0 X) 1 X 0 Y p c(x0 X) 1 c 0ˆ F-stat : still has mean/variance structure but with matrices f df 1,df = c 0 ˆ 0 c 0 (X 0 X) 1 crˆ 1 c 0 ˆ r x p contrast matrix

59 T-test vs F-test T- stat using contrast t = c(x0 X) 1 X 0 Y p c(x0 X) 1 c 0ˆ F-stat : still has mean/variance structure but with matrices f df 1,df = c 0 ˆ 0 c 0 (X 0 X) 1 crˆ 1 c 0 ˆ r=# row in c

60 T-test vs F-test T- stat using contrast t = c(x0 X) 1 X 0 Y p c(x0 X) 1 c 0ˆ F-stat : still has mean/variance structure but with matrices f df 1,df = c 0 ˆ 0 c 0 (X 0 X) 1 crˆ 1 c 0 ˆ df1 = r, df = N-p ~ F(df1, df)

61 T-test vs F-test T- stat using contrast t = c(x0 X) 1 X 0 Y p c(x0 X) 1 c 0ˆ F-stat : still has mean/variance structure but with matrices f df 1,df = c 0 ˆ 0 c 0 (X 0 X) 1 crˆ 1 c 0 ˆ Does this boil down to a scalar or a matrix?

62 When an F-test is a T-test If r=1 (contrast matrix has one row) Your F-test is equivalent to a -sided t-test

63 Uses for F-test ut down on multiple comparisons Instead of running separate t-tests, you can run a single f-test If F-test is significant you can look at separate t- tests to see what s going on If F-test isn t significant, none of your separate contrasts is significant

64 Uses for F-test ut down on multiple comparisons Instead of running separate t-tests, you can run a single f-test If F-test is significant you can look at separate t- tests to see what s going on If F-test isn t significant, none of your separate contrasts is significant Or is it!?!?!

65 F-test vs T-test illustration onsider the following F-test H0 : 1 = =0

66 F-test vs T-test illustration onsider the following F-test H0 : 1 = =0 1 0 c = 0 1

67 F-test vs T-test illustration onsider the following F-test H0 : 1 = =0 1 0 c = 0 1 We will compare to the separate t-tests

68 F-test vs T-test illustration onsider the following F-test H0 : 1 = =0 1 0 c = 0 1 We will compare to the separate t-tests Hope: If the F-test is significant, at least one of the t-tests is significant

69 b b 1

70 b t-test for beta1 significant b 1

71 b t-test for beta significant b 1

72 b Outside circle, F-test is significant b 1

73 b All tests significant b 1

74 b F and t for beta1 significant b 1

75 b None significant b 1

76 b F isn t significant but t is!! b 1

77 b F is significant and t s aren t! b 1

78 Do those last cases ever really happen? Yes! That s why I looked into it J More likely to occur if you re riding the p=0.05 edge Still not a bad idea to run F-tests

79 x ANOVA levels of gender levels of intervention Yet another extension of the -sample t-test Just focus on the cells How many cells are there? That s how many regressors you must have

80 F, L1 1 F, L1 F, L 1 F, L F, L 1 F, L M,L1 1 M,L1 M,L 1 M,L M,L 1 M,L 1 A x ANOVA = A A onstruct the contrast for F>M

81 F, L1 1 F, L1 F, L 1 F, L F, L 1 F, L M,L1 1 M,L1 M,L 1 M,L M,L 1 M,L 1 A x ANOVA = A A How about L1 = L = L?

82 F, L1 1 F, L1 F, L 1 F, L F, L 1 F, L M,L1 1 M,L1 M,L 1 M,L M,L 1 M,L 1 A x ANOVA = A A How about the interaction?

83 x ANOVA The interaction, what does it mean? That males and females differ for at least one level No interaction L1 L L

84 x ANOVA The interaction, what does it mean? That males and females differ for at least one level Interaction L1 L L

85 x ANOVA The interaction, what does it mean? That males and females differ for at least one level (there are multiple ways this can occur) Interaction L1 L L

86 x ANOVA What does the null look like? M-F differences the same for all levels

87 x ANOVA What does the null look like? M-F differences the same for all levels H0 :F, L1 M,L1 =F, L M,L =F, L M,L

88 x ANOVA What does the null look like? M-F differences the same for all levels H0 :F, L1 M,L1 =F, L M,L =F, L M,L What is this in terms of the betas??

89 x ANOVA What does the null look like? M-F differences the same for all levels H0 :F, L1 M,L1 =F, L M,L =F, L M,L Get zero on end and split to get HA HA :( 1 4 ) ( 6 ) 6= 0 or ( 5 ) ( 6 ) 6= 0

90 x ANOVA What does the null look like? M-F differences the same for all levels H0 :F, L1 M,L1 =F, L M,L =F, L M,L Get zero on end and split to get HA HA :( 1 4 ) ( 6 ) 6= 0 or ( 5 ) ( 6 ) 6= 0 an you construct the contrast matrix?

91 Time for a curve ball What if I parameterized the model differently? an you still figure out the contrasts? I ll show you a trick to get contrasts with ease

92 How to grab contrasts off design matrix Ask yourself the following questions Are there the appropriate number of regressors e.g. x ANOVA needs 6 regressors Is this matrix full rank? compute rank(x) in matlab, rank(x) = # columns If matrix isn t full rank, hopefully there s a column you can dump to make it full rank. Just ignore this column Within cell do the rows of the design matrix match? e.g. all female subjects in L1 If yes to all, the design matrix row is the contrast for that cell

93 1 Way ANOVA - Factor Effects

94 1 Way ANOVA - Factor Effects

95 1 Way ANOVA - Factor Effects

96 1 Way ANOVA - Factor Effects

97 1 Way ANOVA - Factor Effects

98 1 Way ANOVA - Factor Effects Now you can combine these to compare groups

99 1 Way ANOVA - Factor Effects HA : G1 G > 0 =) ( 1 + ) ( 1 + ) > 0 =) > 0

100 Is there time for mean centering regressors?

101 Mean centering regressors Is it magic? No Model fit is the same Just changes the interpretation of some of the parameters in your model

102 Review Age (years) RT (s) RT = Age +

103 General observation Y = X + The intercept is simply the value of Y when X is 0 No matter what X is

104 Mean centering age RT = Age + vs RT = Age demeaned +

105 Mean centering age RT = Age + vs RT = (Age mean(age)) +

106 Mean centering age RT = Age + vs RT = (Age mean(age)) + 0 RT when Age = 0 0 RT when Age-mean(Age) = 0 RT when Age = mean(age) (or just mean RT)

107 Mean centering age RT = Age + vs RT = (Age mean(age)) + 0 RT when Age = 0 0 These are not the same RT when Age-mean(Age) = 0 RT when Age = mean(age) (or just mean RT)

108 Mean centering age RT = Age + vs RT = (Age mean(age)) + The same! a 1 year difference in mean centered age is the same as a 1 year difference in age ages: 10, 11, 8, 9, 10, 1 ages mean centered: 0, 1, -, -1, 0,

109 Mean centering age RT = Age + vs RT = (Age mean(age)) + The same! a 1 year difference in mean centered age is the same as a 1 year difference in age ages: 10, 11, 8, 9, 10, 1 ages mean centered: 0, 1, -, -1, 0,

110 Mean centering age RT = Age + vs RT = (Age mean(age)) + The same! a 1 year difference in mean centered age is the same as a 1 year difference in age ages: 10, 11, 8, 9, 10, 1 ages mean centered: 0, 1, -, -1, 0,

111 Mean centering age RT = Age + vs RT = (Age mean(age)) + The same! a 1 year difference in mean centered age is the same as a 1 year difference in age ages: 10, 11, 8, 9, 10, 1 ages mean centered: 0, 1, -, -1, 0,

112 Mean centering X is basically moving the Y-axis Age (years) RT (s)

113 Age (years) RT (s) Mean centering X is basically moving the Y-axis

114 Mean centered age(years) RT (s) Mean centering X is basically moving the Y-axis

115 Interaction model group x age interaction Multiple ways to set it up I ll show most intuitive

116 Interaction model Hypothesis Does the RT/age slope vary by group? Regressors Mean for G1 Mean for G Slope for G1 Slope for G

117 Interaction model 6 4 Y 1 Y Y Y 4 Y 5 Y =

118 Interaction model 6 4 Y 1 Y Y Y 4 Y 5 Y = What is the contrast to test the interaction??

119 Interaction model 6 4 Y 1 Y Y Y 4 Y 5 Y = Does it make sense to test the [ ] contrast?

120 Interaction model : mean centering You can mean center age across all subjects Does not change inference for the interaction 6 4 Y 1 Y Y Y 4 Y 5 Y 6 hanges interpretation of first betas 7 5 =

121 Interaction model : mean centering Do not mean center within group There are some exceptions With this model, you may be interested in group difference adjusted for age. If you mean center within group, the age adjustment won t occur 6 4 Y 1 Y Y Y 4 Y 5 Y =

122 Interaction model : mean centering Do not mean center within group 6 4 There are some exceptions With this model, you may be interested in group difference adjusted for age. If you mean center within group, the age adjustment won t occur Y 1 Y Y Y 4 Y 5 Y =

123 Interaction model : mean centering Do not mean center within group 6 4 There are some exceptions With this model, you may be interested in group difference adjusted for age. If you mean center within group, the age adjustment won t occur Y 1 Y Y Y 4 Y 5 Y =

124 I have a handy pdf you can refer to ng/

125 All you need to know What does mean centering do to the parameter associated with the regressor that was centered? Does the model fit better after mean centering? What does change in the model?

126 Other model This is a great resource for the more complicated models s/rik_anova.pdf

127 How do these modeling things relate to SPM output? beta*.img eta image (one for each beta) con*.img ontrast estimates (numbered in order you specified your contrasts) spm_t*.img orresponding t-stats for each contrast ees*.img Extra sums of squares (relates to F-test)

128 How do these things relate to SPM output? spm_f_*.img F statistic output ResMS.img Estimate of σ

129 Questions?

Common models and contrasts. Tuesday, Lecture 2 Jeane5e Mumford University of Wisconsin - Madison

Common models and contrasts. Tuesday, Lecture 2 Jeane5e Mumford University of Wisconsin - Madison ommon models and contrasts Tuesday, Lecture Jeane5e Mumford University of Wisconsin - Madison Let s set up some simple models 1-sample t-test -sample t-test With contrasts! 1-sample t-test Y = 0 + 1-sample

More information

The General Linear Model. How we re approaching the GLM. What you ll get out of this 8/11/16

The General Linear Model. How we re approaching the GLM. What you ll get out of this 8/11/16 8// The General Linear Model Monday, Lecture Jeanette Mumford University of Wisconsin - Madison How we re approaching the GLM Regression for behavioral data Without using matrices Understand least squares

More information

The General Linear Model. Monday, Lecture 2 Jeanette Mumford University of Wisconsin - Madison

The General Linear Model. Monday, Lecture 2 Jeanette Mumford University of Wisconsin - Madison The General Linear Model Monday, Lecture 2 Jeanette Mumford University of Wisconsin - Madison How we re approaching the GLM Regression for behavioral data Without using matrices Understand least squares

More information

LECTURE 15: SIMPLE LINEAR REGRESSION I

LECTURE 15: SIMPLE LINEAR REGRESSION I David Youngberg BSAD 20 Montgomery College LECTURE 5: SIMPLE LINEAR REGRESSION I I. From Correlation to Regression a. Recall last class when we discussed two basic types of correlation (positive and negative).

More information

Business Statistics. Lecture 9: Simple Regression

Business Statistics. Lecture 9: Simple Regression Business Statistics Lecture 9: Simple Regression 1 On to Model Building! Up to now, class was about descriptive and inferential statistics Numerical and graphical summaries of data Confidence intervals

More information

Chapter 26: Comparing Counts (Chi Square)

Chapter 26: Comparing Counts (Chi Square) Chapter 6: Comparing Counts (Chi Square) We ve seen that you can turn a qualitative variable into a quantitative one (by counting the number of successes and failures), but that s a compromise it forces

More information

1.) Fit the full model, i.e., allow for separate regression lines (different slopes and intercepts) for each species

1.) Fit the full model, i.e., allow for separate regression lines (different slopes and intercepts) for each species Lecture notes 2/22/2000 Dummy variables and extra SS F-test Page 1 Crab claw size and closing force. Problem 7.25, 10.9, and 10.10 Regression for all species at once, i.e., include dummy variables for

More information

Chapter 12 - Lecture 2 Inferences about regression coefficient

Chapter 12 - Lecture 2 Inferences about regression coefficient Chapter 12 - Lecture 2 Inferences about regression coefficient April 19th, 2010 Facts about slope Test Statistic Confidence interval Hypothesis testing Test using ANOVA Table Facts about slope In previous

More information

Review of Multiple Regression

Review of Multiple Regression Ronald H. Heck 1 Let s begin with a little review of multiple regression this week. Linear models [e.g., correlation, t-tests, analysis of variance (ANOVA), multiple regression, path analysis, multivariate

More information

1. (Problem 3.4 in OLRT)

1. (Problem 3.4 in OLRT) STAT:5201 Homework 5 Solutions 1. (Problem 3.4 in OLRT) The relationship of the untransformed data is shown below. There does appear to be a decrease in adenine with increased caffeine intake. This is

More information

base 2 4 The EXPONENT tells you how many times to write the base as a factor. Evaluate the following expressions in standard notation.

base 2 4 The EXPONENT tells you how many times to write the base as a factor. Evaluate the following expressions in standard notation. EXPONENTIALS Exponential is a number written with an exponent. The rules for exponents make computing with very large or very small numbers easier. Students will come across exponentials in geometric sequences

More information

Chapter 27 Summary Inferences for Regression

Chapter 27 Summary Inferences for Regression Chapter 7 Summary Inferences for Regression What have we learned? We have now applied inference to regression models. Like in all inference situations, there are conditions that we must check. We can test

More information

Contingency Tables. Safety equipment in use Fatal Non-fatal Total. None 1, , ,128 Seat belt , ,878

Contingency Tables. Safety equipment in use Fatal Non-fatal Total. None 1, , ,128 Seat belt , ,878 Contingency Tables I. Definition & Examples. A) Contingency tables are tables where we are looking at two (or more - but we won t cover three or more way tables, it s way too complicated) factors, each

More information

Regression, part II. I. What does it all mean? A) Notice that so far all we ve done is math.

Regression, part II. I. What does it all mean? A) Notice that so far all we ve done is math. Regression, part II I. What does it all mean? A) Notice that so far all we ve done is math. 1) One can calculate the Least Squares Regression Line for anything, regardless of any assumptions. 2) But, if

More information

Quadratic Equations Part I

Quadratic Equations Part I Quadratic Equations Part I Before proceeding with this section we should note that the topic of solving quadratic equations will be covered in two sections. This is done for the benefit of those viewing

More information

CHI SQUARE ANALYSIS 8/18/2011 HYPOTHESIS TESTS SO FAR PARAMETRIC VS. NON-PARAMETRIC

CHI SQUARE ANALYSIS 8/18/2011 HYPOTHESIS TESTS SO FAR PARAMETRIC VS. NON-PARAMETRIC CHI SQUARE ANALYSIS I N T R O D U C T I O N T O N O N - P A R A M E T R I C A N A L Y S E S HYPOTHESIS TESTS SO FAR We ve discussed One-sample t-test Dependent Sample t-tests Independent Samples t-tests

More information

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2 Final Review Sheet The final will cover Sections Chapters 1,2,3 and 4, as well as sections 5.1-5.4, 6.1-6.2 and 7.1-7.3 from chapters 5,6 and 7. This is essentially all material covered this term. Watch

More information

Lecture 10: Powers of Matrices, Difference Equations

Lecture 10: Powers of Matrices, Difference Equations Lecture 10: Powers of Matrices, Difference Equations Difference Equations A difference equation, also sometimes called a recurrence equation is an equation that defines a sequence recursively, i.e. each

More information

Lesson 3-1: Solving Linear Systems by Graphing

Lesson 3-1: Solving Linear Systems by Graphing For the past several weeks we ve been working with linear equations. We ve learned how to graph them and the three main forms they can take. Today we re going to begin considering what happens when we

More information

Algebra & Trig Review

Algebra & Trig Review Algebra & Trig Review 1 Algebra & Trig Review This review was originally written for my Calculus I class, but it should be accessible to anyone needing a review in some basic algebra and trig topics. The

More information

appstats27.notebook April 06, 2017

appstats27.notebook April 06, 2017 Chapter 27 Objective Students will conduct inference on regression and analyze data to write a conclusion. Inferences for Regression An Example: Body Fat and Waist Size pg 634 Our chapter example revolves

More information

REVIEW 8/2/2017 陈芳华东师大英语系

REVIEW 8/2/2017 陈芳华东师大英语系 REVIEW Hypothesis testing starts with a null hypothesis and a null distribution. We compare what we have to the null distribution, if the result is too extreme to belong to the null distribution (p

More information

Multilevel Models in Matrix Form. Lecture 7 July 27, 2011 Advanced Multivariate Statistical Methods ICPSR Summer Session #2

Multilevel Models in Matrix Form. Lecture 7 July 27, 2011 Advanced Multivariate Statistical Methods ICPSR Summer Session #2 Multilevel Models in Matrix Form Lecture 7 July 27, 2011 Advanced Multivariate Statistical Methods ICPSR Summer Session #2 Today s Lecture Linear models from a matrix perspective An example of how to do

More information

Intro to Linear Regression

Intro to Linear Regression Intro to Linear Regression Introduction to Regression Regression is a statistical procedure for modeling the relationship among variables to predict the value of a dependent variable from one or more predictor

More information

Simple Linear Regression for the Climate Data

Simple Linear Regression for the Climate Data Prediction Prediction Interval Temperature 0.2 0.0 0.2 0.4 0.6 0.8 320 340 360 380 CO 2 Simple Linear Regression for the Climate Data What do we do with the data? y i = Temperature of i th Year x i =CO

More information

An Introduction to Path Analysis

An Introduction to Path Analysis An Introduction to Path Analysis PRE 905: Multivariate Analysis Lecture 10: April 15, 2014 PRE 905: Lecture 10 Path Analysis Today s Lecture Path analysis starting with multivariate regression then arriving

More information

Conceptual Explanations: Simultaneous Equations Distance, rate, and time

Conceptual Explanations: Simultaneous Equations Distance, rate, and time Conceptual Explanations: Simultaneous Equations Distance, rate, and time If you travel 30 miles per hour for 4 hours, how far do you go? A little common sense will tell you that the answer is 120 miles.

More information

Ratios, Proportions, Unit Conversions, and the Factor-Label Method

Ratios, Proportions, Unit Conversions, and the Factor-Label Method Ratios, Proportions, Unit Conversions, and the Factor-Label Method Math 0, Littlefield I don t know why, but presentations about ratios and proportions are often confused and fragmented. The one in your

More information

Math Fundamentals for Statistics I (Math 52) Unit 7: Connections (Graphs, Equations and Inequalities)

Math Fundamentals for Statistics I (Math 52) Unit 7: Connections (Graphs, Equations and Inequalities) Math Fundamentals for Statistics I (Math 52) Unit 7: Connections (Graphs, Equations and Inequalities) By Scott Fallstrom and Brent Pickett The How and Whys Guys This work is licensed under a Creative Commons

More information

Inference with Simple Regression

Inference with Simple Regression 1 Introduction Inference with Simple Regression Alan B. Gelder 06E:071, The University of Iowa 1 Moving to infinite means: In this course we have seen one-mean problems, twomean problems, and problems

More information

Usually, when we first formulate a problem in mathematics, we use the most familiar

Usually, when we first formulate a problem in mathematics, we use the most familiar Change of basis Usually, when we first formulate a problem in mathematics, we use the most familiar coordinates. In R, this means using the Cartesian coordinates x, y, and z. In vector terms, this is equivalent

More information

Uni- and Bivariate Power

Uni- and Bivariate Power Uni- and Bivariate Power Copyright 2002, 2014, J. Toby Mordkoff Note that the relationship between risk and power is unidirectional. Power depends on risk, but risk is completely independent of power.

More information

Multiple comparisons - subsequent inferences for two-way ANOVA

Multiple comparisons - subsequent inferences for two-way ANOVA 1 Multiple comparisons - subsequent inferences for two-way ANOVA the kinds of inferences to be made after the F tests of a two-way ANOVA depend on the results if none of the F tests lead to rejection of

More information

Roberto s Notes on Linear Algebra Chapter 4: Matrix Algebra Section 7. Inverse matrices

Roberto s Notes on Linear Algebra Chapter 4: Matrix Algebra Section 7. Inverse matrices Roberto s Notes on Linear Algebra Chapter 4: Matrix Algebra Section 7 Inverse matrices What you need to know already: How to add and multiply matrices. What elementary matrices are. What you can learn

More information

Multiple Regression Analysis

Multiple Regression Analysis Multiple Regression Analysis y = β 0 + β 1 x 1 + β 2 x 2 +... β k x k + u 2. Inference 0 Assumptions of the Classical Linear Model (CLM)! So far, we know: 1. The mean and variance of the OLS estimators

More information

A discussion on multiple regression models

A discussion on multiple regression models A discussion on multiple regression models In our previous discussion of simple linear regression, we focused on a model in which one independent or explanatory variable X was used to predict the value

More information

appstats8.notebook October 11, 2016

appstats8.notebook October 11, 2016 Chapter 8 Linear Regression Objective: Students will construct and analyze a linear model for a given set of data. Fat Versus Protein: An Example pg 168 The following is a scatterplot of total fat versus

More information

Algebra Exam. Solutions and Grading Guide

Algebra Exam. Solutions and Grading Guide Algebra Exam Solutions and Grading Guide You should use this grading guide to carefully grade your own exam, trying to be as objective as possible about what score the TAs would give your responses. Full

More information

Statistical Distribution Assumptions of General Linear Models

Statistical Distribution Assumptions of General Linear Models Statistical Distribution Assumptions of General Linear Models Applied Multilevel Models for Cross Sectional Data Lecture 4 ICPSR Summer Workshop University of Colorado Boulder Lecture 4: Statistical Distributions

More information

Regression and the 2-Sample t

Regression and the 2-Sample t Regression and the 2-Sample t James H. Steiger Department of Psychology and Human Development Vanderbilt University James H. Steiger (Vanderbilt University) Regression and the 2-Sample t 1 / 44 Regression

More information

My data doesn t look like that..

My data doesn t look like that.. Testing assumptions My data doesn t look like that.. We have made a big deal about testing model assumptions each week. Bill Pine Testing assumptions Testing assumptions We have made a big deal about testing

More information

review session gov 2000 gov 2000 () review session 1 / 38

review session gov 2000 gov 2000 () review session 1 / 38 review session gov 2000 gov 2000 () review session 1 / 38 Overview Random Variables and Probability Univariate Statistics Bivariate Statistics Multivariate Statistics Causal Inference gov 2000 () review

More information

Introduction to Survey Analysis!

Introduction to Survey Analysis! Introduction to Survey Analysis! Professor Ron Fricker! Naval Postgraduate School! Monterey, California! Reading Assignment:! 2/22/13 None! 1 Goals for this Lecture! Introduction to analysis for surveys!

More information

Solving with Absolute Value

Solving with Absolute Value Solving with Absolute Value Who knew two little lines could cause so much trouble? Ask someone to solve the equation 3x 2 = 7 and they ll say No problem! Add just two little lines, and ask them to solve

More information

Physics 6A Lab Experiment 6

Physics 6A Lab Experiment 6 Rewritten Biceps Lab Introduction This lab will be different from the others you ve done so far. First, we ll have some warmup exercises to familiarize yourself with some of the theory, as well as the

More information

Ch 7: Dummy (binary, indicator) variables

Ch 7: Dummy (binary, indicator) variables Ch 7: Dummy (binary, indicator) variables :Examples Dummy variable are used to indicate the presence or absence of a characteristic. For example, define female i 1 if obs i is female 0 otherwise or male

More information

Appendix A: Review of the General Linear Model

Appendix A: Review of the General Linear Model Appendix A: Review of the General Linear Model The generallinear modelis an important toolin many fmri data analyses. As the name general suggests, this model can be used for many different types of analyses,

More information

Univariate analysis. Simple and Multiple Regression. Univariate analysis. Simple Regression How best to summarise the data?

Univariate analysis. Simple and Multiple Regression. Univariate analysis. Simple Regression How best to summarise the data? Univariate analysis Example - linear regression equation: y = ax + c Least squares criteria ( yobs ycalc ) = yobs ( ax + c) = minimum Simple and + = xa xc xy xa + nc = y Solve for a and c Univariate analysis

More information

One sided tests. An example of a two sided alternative is what we ve been using for our two sample tests:

One sided tests. An example of a two sided alternative is what we ve been using for our two sample tests: One sided tests So far all of our tests have been two sided. While this may be a bit easier to understand, this is often not the best way to do a hypothesis test. One simple thing that we can do to get

More information

III. Inferential Tools

III. Inferential Tools III. Inferential Tools A. Introduction to Bat Echolocation Data (10.1.1) 1. Q: Do echolocating bats expend more enery than non-echolocating bats and birds, after accounting for mass? 2. Strategy: (i) Explore

More information

Module 03 Lecture 14 Inferential Statistics ANOVA and TOI

Module 03 Lecture 14 Inferential Statistics ANOVA and TOI Introduction of Data Analytics Prof. Nandan Sudarsanam and Prof. B Ravindran Department of Management Studies and Department of Computer Science and Engineering Indian Institute of Technology, Madras Module

More information

Intro to Linear Regression

Intro to Linear Regression Intro to Linear Regression Introduction to Regression Regression is a statistical procedure for modeling the relationship among variables to predict the value of a dependent variable from one or more predictor

More information

STA 101 Final Review

STA 101 Final Review STA 101 Final Review Statistics 101 Thomas Leininger June 24, 2013 Announcements All work (besides projects) should be returned to you and should be entered on Sakai. Office Hour: 2 3pm today (Old Chem

More information

Lecture 10: F -Tests, ANOVA and R 2

Lecture 10: F -Tests, ANOVA and R 2 Lecture 10: F -Tests, ANOVA and R 2 1 ANOVA We saw that we could test the null hypothesis that β 1 0 using the statistic ( β 1 0)/ŝe. (Although I also mentioned that confidence intervals are generally

More information

MITOCW ocw-18_02-f07-lec02_220k

MITOCW ocw-18_02-f07-lec02_220k MITOCW ocw-18_02-f07-lec02_220k The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality educational resources for free.

More information

Course Review. Kin 304W Week 14: April 9, 2013

Course Review. Kin 304W Week 14: April 9, 2013 Course Review Kin 304W Week 14: April 9, 2013 1 Today s Outline Format of Kin 304W Final Exam Course Review Hand back marked Project Part II 2 Kin 304W Final Exam Saturday, Thursday, April 18, 3:30-6:30

More information

Math101, Sections 2 and 3, Spring 2008 Review Sheet for Exam #2:

Math101, Sections 2 and 3, Spring 2008 Review Sheet for Exam #2: Math101, Sections 2 and 3, Spring 2008 Review Sheet for Exam #2: 03 17 08 3 All about lines 3.1 The Rectangular Coordinate System Know how to plot points in the rectangular coordinate system. Know the

More information

Hierarchical Generalized Linear Models. ERSH 8990 REMS Seminar on HLM Last Lecture!

Hierarchical Generalized Linear Models. ERSH 8990 REMS Seminar on HLM Last Lecture! Hierarchical Generalized Linear Models ERSH 8990 REMS Seminar on HLM Last Lecture! Hierarchical Generalized Linear Models Introduction to generalized models Models for binary outcomes Interpreting parameter

More information

CIVL 7012/8012. Simple Linear Regression. Lecture 3

CIVL 7012/8012. Simple Linear Regression. Lecture 3 CIVL 7012/8012 Simple Linear Regression Lecture 3 OLS assumptions - 1 Model of population Sample estimation (best-fit line) y = β 0 + β 1 x + ε y = b 0 + b 1 x We want E b 1 = β 1 ---> (1) Meaning we want

More information

Introduction. So, why did I even bother to write this?

Introduction. So, why did I even bother to write this? Introduction This review was originally written for my Calculus I class, but it should be accessible to anyone needing a review in some basic algebra and trig topics. The review contains the occasional

More information

An Introduction to Mplus and Path Analysis

An Introduction to Mplus and Path Analysis An Introduction to Mplus and Path Analysis PSYC 943: Fundamentals of Multivariate Modeling Lecture 10: October 30, 2013 PSYC 943: Lecture 10 Today s Lecture Path analysis starting with multivariate regression

More information

Objectives Simple linear regression. Statistical model for linear regression. Estimating the regression parameters

Objectives Simple linear regression. Statistical model for linear regression. Estimating the regression parameters Objectives 10.1 Simple linear regression Statistical model for linear regression Estimating the regression parameters Confidence interval for regression parameters Significance test for the slope Confidence

More information

Lectures 5 & 6: Hypothesis Testing

Lectures 5 & 6: Hypothesis Testing Lectures 5 & 6: Hypothesis Testing in which you learn to apply the concept of statistical significance to OLS estimates, learn the concept of t values, how to use them in regression work and come across

More information

Chi Square Analysis M&M Statistics. Name Period Date

Chi Square Analysis M&M Statistics. Name Period Date Chi Square Analysis M&M Statistics Name Period Date Have you ever wondered why the package of M&Ms you just bought never seems to have enough of your favorite color? Or, why is it that you always seem

More information

Physics 6A Lab Experiment 6

Physics 6A Lab Experiment 6 Biceps Muscle Model Physics 6A Lab Experiment 6 Introduction This lab will begin with some warm-up exercises to familiarize yourself with the theory, as well as the experimental setup. Then you ll move

More information

Solution to Proof Questions from September 1st

Solution to Proof Questions from September 1st Solution to Proof Questions from September 1st Olena Bormashenko September 4, 2011 What is a proof? A proof is an airtight logical argument that proves a certain statement in general. In a sense, it s

More information

Ordinary Least Squares Linear Regression

Ordinary Least Squares Linear Regression Ordinary Least Squares Linear Regression Ryan P. Adams COS 324 Elements of Machine Learning Princeton University Linear regression is one of the simplest and most fundamental modeling ideas in statistics

More information

Review of the General Linear Model

Review of the General Linear Model Review of the General Linear Model EPSY 905: Multivariate Analysis Online Lecture #2 Learning Objectives Types of distributions: Ø Conditional distributions The General Linear Model Ø Regression Ø Analysis

More information

Your schedule of coming weeks. One-way ANOVA, II. Review from last time. Review from last time /22/2004. Create ANOVA table

Your schedule of coming weeks. One-way ANOVA, II. Review from last time. Review from last time /22/2004. Create ANOVA table Your schedule of coming weeks One-way ANOVA, II 9.07 //00 Today: One-way ANOVA, part II Next week: Two-way ANOVA, parts I and II. One-way ANOVA HW due Thursday Week of May Teacher out of town all week

More information

Inferences for Regression

Inferences for Regression Inferences for Regression An Example: Body Fat and Waist Size Looking at the relationship between % body fat and waist size (in inches). Here is a scatterplot of our data set: Remembering Regression In

More information

Lecture 7: OLS with qualitative information

Lecture 7: OLS with qualitative information Lecture 7: OLS with qualitative information Dummy variables Dummy variable: an indicator that says whether a particular observation is in a category or not Like a light switch: on or off Most useful values:

More information

MATH 310, REVIEW SHEET 2

MATH 310, REVIEW SHEET 2 MATH 310, REVIEW SHEET 2 These notes are a very short summary of the key topics in the book (and follow the book pretty closely). You should be familiar with everything on here, but it s not comprehensive,

More information

Lecture 2: Linear regression

Lecture 2: Linear regression Lecture 2: Linear regression Roger Grosse 1 Introduction Let s ump right in and look at our first machine learning algorithm, linear regression. In regression, we are interested in predicting a scalar-valued

More information

Introduction to Algorithms / Algorithms I Lecturer: Michael Dinitz Topic: Intro to Learning Theory Date: 12/8/16

Introduction to Algorithms / Algorithms I Lecturer: Michael Dinitz Topic: Intro to Learning Theory Date: 12/8/16 600.463 Introduction to Algorithms / Algorithms I Lecturer: Michael Dinitz Topic: Intro to Learning Theory Date: 12/8/16 25.1 Introduction Today we re going to talk about machine learning, but from an

More information

Statistics and Quantitative Analysis U4320

Statistics and Quantitative Analysis U4320 Statistics and Quantitative Analysis U3 Lecture 13: Explaining Variation Prof. Sharyn O Halloran Explaining Variation: Adjusted R (cont) Definition of Adjusted R So we'd like a measure like R, but one

More information

Algebra. Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed.

Algebra. Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed. This document was written and copyrighted by Paul Dawkins. Use of this document and its online version is governed by the Terms and Conditions of Use located at. The online version of this document is

More information

STAT 501 EXAM I NAME Spring 1999

STAT 501 EXAM I NAME Spring 1999 STAT 501 EXAM I NAME Spring 1999 Instructions: You may use only your calculator and the attached tables and formula sheet. You can detach the tables and formula sheet from the rest of this exam. Show your

More information

Data Analysis and Statistical Methods Statistics 651

Data Analysis and Statistical Methods Statistics 651 Data Analysis and Statistical Methods Statistics 65 http://www.stat.tamu.edu/~suhasini/teaching.html Suhasini Subba Rao Comparing populations Suppose I want to compare the heights of males and females

More information

y response variable x 1, x 2,, x k -- a set of explanatory variables

y response variable x 1, x 2,, x k -- a set of explanatory variables 11. Multiple Regression and Correlation y response variable x 1, x 2,, x k -- a set of explanatory variables In this chapter, all variables are assumed to be quantitative. Chapters 12-14 show how to incorporate

More information

Natural deduction for truth-functional logic

Natural deduction for truth-functional logic Natural deduction for truth-functional logic Phil 160 - Boston University Why natural deduction? After all, we just found this nice method of truth-tables, which can be used to determine the validity or

More information

Course Introduction and Overview Descriptive Statistics Conceptualizations of Variance Review of the General Linear Model

Course Introduction and Overview Descriptive Statistics Conceptualizations of Variance Review of the General Linear Model Course Introduction and Overview Descriptive Statistics Conceptualizations of Variance Review of the General Linear Model PSYC 943 (930): Fundamentals of Multivariate Modeling Lecture 1: August 22, 2012

More information

ECON 497 Midterm Spring

ECON 497 Midterm Spring ECON 497 Midterm Spring 2009 1 ECON 497: Economic Research and Forecasting Name: Spring 2009 Bellas Midterm You have three hours and twenty minutes to complete this exam. Answer all questions and explain

More information

5:1LEC - BETWEEN-S FACTORIAL ANOVA

5:1LEC - BETWEEN-S FACTORIAL ANOVA 5:1LEC - BETWEEN-S FACTORIAL ANOVA The single-factor Between-S design described in previous classes is only appropriate when there is just one independent variable or factor in the study. Often, however,

More information

Guide to Proofs on Sets

Guide to Proofs on Sets CS103 Winter 2019 Guide to Proofs on Sets Cynthia Lee Keith Schwarz I would argue that if you have a single guiding principle for how to mathematically reason about sets, it would be this one: All sets

More information

Linear Regression Analysis for Survey Data. Professor Ron Fricker Naval Postgraduate School Monterey, California

Linear Regression Analysis for Survey Data. Professor Ron Fricker Naval Postgraduate School Monterey, California Linear Regression Analysis for Survey Data Professor Ron Fricker Naval Postgraduate School Monterey, California 1 Goals for this Lecture Linear regression How to think about it for Lickert scale dependent

More information

CPSC 340: Machine Learning and Data Mining. Regularization Fall 2017

CPSC 340: Machine Learning and Data Mining. Regularization Fall 2017 CPSC 340: Machine Learning and Data Mining Regularization Fall 2017 Assignment 2 Admin 2 late days to hand in tonight, answers posted tomorrow morning. Extra office hours Thursday at 4pm (ICICS 246). Midterm

More information

Lecture 18: Simple Linear Regression

Lecture 18: Simple Linear Regression Lecture 18: Simple Linear Regression BIOS 553 Department of Biostatistics University of Michigan Fall 2004 The Correlation Coefficient: r The correlation coefficient (r) is a number that measures the strength

More information

Lecture 5. 1 Review (Pairwise Independence and Derandomization)

Lecture 5. 1 Review (Pairwise Independence and Derandomization) 6.842 Randomness and Computation September 20, 2017 Lecture 5 Lecturer: Ronitt Rubinfeld Scribe: Tom Kolokotrones 1 Review (Pairwise Independence and Derandomization) As we discussed last time, we can

More information

One-way ANOVA (Single-Factor CRD)

One-way ANOVA (Single-Factor CRD) One-way ANOVA (Single-Factor CRD) STAT:5201 Week 3: Lecture 3 1 / 23 One-way ANOVA We have already described a completed randomized design (CRD) where treatments are randomly assigned to EUs. There is

More information

Problem Set #6: OLS. Economics 835: Econometrics. Fall 2012

Problem Set #6: OLS. Economics 835: Econometrics. Fall 2012 Problem Set #6: OLS Economics 835: Econometrics Fall 202 A preliminary result Suppose we have a random sample of size n on the scalar random variables (x, y) with finite means, variances, and covariance.

More information

MULTIPLE REGRESSION ANALYSIS AND OTHER ISSUES. Business Statistics

MULTIPLE REGRESSION ANALYSIS AND OTHER ISSUES. Business Statistics MULTIPLE REGRESSION ANALYSIS AND OTHER ISSUES Business Statistics CONTENTS Multiple regression Dummy regressors Assumptions of regression analysis Predicting with regression analysis Old exam question

More information

Lesson 3-2: Solving Linear Systems Algebraically

Lesson 3-2: Solving Linear Systems Algebraically Yesterday we took our first look at solving a linear system. We learned that a linear system is two or more linear equations taken at the same time. Their solution is the point that all the lines have

More information

Axiomatic systems. Revisiting the rules of inference. Example: A theorem and its proof in an abstract axiomatic system:

Axiomatic systems. Revisiting the rules of inference. Example: A theorem and its proof in an abstract axiomatic system: Axiomatic systems Revisiting the rules of inference Material for this section references College Geometry: A Discovery Approach, 2/e, David C. Kay, Addison Wesley, 2001. In particular, see section 2.1,

More information

Applied Regression Analysis. Section 2: Multiple Linear Regression

Applied Regression Analysis. Section 2: Multiple Linear Regression Applied Regression Analysis Section 2: Multiple Linear Regression 1 The Multiple Regression Model Many problems involve more than one independent variable or factor which affects the dependent or response

More information

22s:152 Applied Linear Regression

22s:152 Applied Linear Regression 22s:152 Applied Linear Regression Chapter 7: Dummy Variable Regression So far, we ve only considered quantitative variables in our models. We can integrate categorical predictors by constructing artificial

More information

STARTING WITH CONFIDENCE

STARTING WITH CONFIDENCE STARTING WITH CONFIDENCE A- Level Maths at Budmouth Name: This booklet has been designed to help you to bridge the gap between GCSE Maths and AS Maths. Good mathematics is not about how many answers you

More information

Chapter 3 Multiple Regression Complete Example

Chapter 3 Multiple Regression Complete Example Department of Quantitative Methods & Information Systems ECON 504 Chapter 3 Multiple Regression Complete Example Spring 2013 Dr. Mohammad Zainal Review Goals After completing this lecture, you should be

More information

The Mean Version One way to write the One True Regression Line is: Equation 1 - The One True Line

The Mean Version One way to write the One True Regression Line is: Equation 1 - The One True Line Chapter 27: Inferences for Regression And so, there is one more thing which might vary one more thing aout which we might want to make some inference: the slope of the least squares regression line. The

More information

Answers in blue. If you have questions or spot an error, let me know. 1. Find all matrices that commute with A =. 4 3

Answers in blue. If you have questions or spot an error, let me know. 1. Find all matrices that commute with A =. 4 3 Answers in blue. If you have questions or spot an error, let me know. 3 4. Find all matrices that commute with A =. 4 3 a b If we set B = and set AB = BA, we see that 3a + 4b = 3a 4c, 4a + 3b = 3b 4d,

More information

Warm-up Using the given data Create a scatterplot Find the regression line

Warm-up Using the given data Create a scatterplot Find the regression line Time at the lunch table Caloric intake 21.4 472 30.8 498 37.7 335 32.8 423 39.5 437 22.8 508 34.1 431 33.9 479 43.8 454 42.4 450 43.1 410 29.2 504 31.3 437 28.6 489 32.9 436 30.6 480 35.1 439 33.0 444

More information