Documentation

ZPM.Probability.Exchangeability.DoubleSample

Double-sample measure and merge/split isomorphism #

Core constructions for the symmetrization / exchangeability pipeline: an ExchangeableSample bundle, the DoubleSampleMeasure product, the MergedSample abbrev on Fin (2*m) → X, and the mergeSamples / splitMergedSample isomorphism between (Fin m → X) × (Fin m → X) and Fin (2*m) → X.

Bundle: sample size, measure, and probability-measure proof.

Instances For
    noncomputable def ProbabilityTheory.DoubleSampleMeasure {X : Type u} [MeasurableSpace X] (D : MeasureTheory.Measure X) (m : ) :
    MeasureTheory.Measure ((Fin mX) × (Fin mX))

    The double sample measure D^m ⊗ D^m: the product of two independent m-fold product measures. Joint distribution of training + ghost samples.

    Equations
    Instances For
      @[reducible, inline]

      Type alias for a merged sample of 2m points from X.

      Equations
      Instances For
        noncomputable def ProbabilityTheory.mergeSamples {X : Type u} {m : } (p : (Fin mX) × (Fin mX)) :

        Merge two samples of size m into a single sample of size 2m.

        Equations
        Instances For
          noncomputable def ProbabilityTheory.splitMergedSample {X : Type u} {m : } (z : MergedSample X m) :
          (Fin mX) × (Fin mX)

          Split a merged sample of 2m points back into two samples of size m. Inverse of mergeSamples.

          Equations
          Instances For