pyblp.SimulationResults

class pyblp.SimulationResults

Results of a solved simulation of synthetic BLP data.

The SimulationResults.to_problem() method can be used to convert the full set of simulated data and configured information into a Problem.

simulation

Simulation that created these results.

Type

Simulation

product_data

Simulated Simulation.product_data that are updated with synthetic prices and shares.

Type

recarray

delta

Simulated mean utility, \(\delta\).

Type

ndarray

computation_time

Number of seconds it took to compute synthetic prices and shares.

Type

float

fp_converged

Flags for convergence of the iteration routine used to compute synthetic prices in each market. Flags are in the same order as Simulation.unique_market_ids.

Type

ndarray

fp_iterations

Number of major iterations completed by the iteration routine used to compute synthetic prices in each market. Counts are in the same order as Simulation.unique_market_ids.

Type

ndarray

contraction_evaluations

Number of times the contraction used to compute synthetic prices was evaluated in each market. Counts are in the same order as Simulation.unique_market_ids.

Type

ndarray

Examples

Methods

to_problem([product_formulations, …])

Convert the solved simulation into a problem.