Complete finite response statements, before any stationary-existence inference.
theorem
MindFormal.MarketResponseCalculus.fixed_zero_derivative
{K : Type u_1}
(F : ℝ → K → ℝ)
(dot : K → ℝ)
(x : ℝ)
(hd : ∀ (i : K), HasDerivAt (fun (y : ℝ) => F y i) (dot i) x)
(hf : FixedSupport F x)
(i : K)
:
structure
MindFormal.MarketResponseCalculus.AcceptedResponse
{K : Type u_1}
[Fintype K]
(F : ℝ → K → ℝ)
(dot price : K → ℝ)
(x : ℝ)
:
- unlogged (i : K) : HasDerivAt (fun (y : ℝ) => MarketComparisonMath.acceptedProbability (F y) i) ((dot i - MarketComparisonMath.acceptedProbability (F x) i * ∑ j : K, dot j) / ∑ j : K, F x j) x
- zero_mass (i : K) : F x i = 0 → HasDerivAt (fun (y : ℝ) => MarketComparisonMath.acceptedProbability (F y) i) (dot i / ∑ j : K, F x j) x
- mean_unlogged : HasDerivAt (fun (y : ℝ) => MarketComparisonMath.priceMean (MarketComparisonMath.acceptedProbability (F y)) price) (∑ i : K, ((dot i - MarketComparisonMath.acceptedProbability (F x) i * ∑ j : K, dot j) / ∑ j : K, F x j) * price i) x
- fixed_support : FixedSupport F x → (∀ (i : K), HasDerivAt (fun (y : ℝ) => MarketComparisonMath.acceptedProbability (F y) i) (MarketComparisonMath.acceptedProbability (F x) i * (elasticity F dot x i - MarketComparisonMath.priceMean (MarketComparisonMath.acceptedProbability (F x)) (elasticity F dot x))) x) ∧ HasDerivAt (fun (y : ℝ) => MarketComparisonMath.priceMean (MarketComparisonMath.acceptedProbability (F y)) price) (covariance (MarketComparisonMath.acceptedProbability (F x)) price (elasticity F dot x)) x ∧ covariance (MarketComparisonMath.acceptedProbability (F x)) price (elasticity F dot x) = 1 / 2 * ∑ i : K, ∑ j : K, MarketComparisonMath.acceptedProbability (F x) i * MarketComparisonMath.acceptedProbability (F x) j * (price i - price j) * (elasticity F dot x i - elasticity F dot x j) ∧ (SupportOrdered (MarketComparisonMath.acceptedProbability (F x)) price (elasticity F dot x) → 0 ≤ covariance (MarketComparisonMath.acceptedProbability (F x)) price (elasticity F dot x) ∧ ∀ (i j : K), 0 < F x i → 0 < F x j → price i < price j → elasticity F dot x i < elasticity F dot x j → 0 < covariance (MarketComparisonMath.acceptedProbability (F x)) price (elasticity F dot x))
Instances For
theorem
MindFormal.MarketResponseCalculus.accepted_response
{K : Type u_1}
[Fintype K]
(F : ℝ → K → ℝ)
(dot price : K → ℝ)
(x : ℝ)
(hd : ∀ (i : K), HasDerivAt (fun (y : ℝ) => F y i) (dot i) x)
(hn : ∀ (i : K), 0 ≤ F x i)
(ha : 0 < ∑ i : K, F x i)
:
AcceptedResponse F dot price x
structure
MindFormal.MarketResponseCalculus.FiniteOrder
{K : Type u_1}
[Fintype K]
(a b price : K → ℝ)
:
- normalized : ∑ i : K, MarketComparisonMath.acceptedProbability a i = 1 ∧ ∑ i : K, MarketComparisonMath.acceptedProbability b i = 1
- nonnegative : (∀ (i : K), 0 ≤ MarketComparisonMath.acceptedProbability a i) ∧ ∀ (i : K), 0 ≤ MarketComparisonMath.acceptedProbability b i
- cross_order : (∀ (i j : K), price i ≤ price j → b i * a j ≤ b j * a i) → ∀ (f : K → ℝ), CoOrdered price f → MarketComparisonMath.priceMean (MarketComparisonMath.acceptedProbability a) f ≤ MarketComparisonMath.priceMean (MarketComparisonMath.acceptedProbability b) f
- support_ratio_order : (∀ (i : K), a i = 0 → b i = 0) → (∀ (i j : K), 0 < a i → 0 < a j → price i ≤ price j → b i / a i ≤ b j / a j) → ∀ (f : K → ℝ), CoOrdered price f → MarketComparisonMath.priceMean (MarketComparisonMath.acceptedProbability a) f ≤ MarketComparisonMath.priceMean (MarketComparisonMath.acceptedProbability b) f
Instances For
theorem
MindFormal.MarketResponseCalculus.finite_order
{K : Type u_1}
[Fintype K]
(a b price : K → ℝ)
(ha : ∀ (i : K), 0 ≤ a i)
(hb : ∀ (i : K), 0 ≤ b i)
(hA : 0 < ∑ i : K, a i)
(hB : 0 < ∑ i : K, b i)
:
FiniteOrder a b price
- derivative (h : ℝ) : HasDerivAt (fun (y : ℝ) => MarketComparisonMath.priceVariance (MarketComparisonMath.acceptedProbability (twoMass y)) (twoPrice low high)) ((high - low) ^ 2 * (1 - 2 * h)) h
- endpoints : MarketComparisonMath.priceVariance (MarketComparisonMath.acceptedProbability (twoMass 0)) (twoPrice low high) = 0 ∧ MarketComparisonMath.priceVariance (MarketComparisonMath.acceptedProbability (twoMass 1)) (twoPrice low high) = 0
- gaussian_derivative (b p s : ℝ) : 0 < s → HasDerivAt (fun (y : ℝ) => cutoffAcceptance b p y) (-(b - p) * ProbabilityTheory.gaussianPDFReal 0 1 ((b - p) / s) / s ^ 2) s
- gaussian_instrument {Ω : Type u_2} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) (X : Ω → ℝ) (b p s : ℝ) : 0 < s → ProbabilityTheory.HasLaw X (ProbabilityTheory.gaussianReal (b - p) ⟨s ^ 2, ⋯⟩) μ → μ.real {ω : Ω | 0 < X ω} = cutoffAcceptance b p s
Instances For
theorem
MindFormal.MarketResponseCalculus.noise_controls
(low high : ℝ)
(hp : low < high)
:
NoiseControls low high