MindFormal v1.0.0One Mind

MindFormal.Tools.MarketResponseCalculus.Accepted

Finite accepted masses: normalization, signed response and finite ordering. The masses are those of the chosen encounter instrument, before conditioning.

def MindFormal.MarketResponseCalculus.CoOrdered {K : Type u_1} (price score : K → ℝ) :
Equations
Instances For
    def MindFormal.MarketResponseCalculus.SupportOrdered {K : Type u_1} (P price score : K → ℝ) :
    Equations
    Instances For
      theorem MindFormal.MarketResponseCalculus.covariance_pair {K : Type u_1} [Fintype K] (P f g : K → ℝ) (hP : ∑ i : K, P i = 1) :
      covariance P f g = 1 / 2 * ∑ i : K, ∑ j : K, P i * P j * (f i - f j) * (g i - g j)
      theorem MindFormal.MarketResponseCalculus.ordered_product {K : Type u_1} {price f g : K → ℝ} (hf : CoOrdered price f) (hg : CoOrdered price g) (i j : K) :
      0 ≤ (f i - f j) * (g i - g j)
      theorem MindFormal.MarketResponseCalculus.weighted_ordered_product {K : Type u_1} {P price f g : K → ℝ} (hn : ∀ (i : K), 0 ≤ P i) (hf : SupportOrdered P price f) (hg : SupportOrdered P price g) (i j : K) :
      0 ≤ P i * P j * (f i - f j) * (g i - g j)
      theorem MindFormal.MarketResponseCalculus.covariance_nonnegative {K : Type u_1} [Fintype K] (P price f g : K → ℝ) (hP : ∑ i : K, P i = 1) (hn : ∀ (i : K), 0 ≤ P i) (hf : SupportOrdered P price f) (hg : SupportOrdered P price g) :
      0 ≤ covariance P f g
      theorem MindFormal.MarketResponseCalculus.covariance_positive {K : Type u_1} [Fintype K] (P price score : K → ℝ) (hP : ∑ i : K, P i = 1) (hn : ∀ (i : K), 0 ≤ P i) (hs : SupportOrdered P price score) {i j : K} (hi : 0 < P i) (hj : 0 < P j) (hp : price i < price j) (he : score i < score j) :
      0 < covariance P price score
      theorem MindFormal.MarketResponseCalculus.accepted_derivative {K : Type u_1} [Fintype K] (F : ℝ → K → ℝ) (dot : K → ℝ) (x : ℝ) (hd : ∀ (i : K), HasDerivAt (fun (y : ℝ) => F y i) (dot i) x) (ha : 0 < ∑ i : K, F x i) (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
      noncomputable def MindFormal.MarketResponseCalculus.elasticity {K : Type u_1} (F : ℝ → K → ℝ) (dot : K → ℝ) (x : ℝ) (i : K) :
      Equations
      Instances For
        theorem MindFormal.MarketResponseCalculus.accepted_elasticity_derivative {K : Type u_1} [Fintype K] (F : ℝ → K → ℝ) (dot : K → ℝ) (x : ℝ) (hd : ∀ (i : K), HasDerivAt (fun (y : ℝ) => F y i) (dot i) x) (ha : 0 < ∑ i : K, F x i) (hz : ∀ (i : K), F x i = 0 → dot i = 0) (i : K) :
        theorem MindFormal.MarketResponseCalculus.mean_covariance_derivative {K : Type u_1} [Fintype K] (F : ℝ → K → ℝ) (dot price : K → ℝ) (x : ℝ) (hd : ∀ (i : K), HasDerivAt (fun (y : ℝ) => F y i) (dot i) x) (ha : 0 < ∑ i : K, F x i) (hz : ∀ (i : K), F x i = 0 → dot i = 0) :
        theorem MindFormal.MarketResponseCalculus.mean_difference_pair {K : Type u_1} [Fintype K] (P Q f : K → ℝ) (hP : ∑ i : K, P i = 1) (hQ : ∑ i : K, Q i = 1) :
        MarketComparisonMath.priceMean Q f - MarketComparisonMath.priceMean P f = 1 / 2 * ∑ i : K, ∑ j : K, (Q i * P j - Q j * P i) * (f i - f j)
        theorem MindFormal.MarketResponseCalculus.accepted_stochastic_order {K : Type u_1} [Fintype K] (a b price : K → ℝ) (hA : 0 < ∑ i : K, a i) (hB : 0 < ∑ i : K, b i) (hr : ∀ (i j : K), price i ≤ price j → b i * a j ≤ b j * a i) (f : K → ℝ) (hf : CoOrdered price f) :

        Cross-products are the zero-safe form of an increasing likelihood ratio. They also allow new mass at a previously zero-mass endpoint.

        theorem MindFormal.MarketResponseCalculus.likelihood_ratio_cross {K : Type u_1} (a b price ratio : K → ℝ) (ha : ∀ (i : K), 0 ≤ a i) (hb : ∀ (i : K), b i = a i * ratio i) (hr : CoOrdered price ratio) (i j : K) :
        price i ≤ price j → b i * a j ≤ b j * a i
        theorem MindFormal.MarketResponseCalculus.support_ratio_cross {K : Type u_1} (a b price : K → ℝ) (ha : ∀ (i : K), 0 ≤ a i) (hz : ∀ (i : K), a i = 0 → b i = 0) (hr : ∀ (i j : K), 0 < a i → 0 < a j → price i ≤ price j → b i / a i ≤ b j / a j) (i j : K) :
        price i ≤ price j → b i * a j ≤ b j * a i