Linear regression with the same X value

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
xeon123
Messages
90
Reaction score
0
In a linear regression with 1 independent variable, if X is always the same (let's call I am unlucky), but Y present different values for the same X, I still can find the coefficient of the straight line equation?
 
on Phys.org
xeon123 said:
In a linear regression with 1 independent variable, if X is always the same (let's call I am unlucky), but Y present different values for the same X, I still can find the coefficient of the straight line equation?

The straight line would be parallel to the Y-axis, so it would be X = C where C is the one value of X.
 
If there is no variability in X, then X is certainly not going to do a very good job of explaining variability in Y.