ruspy.test.regression_sim_tests.test_linear_regression

This module contains a regression test for the simulation, discounting and some estimation functions. The test first draws a random dictionary with some constraints to ensure enough observations. It then simulates a dataset and the compares the discounted utility average over all buses, with the theoretical expected value calculated by the NFXP.

Functions

inputs_sim(inputs)

test_regression_simulation(inputs_sim)