mario.calc_p_from_z(
v,
z,
*,
method: str | None = None,
solver: str | None = None,
strategy: str | None = None,
)#

Calculate the p price index vector directly from v and z.

\[(I-z)^{\mathsf{T}}p = v^{\mathsf{T}}\mathbf{1}\]

This is the direct path for p. Under method="solve", MARIO solves the transposed system without materializing the w Leontief inverse matrix.

Parameters:
  • v (pandas.DataFrame) – v value added coefficients matrix.

  • z (pandas.DataFrame) – z intersectoral transaction coefficients matrix.

  • method (str, optional) – Optional runtime compute method override. Accepted values are "auto", "inverse" and "solve".

  • solver (str, optional) – Optional linear solver backend used when the solve path is selected.

  • strategy (str, optional) – Optional sparse linear strategy used when the solve path is selected.

Returns:

p price index vector.

Return type:

pandas.DataFrame

Notes

Value added is summed over all factor rows. The result has the production nodes on its index and one column named price index.