def p_observe_errors(_1, _2, _3, state):
    """
    Calculate the error between the redemption and market price.
    """
    error = (state["pid_state"].redemption_price - state["market_price"])
    return {"error_star": error}