This is a great notebook, enjoyed reading it. I do have one question that is really bugging me.
It is established that creating an auxiliary variable of revenue divided by cost:
df["rho"] = df["revenue"] / df["cost"]
smf.ols("rho ~ new_machine", df).fit().summary().tables[1]
does not represent $\frac{\Delta R}{\Delta C}$
But if this is the case, how does the regression at the end, conducted on an auxiliary variable, which is essentially
df["revenue"] - df["cost"] and a couple constants, adequately represent essentially $\Delta R - \Delta C$ ? Isnt this the same thing as above in concept?
This is a great notebook, enjoyed reading it. I do have one question that is really bugging me.
It is established that creating an auxiliary variable of revenue divided by cost:
does not represent$\frac{\Delta R}{\Delta C}$
But if this is the case, how does the regression at the end, conducted on an auxiliary variable, which is essentially
$\Delta R - \Delta C$ ? Isnt this the same thing as above in concept?
df["revenue"] - df["cost"]and a couple constants, adequately represent essentially