ECON 3209 · Week 9, Lecture 3 · Kerala Agricultural University
Autumn 2026
statsmodels methods such as .t_test() and .f_test().\[F = \frac{(RSS_R - RSS_U)/J}{RSS_U/(N-K)} \sim F(J, N-K) \quad \text{under } H_0\]
statsmodels.t_test() directly for an explicit restriction.Simulate a multiple regression with yield_ as the dependent variable and fertilizer, rainfall, and labour as regressors. Then run a t-test for labour = 0 and an F-test for fertilizer = 0 and rainfall = 0 jointly.
statsmodels provides .t_test() and .f_test() for explicit hypothesis testing.ECON 3209 — Kerala Agricultural University