-8
Chat with our AI personalities
The Distance Formula! D = square root of (y2-y1) quantity squared + (x2-x1) quantity squared
Distance = the square root of (x2-x1)2 + (y2-y1)2Added:Distance Formula: Given the two points (x1, y1) and (x2, y2), the distance between these points is given by the formula:square root of x2-x1 squared +y2-y1 squared
if we take the (x1,y1),(x2,y2) as coordinates the formula was (x-x1)/(x2-x1)=(y-y1)/(y2-y1)
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.
The mid-point of the line segment of (x1, y1) and (x2, y2) is (x1+X2)/2 and (y1+y2)/2