Correlation and regression - hypothesis test, principle of least squares

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/10

flashcard set

Earn XP

Description and Tags

Topic 8

11 Terms

1
New cards

Correlation and regression analysis

Numerical measures to describe the relationship between variables

2
New cards

Correlation

Enables quantification of the degree of association between two variables

Does NOT imply causation

3
New cards

Coefficient of correlation

r

Ranges from -1 to 1

r = 0 indicates no relationship between the variables

r > 0 indicates a positive association

r = 1 this is perfect positive correlation

r < 0 negative association

r = -1 perfect negative correlation

4
New cards

Testing significance of correlation - hypothesis testing - steps

  1. Set up hypotheses

H0:ρ=0H_0:\rho=0

H1:ρ≠0H_1:\rho\ne0

  1. Choose significance level - 5% is the usual

  2. Select the test statistic

t=rn−21−r2t=\frac{r\sqrt{n-2}}{\sqrt{1-r^2}}

  1. Formulate decision rule - as it is two tailed we reject the null if∣t∣>∣tcrit∣\left\vert t\right\vert>\left\vert t_{crit}\right\vert

  2. Make the decision: calculate the statistic, find the critical value and compare

One-tailed tests can also be done

Follows t-distribution, with n-2 degrees of freedom

Find critical value, then calculate t value - and if t > tcrit we reject null

5
New cards

Regression analysis

Attempts to describe the dependence of a variable of one or moth other explanatory variables

Use independent variables to estimate the dependent variable

6
New cards

Dependent variable

Variable being predicted or estimated

7
New cards

Independent variable

Predictor variable - provides the basis for estimation

8
New cards

Bivariate regression analysis

Have just two variables where a single independent variable estimates the dependent variable

Assume the relationship is linear and that both variables are interval/ratio scale

Regression equation: y = a + bx + e

y = dependent variable

x = independent variable

a = intercept term

b = slope of regression line

e = error term

9
New cards

Principle of least squares

We choose the line of best fit to be the line that minimises the errors i.e. the distance between the observations and the line

10
New cards

Different ways to express the regression line

Actual y = predicted y + errot

y = y^ + e

y^ = a +bx

11
New cards

How to find a and b in regression line equation

b=r(sysx)b=r\left(\frac{s_{y}}{s_{x}}\right)

a=y‾−bx‾a=\overline{y}-b\overline{x}

need mean of two variables

and standard deviations of both

can use calculator for this

and then also use calculator to find r

or use equation

r=Σ(xi−x‾)(yi−y‾)(n−1)sxsyr=\frac{\Sigma\left(x_{i}-\overline{x}\right)\left(y_{i}-\overline{y}\right)}{\left(n-1\right)s_{x}s_{y}}