Unit 522 Understanding and Visualizing Linear Equations Without Answers
Unit 522 Understanding and Visualizing Linear Equations Without Answers
16 October, 2023
1
y ¿ β 0 + β 1 × x i.
y ¿ 3+0.5 × x i .
**
2
6. The following picture describes a linear relationship between two variables. Which
equation fits best? Is it positive or negative?
3
Y is your grade
X1 (study time) is a numerical variable
Y = b0 + b1x1 + b2x2
1st : Find the values for the reference category (coded 0)
- Intercept: when x=0, y = 3
- Slope: 0.5. with 2 points A(2;4) and B(4;5) -> (5-4)/(4-2) = ½ = 0.5
We can already fill in part of it: Y = 3+0.5x1 -1x2
y ¿ β 0 + β 1 × x 1i .
=β 2+ β3 × x 2i . ¿ this simplifies to: ¿ y ¿=β 2 + β 1 × x 1i . + β 3 × x 2i . ¿ y ¿=3+ ( 0.5 ) × x 1i . + (−1 ) × x 2i .
¿ ¿
7. Do the next one yourself. Which linear equation would summarize the expectation
in this graph, assuming that the second variable is a variable coded zero (straight)
and one (dotted)?
4
Codes: 0 for straight and 1 for doted -> My reference is straight line
- 1st: start with the reference category:
o Intercept = 2 and Slope = 1 -> Y = 2 + 1x + 1x2
**
8. Which linear equation would summarize the expectation in this graph, assuming
again that the second variable is a variable coded zero (straight) and one (dotted)?
5
**
9. Which linear equation would summarize the expectation in this graph, yet again
assuming that the second variable is a variable coded zero (straight) and one
(dotted)?
6
**
These are all basic ‘additive’ models in which one of the two independent variables is a
dummy, coded 0 and 1.
11. Which linear equation would summarize the expectation in this graph, again
assuming that the reference category of nominal variable is shown by a straight line,
group d2 is dashed and d3 is dotted?
For reference: Intercept = 3; slope = -1.
For group d2: +(it’s above reference) and difference is +1
For group d3: - (it’’s below) and difference is -1
Y = 3 –1x +1x2 –1x3
7
What is the statistic associated with the group d2:
Let’s verify: I am from d2 and I studied (x=2 hours), what is y(my grade) ?
- Y = 3 –1x +1x2 –1x3
- Y = 3 –1(2) +1(1) –1(0)
- Y=3–2+1=2
**