Documentation

CslibFrontier.GameTheory.Reputation.SequentialPeerPrediction

General-Scoring-Rule and Sequential Peer Prediction #

This module extends CslibFrontier.GameTheory.Reputation.PeerPrediction using the general scoring rule API of CslibFrontier.GameTheory.PredictionMarket.ScoringRules, formalizing three results from [FRS07], §27.4.2 (pp. 686–688) and Exercise 27.6 (p. 697):

  1. General strictly proper scoring-rule peer prediction (§27.4.2, Proposition 1 & extensions, pp. 686–688): for any scoring rule T : ScoringRule S that is strictly proper on openProbSimplex S (including logScore, quadraticScore, brierScore, and sphericalScore), scoring rater i via scoringPeerTransfer T r x i = T.score (peerPosterior (x i)) (x (r i)) makes truthful reporting a strict Bayes–Nash equilibrium (truthful_isStrictBayesNash_scoringPeerTransfer), admits affine effort-elicitation scaling with ex-post nonnegative transfers (exists_affine_effort_incentive_scoring), and admits exact ex-post budget-balanced net transfers (sum_balancedScoringPeerTransfer_eq_zero, truthful_isStrictBayesNash_balancedScoringPeerTransfer).
  2. Exercise 27.6 — non-optimality of static transfers after observing a non-reference rater j ≠ r(i) (p. 697): formalizes the full-profile conditional distribution condSignalProbGiven obs i s_i h and history-updated Bayesian model updateByObs obs h when rater i observes earlier raters obs (i ∉ obs) before reporting while scored against an unobserved reference rater r i (r i ≠ i, r i ∉ obs). Proves the exact marginalization identity sum_condSignalProbGiven_mul_ref and constructs an explicit stochastically relevant binary model asymmetricBinaryModel (prior = (1/2, 1/2), f(h|H) = 4/5, f(h|L) = 1/10) in which, upon observing a single earlier rater j ≠ r(i) report h (0) and receiving private signal l (1), misreporting h strictly beats truthful reporting l under both the static logarithmic transfer of Equation (27.2) (asymmetricBinaryModel_log_misreport_strict_gain) and the static quadratic scoring rule (asymmetricBinaryModel_quadratic_misreport_strict_gain).
  3. Sequential history-conditioned peer prediction (§27.4.2, p. 688): re-conditioning the inferred distribution on both rater i's report and the observed history obs i (sequentialScoringTransfer) restores strict optimality of truthful reporting for every strictly proper scoring rule on openProbSimplex S (truthful_isStrictBestResponse_sequentialScoringTransfer), with stochastic relevance preserved automatically across every history for every binary-type model (updateByObs_stochasticallyRelevant_of_fin2), and admits exact ex-post budget-balanced sequential transfers (sum_balancedSequentialScoringTransfer_eq_zero, truthful_isStrictBestResponse_balancedSequentialScoringTransfer).

Main definitions #

Main results #

References #

General strictly proper scoring-rule peer prediction (§27.4.2, pp. 686–688) #

Every peer posterior M.peerPosterior s lies in the open probability simplex openProbSimplex S.

noncomputable def Cslib.GameTheory.Reputation.PeerPredictionModel.scoringPeerTransfer {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) {I : Type u_3} (T : PredictionMarket.ScoringRule S) (r : I → I) (x : I → S) (i : I) :

General peer-prediction transfer induced by an arbitrary scoring rule T : ScoringRule S and reference rater map r : I → I: rater i is scored by evaluating T on the inferred reference posterior M.peerPosterior (x i) and reference report x (r i) [FriedmanResnickSami2007, §27.4.2, pp. 686–688].

theorem Cslib.GameTheory.Reputation.PeerPredictionModel.scoringPeerTransfer_affine_logScore_eq {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) {I : Type u_3} (r : I → I) (α β : ℝ) :
M.scoringPeerTransfer ((PredictionMarket.logScore S).affine α fun (x : S) => β) r = M.logPeerTransfer r α β

logPeerTransfer r α β is the affine-logarithmic special case of scoringPeerTransfer.

theorem Cslib.GameTheory.Reputation.PeerPredictionModel.interimTransfer_scoringPeerTransfer {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) [DecidableEq S] {I : Type u_3} [Fintype I] [DecidableEq I] (T : PredictionMarket.ScoringRule S) {r : I → I} (hr : ∀ (i : I), r i ≠ i) (σ : I → S → S) (i : I) (s_i report : S) :
M.interimTransfer (M.scoringPeerTransfer T r) σ i s_i report = ∑ s_r : S, M.peerPosterior s_i s_r * T.score (M.peerPosterior report) (σ (r i) s_r)

Interim expected transfer of scoringPeerTransfer T r under strategy profile σ.

theorem Cslib.GameTheory.Reputation.PeerPredictionModel.interimTransfer_scoringPeerTransfer_truthful {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) [DecidableEq S] {I : Type u_3} [Fintype I] [DecidableEq I] (T : PredictionMarket.ScoringRule S) {r : I → I} (hr : ∀ (i : I), r i ≠ i) (i : I) (s_i report : S) :

Under truthful reporting by peers, rater i's interim transfer under scoringPeerTransfer T r equals T.expectedScore (M.peerPosterior s_i) (M.peerPosterior report).

Proposition 1 for arbitrary strictly proper scoring rules ([FriedmanResnickSami2007, §27.4.2, Proposition 1 & extensions, pp. 686–688]; [MillerResnickZeckhauser2005, Proposition 1]): for any scoring rule T that is strictly proper on openProbSimplex S (including logScore, quadraticScore, brierScore, and sphericalScore), stochastic relevance and ∀ i, r i ≠ i make truthful reporting a strict Bayes–Nash equilibrium of the simultaneous reporting game.

theorem Cslib.GameTheory.Reputation.PeerPredictionModel.exists_affine_effort_incentive_scoring {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) [Nontrivial S] {T : PredictionMarket.ScoringRule S} (hT : T.IsStrictlyProperOn (PredictionMarket.openProbSimplex S)) (hrel : M.StochasticallyRelevant) {c : ℝ} (hc : 0 < c) :
∃ (α : ℝ) (β : ℝ), 0 < α ∧ (∀ (s₀ : S), ∑ s : S, M.signalProb s * (T.affine α fun (x : S) => β).expectedScore (M.peerPosterior s) (M.peerPosterior s₀) < ∑ s : S, M.signalProb s * (T.affine α fun (x : S) => β).expectedScore (M.peerPosterior s) (M.peerPosterior s) - c) ∧ ∀ {I : Type u_3} (r : I → I) (x : I → S) (i : I), 0 ≤ M.scoringPeerTransfer (T.affine α fun (x : S) => β) r x i

Effort elicitation and ex-post nonnegativity for arbitrary strictly proper scoring rules ([FriedmanResnickSami2007, §27.4.2, p. 688]; [MillerResnickZeckhauser2005, Proposition 2]): when S has at least two signals, M is stochastically relevant, and T is strictly proper on openProbSimplex S, for every positive signal-acquisition cost c > 0 some positive affine rescaling T.affine α (fun _ => β) strictly incentivizes acquiring and honestly reporting one's signal over every uninformed constant report s₀ : S, while keeping every ex-post transfer nonnegative.

noncomputable def Cslib.GameTheory.Reputation.PeerPredictionModel.balancedScoringPeerTransfer {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) {I : Type u_3} (T : PredictionMarket.ScoringRule S) (r : I → I) (b : I ≃ I) (x : I → S) (i : I) :

Budget-balanced general scoring-rule peer-prediction transfer ([FriedmanResnickSami2007, §27.4.2, p. 688]; [MillerResnickZeckhauser2005, §2.3, Eq. (4)]): rater i receives her own T-score minus rater b i's T-score under a balancing bijection b : I ≃ I.

theorem Cslib.GameTheory.Reputation.PeerPredictionModel.sum_balancedScoringPeerTransfer_eq_zero {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) {I : Type u_3} [Fintype I] (T : PredictionMarket.ScoringRule S) (r : I → I) (b : I ≃ I) (x : I → S) :
∑ i : I, M.balancedScoringPeerTransfer T r b x i = 0

Exact ex-post budget balance: for every announcement vector x, the sum of balancedScoringPeerTransfer across all raters is 0.

theorem Cslib.GameTheory.Reputation.PeerPredictionModel.truthful_isStrictBayesNash_balancedScoringPeerTransfer {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) [DecidableEq S] {I : Type u_3} [Fintype I] [DecidableEq I] {T : PredictionMarket.ScoringRule S} (hT : T.IsStrictlyProperOn (PredictionMarket.openProbSimplex S)) {r : I → I} {b : I ≃ I} (hr : ∀ (i : I), r i ≠ i) (hb : ∀ (i : I), b i ≠ i) (hrb : ∀ (i : I), r (b i) ≠ i) (hrel : M.StochasticallyRelevant) :

Strict Bayes–Nash truthfulness of budget-balanced general peer prediction: when r i ≠ i, b i ≠ i, and r (b i) ≠ i for all i, and T is strictly proper on openProbSimplex S, truthfulStrategy is a strict Bayes–Nash equilibrium of balancedScoringPeerTransfer T r b.

History-conditioned Bayesian updating and marginalization #

def Cslib.GameTheory.Reputation.PeerPredictionModel.subsetLikelihood {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) {I : Type u_3} (θ : Θ) (obs : Finset I) (h : I → S) :

Conditional product likelihood ∏ j ∈ obs, f(h j | θ) of observing reports h on a subset obs : Finset I of earlier raters under product quality type θ.

theorem Cslib.GameTheory.Reputation.PeerPredictionModel.subsetLikelihood_pos {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) {I : Type u_3} (θ : Θ) (obs : Finset I) (h : I → S) :
0 < M.subsetLikelihood θ obs h
def Cslib.GameTheory.Reputation.PeerPredictionModel.subsetProb {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) {I : Type u_3} (obs : Finset I) (h : I → S) :

Marginal probability Pr(∀ j ∈ obs, S^j = h j) = ∑ θ, prior θ * ∏ j ∈ obs, f(h j | θ) of observing reports h on obs.

theorem Cslib.GameTheory.Reputation.PeerPredictionModel.subsetProb_pos {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) {I : Type u_3} (obs : Finset I) (h : I → S) :
0 < M.subsetProb obs h
noncomputable def Cslib.GameTheory.Reputation.PeerPredictionModel.historyTypePosterior {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) {I : Type u_3} (obs : Finset I) (h : I → S) (θ : Θ) :

Posterior distribution over product types Θ conditioned on observing truthful reports h from the raters in obs.

theorem Cslib.GameTheory.Reputation.PeerPredictionModel.historyTypePosterior_pos {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) {I : Type u_3} (obs : Finset I) (h : I → S) (θ : Θ) :
0 < M.historyTypePosterior obs h θ
noncomputable def Cslib.GameTheory.Reputation.PeerPredictionModel.updateByObs {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) {I : Type u_3} (obs : Finset I) (h : I → S) :

Common-prior peer-prediction model updated via Bayes' rule on observed truthful reports h from the raters in obs ([FriedmanResnickSami2007, §27.4.2, p. 688]). Its peerPosterior s s' equals Pr(S^r = s' | S^i = s, ∀ j ∈ obs, S^j = h j).

Updating by the empty observation set leaves peerPosterior unchanged.

theorem Cslib.GameTheory.Reputation.PeerPredictionModel.updateByObs_congr {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) {I : Type u_3} {obs : Finset I} {h₁ h₂ : I → S} (heq : ∀ j ∈ obs, h₁ j = h₂ j) :
M.updateByObs obs h₁ = M.updateByObs obs h₂

updateByObs obs h depends only on the values of h on obs.

noncomputable def Cslib.GameTheory.Reputation.PeerPredictionModel.condSignalProbGiven {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) [DecidableEq S] {I : Type u_3} [Fintype I] [DecidableEq I] (obs : Finset I) (i : I) (s_i : S) (h s_prof : I → S) :

Conditional probability Pr(S = s_prof | S^i = s_i, ∀ j ∈ obs, S^j = h j) of the full signal profile s_prof : I → S given rater i's private signal s_i and truthful reports h on obs (i ∉ obs).

theorem Cslib.GameTheory.Reputation.PeerPredictionModel.sum_condSignalProbGiven_mul_ref {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) [DecidableEq S] {I : Type u_3} [Fintype I] [DecidableEq I] {obs : Finset I} {i r : I} (hi : i ∉ obs) (hri : r ≠ i) (hr : r ∉ obs) (s_i : S) (h : I → S) (g : S → ℝ) :
∑ s_prof : I → S, M.condSignalProbGiven obs i s_i h s_prof * g (s_prof r) = ∑ s_r : S, (M.updateByObs obs h).peerPosterior s_i s_r * g s_r

Exact marginalization under public history: for any observed set obs : Finset I, rater i ∉ obs, and unobserved reference rater r (r ≠ i, r ∉ obs), marginalizing condSignalProbGiven obs i s_i h onto s_prof r recovers (M.updateByObs obs h).peerPosterior s_i.

Binary-type invariance of stochastic relevance: when Θ = Fin 2 (two product quality types), replacing the prior with any strictly positive history-updated posterior updateByObs obs h preserves stochastic relevance (StochasticallyRelevant).

Sequential interim transfer and §27.4.2 history-conditioned scoring (p. 688) #

noncomputable def Cslib.GameTheory.Reputation.PeerPredictionModel.sequentialInterimTransfer {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) [DecidableEq S] {I : Type u_3} [Fintype I] [DecidableEq I] (τ : (I → S) → I → ℝ) (σ : I → S → S) (obs : Finset I) (i : I) (s_i : S) (h : I → S) (report : S) :

Rater i's conditional expected transfer E[τ_i(report, σ_{-i}(S^{-i})) | S^i = s_i, S|_{obs} = h|_{obs}] after observing earlier truthful reports h on obs (i ∉ obs) and private signal s_i.

noncomputable def Cslib.GameTheory.Reputation.PeerPredictionModel.sequentialScoringTransfer {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) {I : Type u_3} (T : PredictionMarket.ScoringRule S) (obs : I → Finset I) (r : I → I) (x : I → S) (i : I) :

History-conditioned sequential peer-prediction transfer ([FriedmanResnickSami2007, §27.4.2, p. 688]): rater i, having observed reports from obs i, is scored under T using the reference posterior inferred from the common prior, her observed predecessors' reports x|_{obs i}, and her own report x i.

theorem Cslib.GameTheory.Reputation.PeerPredictionModel.sequentialInterimTransfer_scoringPeerTransfer_truthful {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) [DecidableEq S] {I : Type u_3} [Fintype I] [DecidableEq I] (T : PredictionMarket.ScoringRule S) {obs : Finset I} {r : I → I} {i : I} (hi : i ∉ obs) (hri : r i ≠ i) (hr : r i ∉ obs) (s_i : S) (h : I → S) (report : S) :

Under truthful reporting by predecessors obs i and reference rater r i (i ∉ obs i, r i ≠ i, r i ∉ obs i), rater i's conditional expected static scoringPeerTransfer after observing h on obs i equals T.expectedScore ((M.updateByObs (obs i) h).peerPosterior s_i) (M.peerPosterior report).

theorem Cslib.GameTheory.Reputation.PeerPredictionModel.sequentialInterimTransfer_sequentialScoringTransfer_truthful {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) [DecidableEq S] {I : Type u_3} [Fintype I] [DecidableEq I] (T : PredictionMarket.ScoringRule S) {obs : I → Finset I} {r : I → I} {i : I} (hi : i ∉ obs i) (hri : r i ≠ i) (hr : r i ∉ obs i) (s_i : S) (h : I → S) (report : S) :
M.sequentialInterimTransfer (M.sequentialScoringTransfer T obs r) (truthfulStrategy I) (obs i) i s_i h report = T.expectedScore ((M.updateByObs (obs i) h).peerPosterior s_i) ((M.updateByObs (obs i) h).peerPosterior report)

Under truthful reporting by predecessors obs i and reference rater r i, rater i's conditional expected sequential transfer under sequentialScoringTransfer T obs r equals the expected score of (M.updateByObs (obs i) h).peerPosterior report under (M.updateByObs (obs i) h).peerPosterior s_i.

theorem Cslib.GameTheory.Reputation.PeerPredictionModel.truthful_isStrictBestResponse_sequentialScoringTransfer {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) [DecidableEq S] {I : Type u_3} [Fintype I] [DecidableEq I] {T : PredictionMarket.ScoringRule S} (hT : T.IsStrictlyProperOn (PredictionMarket.openProbSimplex S)) {obs : I → Finset I} {r : I → I} {i : I} (hi : i ∉ obs i) (hri : r i ≠ i) (hr : r i ∉ obs i) (h : I → S) (hrel : (M.updateByObs (obs i) h).StochasticallyRelevant) (s_i report : S) (hne : report ≠ s_i) :

Sequential history-conditioned peer prediction restores strict truthfulness ([FriedmanResnickSami2007, §27.4.2, p. 688]): when rater i observes earlier truthful reports h on obs i (i ∉ obs i) and is scored against an unobserved reference rater r i (r i ≠ i, r i ∉ obs i) using sequentialScoringTransfer T obs r for any scoring rule T strictly proper on openProbSimplex S, if (M.updateByObs (obs i) h).StochasticallyRelevant holds (automatic for every binary-type model by updateByObs_stochasticallyRelevant_of_fin2), then truthfully reporting her private signal s_i is the unique strict best response for every report ≠ s_i.

noncomputable def Cslib.GameTheory.Reputation.PeerPredictionModel.balancedSequentialScoringTransfer {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) {I : Type u_3} (T : PredictionMarket.ScoringRule S) (obs : I → Finset I) (r : I → I) (b : I ≃ I) (x : I → S) (i : I) :

Ex-post budget-balanced sequential peer-prediction transfer: rater i receives her own history-conditioned sequential score minus rater b i's sequential score under a bijection b : I ≃ I.

theorem Cslib.GameTheory.Reputation.PeerPredictionModel.sum_balancedSequentialScoringTransfer_eq_zero {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) {I : Type u_3} [Fintype I] (T : PredictionMarket.ScoringRule S) (obs : I → Finset I) (r : I → I) (b : I ≃ I) (x : I → S) :
∑ i : I, M.balancedSequentialScoringTransfer T obs r b x i = 0

Exact ex-post budget balance for sequential history-conditioned transfers.

theorem Cslib.GameTheory.Reputation.PeerPredictionModel.truthful_isStrictBestResponse_balancedSequentialScoringTransfer {Θ : Type u_1} {S : Type u_2} [Fintype Θ] [Fintype S] (M : PeerPredictionModel Θ S) [DecidableEq S] {I : Type u_3} [Fintype I] [DecidableEq I] {T : PredictionMarket.ScoringRule S} (hT : T.IsStrictlyProperOn (PredictionMarket.openProbSimplex S)) {obs : I → Finset I} {r : I → I} {b : I ≃ I} {i : I} (hi : i ∉ obs i) (hri : r i ≠ i) (hr : r i ∉ obs i) (hbi : b i ≠ i) (hrbi : r (b i) ≠ i) (hobi : i ∉ obs (b i)) (h : I → S) (hrel : (M.updateByObs (obs i) h).StochasticallyRelevant) (s_i report : S) (hne : report ≠ s_i) :

Strict sequential truthfulness of budget-balanced sequential peer prediction: when b i's transfer does not depend on x i (b i ≠ i, r (b i) ≠ i, i ∉ obs (b i)), subtracting b i's sequential score preserves strict optimality of truthful reporting for rater i.

Exercise 27.6: Explicit j ≠ r(i) counterexample to static transfers (p. 697) #

Explicit asymmetric binary peer-prediction model witnessing Exercise 27.6 ([FriedmanResnickSami2007, p. 697]): two product types (0 = H, 1 = L) with uniform prior Pr₀(H) = Pr₀(L) = 1 / 2 and two signals (0 = h, 1 = l) with f(h | H) = 4 / 5, f(l | H) = 1 / 5, f(h | L) = 1 / 10, f(l | L) = 9 / 10.

Exact static posteriors of asymmetricBinaryModel: Pr(S^r = h | S^i = h) = 13 / 18, Pr(S^r = l | S^i = h) = 5 / 18, Pr(S^r = h | S^i = l) = 5 / 22, Pr(S^r = l | S^i = l) = 17 / 22.

asymmetricBinaryModel is stochastically relevant, so static peer prediction is a strict Bayes–Nash equilibrium in the simultaneous reporting game.

Exact history-updated posteriors of asymmetricBinaryModel when rater i receives private signal 1 (l) after observing a single earlier rater j report 0 (h): Pr(S^r = h | S^j = h, S^i = l) = 137 / 250 and Pr(S^r = l | S^j = h, S^i = l) = 113 / 250.

Exercise 27.6 — logarithmic scoring rule ([FriedmanResnickSami2007, p. 697]): for any finite rater set I with pairwise distinct raters i, j, and r i (j ≠ i, r i ≠ i, and j ≠ r i), suppose rater i observes rater j's honest report h j = 0 (h) before submitting her own rating, receives private signal 1 (l), and is still paid according to the static logarithmic transfer logPeerTransfer r α β (0 < α, Equation (27.2)). Then lying (report = 0) yields a strictly higher conditional expected payoff than honest reporting (report = 1).

Exercise 27.6 — quadratic scoring rule ([FriedmanResnickSami2007, p. 697]): on the exact same model asymmetricBinaryModel and observed non-reference rater j ≠ r i, misreporting 0 (h) upon observing h j = 0 and private signal 1 (l) also strictly outperforms honest reporting under the static quadratic scoring rule quadraticScore (Fin 2).