STAT 7: Analysing Relationships Flashcards

1
Q

What is the correlation coefficient?

A
  • denoted as ‘r’
  • ranges between -1 and 1
  • use cor() function in R
  • tells us the direction and strength of the association
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is r2?

A
  • this value tells us how much variation in one variable can be explained by the other
  • e.g. if r is +0.53, r2 is 0.28
  • therefore, 28% of the variation can be explained by the other variable
  • 72% comes from another source
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the two types of experiment where you would compare continuoud variables?

A
  1. Looking for an association between two variables when neither are experimentally manipulated
  2. Experimentally manipulating one variable and looking to see whether another variable changes too
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is linear regression used for?

A
  • using the line of best fit, you can estimate one variable from another
  • use lm() in R
  • only suitable for two continuous variables that have a visually linear relationship, so the goodness of fit needs to be assessed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Is a linear regression equation suitable for this data?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Is a linear regression equation suitable for this data?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Is a linear regression equation suitable for this data?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Is a linear regression equation suitable for this data?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Is a linear regression equation suitable for this data?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does ~ mean?

A
  • tilde
  • means ‘is explained by’
  • e.g. a~b means ‘a is explained by b’
  • a is response variable, b is explanatory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does plot (a~b) make on R?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What function do we use to predict unknown values in linear regression in R?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How can we predict unknown values in a linear regression model on R?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly