i think its pretty much the same thing because matrix X1 X2 IS ACTUALLY X1 X2
Chat with our AI personalities
x1:y1 = x2:y2 4:-2 = x2:5 x2 = (4*5)/-2 x2 = -10
Suppose that you have simple two variable model: Y=b0+b1X1+e The least squares estimator for the slope coefficient, b1 can be obtained with b1=cov(X1,Y)/var(X1) the intercept term can be calculated from the means of X1 and Y b0=mean(Y)-b1*mean(X1) In a larger model, Y=b0+b1X1+b2X2+e the estimator for b1 can be found with b1=(cov(X1,Y)var(X2)-cov(X2,Y)cov(X1,X2))/(var(X1)var(X2)-cov(X1,X2)2) to find b2, simply swap the X1 and X2 terms in the above to get b2=(cov(X2,Y)var(X1)-cov(X1,Y)cov(X1,X2))/(var(X1)var(X2)-cov(X1,X2)2) Find the intercept with b0=mean(Y)-b1*mean(X1)-b2*mean(X2) Beyond two regressors, it just gets ugly.
Let P(x1, y1), Q(x2, y2), and M(x3, y3).If M is the midpoint of PQ, then,(x3, y3) = [(x1 + x2)/2, (y1 + y2)/2]We need to verify that,√[[(x1 + x2)/2 - x1]^2 + [(y1 + y2)/2 - y1]^2] = √[[x2 - (x1 + x2)/2]^2 + [y2 - (y1 + y2)/2]^2]]Let's work separately in both sides. Left side:√[[(x1 + x2)/2 - x1]^2 + [(y1 + y2)/2 - y1]^2]= √[[(x1/2 + x2/2)]^2 - (2)(x1)[(x1/2 + x2/2)) + x1^2] + [(y1/2 + y2/2)]^2 - (2)(y1)[(y1/2 + y2/2)] + y1^2]]= √[[(x1)^2]/4 + [(x1)(x2)]/2 + [(x2)^2]/4 - (x1)^2 - (x1)(x2) + (x1)^2 +[(y1)^2]/4 + [(y1)(y2)]/2 + [(y2)^2]/4 - (y1)^2 - (y1)(y2) + (y1)^2]]= √[[(x1)^2]/4 - [(x1)(x2)]/2 + [(x2)^2]/4 + [(y1)^2]/4 - [(y1)(y2)]/2 + [(y2)^2]/4]]Right side:√[[x2 - (x1 + x2)/2]^2 + [y2 - (y1 + y2)/2]^2]]= √[[(x2)^2 - (2)(x2)[(x1/2 + x2/2)] + [(x1/2 + x2/2)]^2 + [(y2)^2 - (2)(y2)[(y1/2 + y2/2)] + [(y1/2 + y2/2)]^2]]= √[[(x2)^2 - (x1)(x2) - (x2)^2 + [(x1)^2]/4 + [(x1)(x2)]/2 + [(x2)^2]/4 + (y2)^2 - (y1)[(y2) - (y2)^2 + [(y1)^2]/4) + [(y1)(y2)]/2 + [(y2)^2]/4]]= √[[(x1)^2]/4 - [(x1)(x2)]/2 + [(x2)^2]/4 + [(y1)^2]/4 - [(y1)(y2)]/2 + [(y2)^2]/4]]Since the left and right sides are equals, the identity is true. Thus, the length of PM equals the length of MQ. As the result, M is the midpoint of PQ
The equation for the slope between the points A = (x1, y1) and B = (x2, y2) = (y2 - y1)/(x2 - x1), provided x1 is different from x2. If x1 and x2 are the same then the slope is not defined.
Select any tow values of x, say x1 and x2.Calculate y1 = 5*x1 - 12 and y2 = 5*x2 - 12. Mark the points (x1, y1) and (x2, y2). Join them with a straight line and extend in both directions.