# Estimation of individual demand for gasoline

Quantity and price of gasoline are clearly endogenous because the quantity and price are determined by the supply and demand. However, the estimation of individual demand for gasoline is often done using OLS. Why does it make sense? In your answer, please refer to the relative size of error terms in the supply and demand equations.

My reasoning is this:

(Demand) $Quantity_{D}= \alpha _{0} + \alpha _{1} Price + \alpha _{2} Income + \varepsilon _{D}$

(Supply) $Quantity_{s}= \beta _{0} + \beta _{1} Price + \beta _{2} InputPrice + \varepsilon _{S}$

(Equilibrium) $Quantity_{D} = Quantity_{S}$

$Price = \frac{\alpha _{0} - \beta _{0}}{\beta _{1} - \alpha _{1}} + \frac{\alpha _{2}}{\beta _{1} - \alpha _{1}} Income - \frac{\beta _{2}}{\beta _{1} - \alpha _{1}} InputPrice + \frac{\varepsilon _{D}-\varepsilon _{S}}{\beta _{1}-\alpha _{1}}$

Price is correlated with $\varepsilon_{D}$ - if an external shock causes $\varepsilon_{D}$ to change, that induces a shift in the demand curve and ultimately causes a new equilibrium price.

The size of the errors will determine how big is the endogeneity of price in the demand equation. So I am thinking that even though the price is correlated with $\varepsilon_{D}$, the size of $\varepsilon_{D}$ is small relative to the correlation of price and $\varepsilon_{S}$ in the supply equation. That is why we can use OLS to estimate the demand equation. Is my reasoning correct?

I think $\varepsilon_{D} < \varepsilon_{S}$, but not sure why in the context of gasoline price.