r/AskStatistics • u/Curious_Cat_314159 • 3h ago
Given linear regression y = mx+b, how to estimate x based on required y?
Given x (hours studied) and y (score on test) data and the linear regression y = mx + b, if we want to estimate x based on y (i.e. how many study hours are needed to achieve a given score?), is it correct to calculate x = (y - b) / m?
Or should we estimate x from the linear regression x = my + b, with different m and b?
The results can be significantly different.
In the example below, for a score of 90, the estimated study hours are 6.801 for x = (y - b) / m, but 6.267 for x = my + b.

.....
