{"assessment":{"class":"B","importance":"top"},"audit":{"blind":true,"ended":"2026-11-03T02:10:43.537Z","figures":[{"ci95":[0.4891,0.9935],"drawn":36,"id":"primary","label":"Strong links (exact, close or broad match) on supporting passages that have exactly the right relation","n_eff":5.1,"population":1029,"share":0.9234,"weights":"relation and library"},{"ci95":[0.3979,0.9202],"drawn":48,"id":"S2","label":"Links in a counting relation (exact, close, broad, narrow match or part) on supporting passages that have exactly the right relation","n_eff":8.1,"population":1740,"share":0.734,"weights":"relation and library"},{"ci95":[0.7268,0.9357],"drawn":44,"id":"CS","label":"Central and subject passages whose formalization status is right","n_eff":42.0,"population":1905,"share":0.8615,"weights":"recorded status"},{"ci95":[0.2519,0.8658],"drawn":12,"id":"S3","label":"'Not formalized' on supporting passages that is right (no declaration in the 48 libraries states it)","n_eff":6.1,"population":1236,"share":0.5957,"weights":"article"}],"independent":false,"items":224,"models":[{"model":"claude-opus-5-5","model_name":"Claude Opus 5.5"}],"operator":"jack","run_id":"tierA-batch1-audit","started":"2026-11-02T21:10:01.351Z"},"campaign":"run:loc-tierA-b1b+chal-tierA-b1","licence":{"mapping":"CC0-1.0","text":"CC-BY-SA-4.0"},"pageid":32344,"passages":[{"absence":null,"basis":"483a2d5c068f3e8368d6d99e9ef4c7962610f62d03f5f5147b6b0623010a1792","coverage":null,"id":"enwiki-32344-1368633150::In-text #d0760bbc","item":"In-text #d0760bbc","kind":"definition","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance","end_line":64,"library":"mathlib","line":64,"location_key":"483a2d5c068f3e8368d6d99e9ef4c7962610f62d03f5f5147b6b0623010a1792","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib defines the quantity for an arbitrary measure on Ω through the ENNReal-valued evariance, so it covers both a random variable and a finite collection of numbers under its uniform measure.","pair_key":"c454dfad0ad4680f3de91be6f56395268c2854adfdf7ee6b4c29c3c08d10363f","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"definition","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def ProbabilityTheory.variance {Ω : Type*} {mΩ : MeasurableSpace Ω} : (Ω → ℝ) → MeasureTheory.Measure Ω → ℝ"},"statement":false},{"challenge":"survived","commit":"4453b52d2468f4c346a8711d728c0742e7483c9b","confidence":"medium","declaration":"Batteries.RunningStats.variance","end_line":61,"library":"batteries","line":60,"location_key":"e361acf0a666094e10b2e25a7887f8ae7defec8d7587ab76d376c52583862f0b","module":"Batteries.Data.RunningStats","note":"Batteries works with Float values and updates the accumulator by Welford's algorithm.","pair_key":"9896a7897fd2813324ebb44a9b83fbaa2ca4a1198020301d76eec27ccd6b3455","path":"Batteries/Data/RunningStats.lean","proof_status":"definition","rank":2,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/batteries","signature":{"elided":false,"text":"def Batteries.RunningStats.variance : Batteries.RunningStats → Float"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"d5595d2ba37cc0c9af07aa3c79d1ba44cf687fca24b29d8f4f0d549abb8d3f70","prominence":"subject","quote":{"exact":"In probability theory and statistics, variance is a measure of dispersion, meaning"},"quote_capped":true,"section":[],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"In probability theory and statistics, variance is a measure of dispersion, meaning it is a measure of how far a set of numbers are spread out from their average value.","segments":[{"text":"In probability theory and statistics, variance is a measure of dispersion, meaning it is a measure of how far a set of numbers are spread out from their average value."}]},"unresolved":null},{"absence":null,"basis":"3e1970fa99e0904c4dffc0bd360bb0223dc594e9388b52758811a120f5ddbbc5","coverage":null,"id":"enwiki-32344-1368633150::In-text #28c7f86e","item":"In-text #28c7f86e","kind":"definition","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_eq_integral","end_line":159,"library":"mathlib","line":157,"location_key":"d4dadf52a412e514bab6ed41768e3cfcabb2d4d160fda03d3750ec4c77282d29","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib states the identity with the mean written as the integral of X and with the measure left as a parameter.","pair_key":"6948535831028ad1079fccd19d3b0b65de82f5a42a1292910439beb11db5e5f5","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_integral {Ω : Type*} {mΩ : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} : AEMeasurable X μ → ProbabilityTheory.variance X μ = ∫ (ω : Ω), (X ω - ∫ (x : Ω), X x ∂μ) ^ 2 ∂μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance","end_line":64,"library":"mathlib","line":64,"location_key":"3e1970fa99e0904c4dffc0bd360bb0223dc594e9388b52758811a120f5ddbbc5","module":"Mathlib.Probability.Moments.Variance","note":"This is the object the passage defines; Mathlib builds it as the real part of the ENNReal-valued evariance of X.","pair_key":"a4297629e7b87128a67df920af8a3b3083e3dd68eace176b37969c4b9e63c51d","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"definition","rank":2,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def ProbabilityTheory.variance {Ω : Type*} {mΩ : MeasurableSpace Ω} : (Ω → ℝ) → MeasureTheory.Measure Ω → ℝ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"68370a50e738ef1472de3ae31924e62b4676cb1e5f91912c9059ff88dc974089","prominence":"central","quote":{"exact":"It is defined as the expected value of the squared deviation from"},"quote_capped":true,"section":[],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"It is defined as the expected value of the squared deviation from the mean of a random variable.","segments":[{"text":"It is defined as the expected value of the squared deviation from the mean of a random variable."}]},"unresolved":null},{"absence":null,"basis":"41b8a41965b9c818f3798f012e496136cedd6c0ea8f6c11b4e6a728e554259e1","coverage":null,"id":"enwiki-32344-1368633150::In-text #a7606ff6","item":"In-text #a7606ff6","kind":"definition","locations":[{"challenge":"sampled_out","commit":"4453b52d2468f4c346a8711d728c0742e7483c9b","confidence":"medium","declaration":"Batteries.RunningStats.standardDeviation","end_line":71,"library":"batteries","line":70,"location_key":"41b8a41965b9c818f3798f012e496136cedd6c0ea8f6c11b4e6a728e554259e1","module":"Batteries.Data.RunningStats","note":"Batteries builds the square root in Float arithmetic from the accumulator's population variance.","pair_key":"f5392b45a4268495edac84b9aced912786b7f6ad17c98eba3a68e6d66a0e6837","path":"Batteries/Data/RunningStats.lean","proof_status":"definition","rank":1,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/batteries","signature":{"elided":false,"text":"def Batteries.RunningStats.standardDeviation : Batteries.RunningStats → Float"},"statement":false},{"challenge":"downgraded","commit":"4453b52d2468f4c346a8711d728c0742e7483c9b","confidence":"medium","declaration":"Batteries.RunningStats.sampleStandardDeviation","end_line":76,"library":"batteries","line":75,"location_key":"395706d502f82e64ff200f165e7285857c0ec2a5d9719766e338aacdcfdd6e4b","module":"Batteries.Data.RunningStats","note":"Batteries divides by one less than the count before taking the Float square root.","pair_key":"796ffaac66c28fe60a9cc52d27dcd7ba1d8411896dc8d27c3d74c2795ed8c314","path":"Batteries/Data/RunningStats.lean","proof_status":"definition","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/batteries","signature":{"elided":false,"text":"def Batteries.RunningStats.sampleStandardDeviation : Batteries.RunningStats → Float"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"0b44e0bc0e9b59b643c3f779eee507de6e3c6c8a91a295d19fa4d3956b2def21","prominence":"supporting","quote":{"exact":"The standard deviation is the square root of the variance."},"quote_capped":false,"section":[],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The standard deviation is the square root of the variance.","segments":[{"text":"The standard deviation is the square root of the variance."}]},"unresolved":null},{"absence":null,"basis":null,"coverage":{"basis":true,"bundle_key":"b64eb07d8bd7cbdf2c7d5e9e3d494d247ff5b4c4a3cbefacf80d995fc46b492c","challenge":"survived","complete":true,"conjuncts":[{"id":"c1","part":"ad4d72b2316aabca0e3986cde9c999842645acc17ef7c71024ef20136a4a21d3","text":"the variance of a random variable is the second central moment of its distribution"},{"id":"c2","part":"34ef87ac7573066a3e7a91422219fa9c7d75fbaab1ec41db175cd61ce3339689","text":"the variance of X equals the covariance of X with itself"}],"parts":["ad4d72b2316aabca0e3986cde9c999842645acc17ef7c71024ef20136a4a21d3","34ef87ac7573066a3e7a91422219fa9c7d75fbaab1ec41db175cd61ce3339689"],"relation":"broadMatch","status":"formalized"},"id":"enwiki-32344-1368633150::In-text #e4cb9b7a","item":"In-text #e4cb9b7a","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.centralMoment_two_eq_variance","end_line":108,"library":"mathlib","line":107,"location_key":"ad4d72b2316aabca0e3986cde9c999842645acc17ef7c71024ef20136a4a21d3","module":"Mathlib.Probability.Moments.Basic","note":"Mathlib's central moment of order p is the integral of the p-th power of the deviation of X from its mean, and the lemma takes p to be 2.","pair_key":"58593874f416eb0100bf517a17bf3a0eec1618d9f613576fa9ce3030bae406d1","path":"Mathlib/Probability/Moments/Basic.lean","proof_status":"proved","rank":1,"relation":"hasPart","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.centralMoment_two_eq_variance {Ω : Type*} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} : AEMeasurable X μ → ProbabilityTheory.centralMoment X 2 μ = ProbabilityTheory.variance X μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.covariance_self","end_line":201,"library":"mathlib","line":197,"location_key":"34ef87ac7573066a3e7a91422219fa9c7d75fbaab1ec41db175cd61ce3339689","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib's covariance of two real random variables is the integral of the product of their deviations from their means.","pair_key":"63cf11cd9729010da4a251cf685694ad9bcf3696c1819e9b509c5cd1009eaaf9","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"hasPart","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.covariance_self {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X : Ω → ℝ} : AEMeasurable X μ → ProbabilityTheory.covariance X X μ = ProbabilityTheory.variance X μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"dc4c254fc56c5371f3673e7bd09c69de110663d8966bea8886eb9378f012511c","prominence":"central","quote":{"exact":"Technically, it is the second central moment of a distribution, and the"},"quote_capped":true,"section":[],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":", and it is often represented by ⁠ σ 2 {\\displaystyle \\sigma ^{2}} ⁠, ⁠ s 2 {\\displaystyle s^{2}} ⁠, ⁠ Var ⁡ ( X ) {\\displaystyle \\operatorname {Var} (X)} ⁠, ⁠ V ( X ) {\\displaystyle V(X)} ⁠, or ⁠ V ( X ) {\\displaystyle \\mathbb {V} (X)} ⁠.","segments":[{"text":", and it is often represented by ⁠ "},{"tex":"\\sigma ^{2}"},{"text":" ⁠, ⁠ "},{"tex":"s^{2}"},{"text":" ⁠, ⁠ "},{"tex":"\\operatorname {Var} (X)"},{"text":" ⁠, ⁠ "},{"tex":"V(X)"},{"text":" ⁠, or ⁠ "},{"tex":"\\mathbb {V} (X)"},{"text":" ⁠."}]},"layer":"Technically, it is the second central moment of a distribution, and the covariance of the random variable with itself","segments":[{"text":"Technically, it is the second central moment of a distribution, and the covariance of the random variable with itself"}]},"unresolved":null},{"absence":null,"basis":"468c2641388da8855786e62c55162b541814e85059cc215c4665392fd7dfb442","coverage":null,"id":"enwiki-32344-1368633150::In-text #164ad8db","item":"In-text #164ad8db","kind":"notation","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.«termVar[_;_]»","end_line":80,"library":"mathlib","line":77,"location_key":"468c2641388da8855786e62c55162b541814e85059cc215c4665392fd7dfb442","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib writes the variance with square brackets and the measure displayed alongside the variable, as Var[X ; measure].","pair_key":"e5f9b3d1c8a2d8f9c91f746f951f6eb9cf9d3b9f3a1075d507616d5d334a5689","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"definition","rank":1,"relation":"closeMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def ProbabilityTheory.«termVar[_;_]» : Lean.ParserDescr"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.«termVar[_]»","end_line":85,"library":"mathlib","line":82,"location_key":"7df196ec9aa5a8d109884218e8d4f75de4a0c591067153a34cd3233768888f46","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib writes Var[X] in square brackets with the measure left to the ambient volume measure.","pair_key":"fca52242e22e796facb11ab0aa871da0215d893c6bdedae2003550cb9bdf5545","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"definition","rank":2,"relation":"closeMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def ProbabilityTheory.«termVar[_]» : Lean.ParserDescr"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"a7cc08183db209caecdbe68bf2a2de72713caa5da817fa9dc2b745b649ce65fc","prominence":"supporting","quote":{"exact":"it is often represented by ⁠ σ 2 {\\displaystyle \\sigma ^{2}} ⁠,"},"quote_capped":true,"section":[],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"Technically, it is the second central moment of a distribution, and the covariance of the random variable with itself, and ","segments":[{"text":"Technically, it is the second central moment of a distribution, and the covariance of the random variable with itself, and "}]},"layer":"it is often represented by ⁠ σ 2 {\\displaystyle \\sigma ^{2}} ⁠, ⁠ s 2 {\\displaystyle s^{2}} ⁠, ⁠ Var ⁡ ( X ) {\\displaystyle \\operatorname {Var} (X)} ⁠, ⁠ V ( X ) {\\displaystyle V(X)} ⁠, or ⁠ V ( X ) {\\displaystyle \\mathbb {V} (X)} ⁠.","segments":[{"text":"it is often represented by ⁠ "},{"tex":"\\sigma ^{2}"},{"text":" ⁠, ⁠ "},{"tex":"s^{2}"},{"text":" ⁠, ⁠ "},{"tex":"\\operatorname {Var} (X)"},{"text":" ⁠, ⁠ "},{"tex":"V(X)"},{"text":" ⁠, or ⁠ "},{"tex":"\\mathbb {V} (X)"},{"text":" ⁠."}]},"unresolved":null},{"absence":null,"basis":"f5f8ad14365bb0221e34b01a06d09ba83984f1b7fcd53a5a3489717b72a2574d","coverage":null,"id":"enwiki-32344-1368633150::In-text #2f8dd622","item":"In-text #2f8dd622","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.IndepFun.variance_sum","end_line":447,"library":"mathlib","line":424,"location_key":"f5f8ad14365bb0221e34b01a06d09ba83984f1b7fcd53a5a3489717b72a2574d","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib assumes pairwise independence of the summands, a condition that forces the vanishing of their covariances, and the universe holds no declaration about uncorrelated variables as such.","pair_key":"e9b023af0356bfbdab6c5c17a8965feed27c5fe5fad63c2fdd1c38c45383ec43","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} {s : Finset ι} : (∀ i ∈ s, MeasureTheory.MemLp (X i) 2 μ) → ((↑s).Pairwise fun i j ↦ ProbabilityTheory.IndepFun (X i) (X j) μ) → ProbabilityTheory.variance (∑ i ∈ s, X i) μ = ∑ i ∈ s, ProbabilityTheory.variance (X i) μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.IndepFun.variance_add","end_line":415,"library":"mathlib","line":408,"location_key":"9b5673a4d0c96b7aa61067297af7db45e0becb7bbaec53ce5a315a17e849080e","module":"Mathlib.Probability.Moments.Variance","note":"This is the two-summand form, again under independence rather than the vanishing of the covariance alone.","pair_key":"9d72881dbdee2326795d330bfc3892d7735de4ceaec6e3d4fbf2dcc422a6dbff","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.variance_add {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X Y : Ω → ℝ} : MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.IndepFun X Y μ → ProbabilityTheory.variance (X + Y) μ = ProbabilityTheory.variance X μ + ProbabilityTheory.variance Y μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_sum","end_line":297,"library":"mathlib","line":295,"location_key":"f08c318abad1cbf06d42ba70417435cae38effbc7c40961a9797b0cfe1b93273","module":"Mathlib.Probability.Moments.Variance","note":"It expands the variance of a sum into the double sum of covariances, so the passage's identity follows from it only once a further lemma disposes of the off-diagonal terms and rewrites the diagonal ones.","pair_key":"9f887f54f3ca6c667493ce2bb20aa1b9806cd8e62b17d95ffa6f6d6c0c6601e9","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":3,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] [Fintype ι] : (∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) → ProbabilityTheory.variance (∑ i, X i) μ = ∑ i, ∑ j, ProbabilityTheory.covariance (X i) (X j) μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"1762dda3637e1329223ba493a1e77c1679c1930211527acb6b7f8dbb5b71a92f","prominence":"central","quote":{"exact":"for example, the variance of a sum of uncorrelated random variables is"},"quote_capped":true,"section":[],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"An advantage of variance as a measure of dispersion is that it is more amenable to algebraic manipulation than other measures of dispersion such as the expected absolute deviation; ","segments":[{"text":"An advantage of variance as a measure of dispersion is that it is more amenable to algebraic manipulation than other measures of dispersion such as the expected absolute deviation; "}]},"layer":"for example, the variance of a sum of uncorrelated random variables is equal to the sum of their variances.","segments":[{"text":"for example, the variance of a sum of uncorrelated random variables is equal to the sum of their variances."}]},"unresolved":null},{"absence":null,"basis":"efb7180a9a662aa5132bc95fa62a29160ba194a4a71f731d929c7663869768cc","coverage":null,"id":"enwiki-32344-1368633150::In-text #ebe00ebe","item":"In-text #ebe00ebe","kind":"definition","locations":[{"challenge":"survived","commit":"4453b52d2468f4c346a8711d728c0742e7483c9b","confidence":"medium","declaration":"Batteries.RunningStats.variance","end_line":61,"library":"batteries","line":60,"location_key":"efb7180a9a662aa5132bc95fa62a29160ba194a4a71f731d929c7663869768cc","module":"Batteries.Data.RunningStats","note":"Batteries names this the population variance in its docstring and computes it in Float from the accumulated count, mean and squared gaps.","pair_key":"8bca529516e180cc7e1ffc533a4b07d6e6021ba163b22873f4cca6ba58206a98","path":"Batteries/Data/RunningStats.lean","proof_status":"definition","rank":1,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/batteries","signature":{"elided":false,"text":"def Batteries.RunningStats.variance : Batteries.RunningStats → Float"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"63bd83b4731790abbd275271ef7c35438b6e1f721f3b1a7e3a67495df0d39484","prominence":"central","quote":{"exact":"If all possible observations of the system are present, then the calculated"},"quote_capped":true,"section":[],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":", and the variance calculated from this is called the sample variance.","segments":[{"text":", and the variance calculated from this is called the sample variance."}]},"layer":"If all possible observations of the system are present, then the calculated variance is called the population variance. Normally, however, only a subset is available","segments":[{"text":"If all possible observations of the system are present, then the calculated variance is called the population variance. Normally, however, only a subset is available"}]},"unresolved":null},{"absence":null,"basis":"3dfa5632b9c502cade2d80a05d74a71c918c9065b490d3608f0b57414e49fad6","coverage":null,"id":"enwiki-32344-1368633150::In-text #7afda3ac","item":"In-text #7afda3ac","kind":"definition","locations":[{"challenge":"survived","commit":"4453b52d2468f4c346a8711d728c0742e7483c9b","confidence":"medium","declaration":"Batteries.RunningStats.sampleVariance","end_line":66,"library":"batteries","line":65,"location_key":"3dfa5632b9c502cade2d80a05d74a71c918c9065b490d3608f0b57414e49fad6","module":"Batteries.Data.RunningStats","note":"Batteries names this the sample variance and divides the accumulated squared gaps by one less than the count.","pair_key":"d62c4348609e2a571d507cbcf729de64d8bdf1fcd4849c0c77dd52a1f806634e","path":"Batteries/Data/RunningStats.lean","proof_status":"definition","rank":1,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/batteries","signature":{"elided":false,"text":"def Batteries.RunningStats.sampleVariance : Batteries.RunningStats → Float"},"statement":false},{"challenge":"survived","commit":"64c2773ffad3e5453b9f40c62e693b3669ade83f","confidence":"low","declaration":"MetaMathlibExt.initialSegmentSampleVariance","library":"atlas","line":41,"location_key":"360286bf90acecea1ffcd720f59d67f47de8ac59eca34b5f5ba877d8f2aea811","module":"MathlibExt.Analysis.Asymptotics.TaylorInitialSampleVariance","note":"The declaration fixes the observations to be an integer-valued sequence read along its initial segments and divides by one less than the length.","pair_key":"39d15c1454def65adfd2bfe04ee113e7d5bbc3575457b0890d6cdac3764b8203","path":"MathlibExt/Analysis/Asymptotics/TaylorInitialSampleVariance.lean","proof_status":"definition","rank":2,"relation":"narrowMatch","repo":"https://github.com/facebookresearch/atlas-lean","signature":{"elided":false,"text":"def MetaMathlibExt.initialSegmentSampleVariance : (ℕ → ℕ) → ℕ → ℝ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"a4bcb75dc3965aed3c1daa7cf29a1b4afa1fd2560c70102ff702ddd871e06918","prominence":"central","quote":{"exact":"the variance calculated from this is called the sample variance."},"quote_capped":false,"section":[],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"Normally, however, only a subset is available, and ","segments":[{"text":"Normally, however, only a subset is available, and "}]},"layer":"the variance calculated from this is called the sample variance.","segments":[{"text":"the variance calculated from this is called the sample variance."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":3,"queries":4,"sha256":"63c144a81529d4b564a2d4cb6e332476911c89a8c3ae58b17d08b98c43defbba"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #e9f8df74","item":"In-text #e9f8df74","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.strong_law_ae_real","end_line":631,"library":"mathlib","line":598,"location_key":"e7937a43de687be3cb26cb04a249975adffd7b923c73f5d0093fb334d85cd419","module":"Mathlib.Probability.StrongLaw","note":"Concludes that the running average of independent identically distributed integrable observations tends almost surely to the expectation.","pair_key":"73d3f2e4f9b43252cdf9eed8655a9ec21f55c5f6602fcd7ce24c8415bea2d2a4","path":"Mathlib/Probability/StrongLaw.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.strong_law_ae_real {Ω : Type*} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} (X : ℕ → Ω → ℝ) : MeasureTheory.Integrable (X 0) μ → Pairwise (Function.onFun (fun x1 x2 ↦ ProbabilityTheory.IndepFun x1 x2 μ) X) → (∀ (i : ℕ), ProbabilityTheory.IdentDistrib (X i) (X 0) μ μ) → ∀ᵐ (ω : Ω) ∂μ, Filter.Tendsto (fun n ↦ (∑ i ∈ Finset.range n, X i ω) / ↑n) Filter.atTop (𝓝 (∫ (x : Ω), X 0 x ∂μ))"},"statement":false},{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"medium","declaration":"TauCeti.Probability.ConditionallyIIDWith.tendsto_integral_empiricalMeasure_ae","end_line":159,"library":"tauceti","line":148,"location_key":"0ceb9120ec7d58fc4c50d61c28aefaa17b75828a270485724e9ce251ce29b708","module":"TauCeti.Probability.Exchangeability.ConditionallyIID.StrongLaw","note":"States that integrals of a bounded measurable function against the empirical measure of the first n observations tend to the integral against the directing law.","pair_key":"bdd02e4a7e0e593dae2bf8c4f36c59cf606dafc39dcaee90f6865b38146ac789","path":"TauCeti/Probability/Exchangeability/ConditionallyIID/StrongLaw.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":true,"text":"theorem TauCeti.Probability.ConditionallyIIDWith.tendsto_integral_empiricalMeasure_ae {Ω : Type*} {α : Type*} […] {μ : MeasureTheory.Measure Ω} {X : ℕ → Ω → α} {ν : Ω → MeasureTheory.ProbabilityMeasure α} : TauCeti.Probability.ConditionallyIIDWith μ X ν → ∀ {f : α → ℝ}, Measurable f → ∀ {C : ℝ}, (∀ (x : α), |f x| ≤ C) → ∀ᵐ (ω : Ω) ∂μ, Filter.Tendsto (fun n ↦ ∫ (y : α), f y ∂↑(TauCeti.Probability.empiricalMeasure (fun i ↦ X i ω) n)) Filter.atTop (𝓝 (∫ (y : α), f y ∂↑(ν ω)))","type":"∀ {Ω : Type u_1} {α : Type u_2} [inst : MeasurableSpace Ω] [inst_1 : MeasurableSpace α] {μ : MeasureTheory.Measure Ω} {X : ℕ → Ω → α} {ν : Ω → MeasureTheory.ProbabilityMeasure α} [MeasureTheory.IsFiniteMeasure μ], TauCeti.Probability.ConditionallyIIDWith μ X ν → ∀ {f : α → ℝ}, Measurable f → ∀ {C : ℝ}, (∀ (x : α), |f x| ≤ C) → ∀ᵐ (ω : Ω) ∂μ, Filter.Tendsto (fun n ↦ ∫ (y : α), f y ∂↑(TauCeti.Probability.empiricalMeasure (fun i ↦ X i ω) n)) Filter.atTop (nhds (∫ (y : α), f y ∂↑(ν ω)))"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"531b30e5163c588b62e0c50512c01f2dc0a4a1f8fe671aa21ca8f238865fb6d1","prominence":"supporting","quote":{"exact":"If an infinite number of observations are generated using a distribution, then"},"quote_capped":true,"section":[],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"If an infinite number of observations are generated using a distribution, then the sample variance calculated from that infinite set will match the value calculated using the distribution's equation for variance.","segments":[{"text":"If an infinite number of observations are generated using a distribution, then the sample variance calculated from that infinite set will match the value calculated using the distribution's equation for variance."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":3,"queries":5,"sha256":"f4f4ac47ccd7b4d9d8b5f1692f99d163cb8d175d60e243bb85b4ec8d083881bd"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #8b7a2cf4","item":"In-text #8b7a2cf4","kind":"construction","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"Finset.centroid","end_line":80,"library":"mathlib","line":79,"location_key":"a21adb11a6eaf3bac4bf402f33e897c181a3af44cabd6edd0c4d6cff59fd2d09","module":"Mathlib.LinearAlgebra.AffineSpace.Centroid","note":"Defines the equal-weight affine combination of a finite family of points; it asserts no equation between that point and the arithmetic mean of a list of numbers.","pair_key":"baa876545d54f42b06142bd6d0bbacd0678bdb9bcf8db1bb09eb2ffb52ea8d9f","path":"Mathlib/LinearAlgebra/AffineSpace/Centroid.lean","proof_status":"definition","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def Finset.centroid (k : Type*) {V : Type*} {P : Type*} [DivisionRing k] [AddCommGroup V] [_root_.Module k V] [AddTorsor V P] {ι : Type*} : Finset ι → (ι → P) → P"},"statement":false},{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"medium","declaration":"TauCeti.finiteMean","end_line":51,"library":"tauceti","line":50,"location_key":"8ac5890299e923bd6e2ead56b01c2d30688151e9875f321b222a42c3d90883c2","module":"TauCeti.Analysis.Convex.FiniteMean","note":"Defines the average of a finite family of vectors; no declaration ties it to a centroid of a frequency picture or to a rectangle of squared deviations.","pair_key":"638bc3851a8587caf95c51120a0952f9ac132e6376988bd9709c9065111eae28","path":"TauCeti/Analysis/Convex/FiniteMean.lean","proof_status":"definition","rank":2,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"def TauCeti.finiteMean (R : Type*) {E : Type*} {ι : Type*} [Field R] [AddCommGroup E] [_root_.Module R E] [Fintype ι] : (ι → E) → E"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"97f76986830950d07ad25fccebddd25726899118383c4fbdb1f279058f19ddfd","prominence":"supporting","quote":{"exact":"A frequency distribution is constructed.The centroid of the distribution gives its mean.A"},"quote_capped":true,"section":[],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"A frequency distribution is constructed.The centroid of the distribution gives its mean.A square with sides equal to the difference of each value from the mean is formed for each value.Arranging the squares into a rectangle with one side equal to the number of values, n, results in the other side being the distribution's variance, σ2.","segments":[{"text":"A frequency distribution is constructed.The centroid of the distribution gives its mean.A square with sides equal to the difference of each value from the mean is formed for each value.Arranging the squares into a rectangle with one side equal to the number of values, n, results in the other side being the distribution's variance, σ2."}]},"unresolved":null},{"absence":null,"basis":"bae3c7d0825936cbce17dc42eed95b123db409bbb9aeeb2b8c523c48c9c80520","coverage":null,"id":"enwiki-32344-1368633150::In-text #9f2d5e09","item":"In-text #9f2d5e09","kind":"definition","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.evariance","end_line":58,"library":"mathlib","line":58,"location_key":"bae3c7d0825936cbce17dc42eed95b123db409bbb9aeeb2b8c523c48c9c80520","module":"Mathlib.Probability.Moments.Variance","note":"Values lie in the extended non-negative reals, so a divergent expected squared deviation is recorded as the infinite value, as the passage's expectation would be.","pair_key":"d4481e6d80a82bfb7c4908346ae90062ff45f6bebcab95c326ed983f12c23a12","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"definition","rank":1,"relation":"exactMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def ProbabilityTheory.evariance {Ω : Type*} {mΩ : MeasurableSpace Ω} : (Ω → ℝ) → MeasureTheory.Measure Ω → ENNReal"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance","end_line":64,"library":"mathlib","line":64,"location_key":"50d3f9ec3e4386c94ffea9202c5e3dfff134dcd9c43e8bd2ae37e039a06b1f89","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib records the quantity as a real number by taking the real value of the extended-valued version, so a random variable whose expected squared deviation diverges is given the value zero.","pair_key":"b211dbd35b2fd597b3066d71229851b6fa2479e5014831d4de86330fb773c478","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"definition","rank":2,"relation":"closeMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def ProbabilityTheory.variance {Ω : Type*} {mΩ : MeasurableSpace Ω} : (Ω → ℝ) → MeasureTheory.Measure Ω → ℝ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_eq_integral","end_line":159,"library":"mathlib","line":157,"location_key":"cb89cf1d4a486b4fc98a283149b033e533c18745779478b616b48235984eef83","module":"Mathlib.Probability.Moments.Variance","note":"States that the library's variance of a random variable is given by the passage's defining integral, with the mean written as the integral of X.","pair_key":"e47d230fdc9ecfdc9b7c8dc09522c43572b4591ef53052c41574eeebf67431d0","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":3,"relation":"closeMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_integral {Ω : Type*} {mΩ : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} : AEMeasurable X μ → ProbabilityTheory.variance X μ = ∫ (ω : Ω), (X ω - ∫ (x : Ω), X x ∂μ) ^ 2 ∂μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"bed89b593da44a52ace0ad2dffebf592e04eb90f604f0f0ea63348cda7a2c085","prominence":"central","quote":{"exact":"The variance of a random variable X {\\displaystyle X} is the expected"},"quote_capped":true,"section":["Definition"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":" This definition encompasses random variables that are generated by processes that are discrete, continuous, neither, or mixed.","segments":[{"text":" This definition encompasses random variables that are generated by processes that are discrete, continuous, neither, or mixed."}]},"layer":"The variance of a random variable X {\\displaystyle X} is the expected value of the squared deviation from the mean of ⁠ X {\\displaystyle X} ⁠, ⁠ μ = E ⁡ [ X ] {\\displaystyle \\mu =\\operatorname {E} [X]} ⁠: Var ⁡ ( X ) = E ⁡ [ ( X − μ ) 2 ] . {\\displaystyle \\operatorname {Var} (X)=\\operatorname {E} \\left[(X-\\mu )^{2}\\right].}","segments":[{"text":"The variance of a random variable "},{"tex":"X"},{"text":" is the expected value of the squared deviation from the mean of ⁠ "},{"tex":"X"},{"text":" ⁠, ⁠ "},{"tex":"\\mu =\\operatorname {E} [X]"},{"text":" ⁠: "},{"display":true,"tex":"\\operatorname {Var} (X)=\\operatorname {E} \\left[(X-\\mu )^{2}\\right]."}]},"unresolved":null},{"absence":null,"basis":"03ab4cae9f867dfb2095f3aa17da725299edfc42a7321e843fbbbde36f1ab2ad","coverage":null,"id":"enwiki-32344-1368633150::In-text #b6b59d06","item":"In-text #b6b59d06","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.covariance_self","end_line":201,"library":"mathlib","line":197,"location_key":"03ab4cae9f867dfb2095f3aa17da725299edfc42a7321e843fbbbde36f1ab2ad","module":"Mathlib.Probability.Moments.Variance","note":"The equation is stated for a function and a measure without asking the measure to have total mass one, and at the passage's law it is the asserted identity; equality is symmetric, so the order of the two sides carries no difference.","pair_key":"d4c189fdc1a1381ec29f9cf7ab9f7529b37a0fe74d50b65e2e7be9c1fd3a3e84","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"exactMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.covariance_self {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X : Ω → ℝ} : AEMeasurable X μ → ProbabilityTheory.covariance X X μ = ProbabilityTheory.variance X μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"27125a48d566c63e8da94e79cd0b34a9a308518a5fdc8c3e6d3cff275bcf4ab0","prominence":"supporting","quote":{"exact":"The variance can also be thought of as the covariance of a"},"quote_capped":true,"section":["Definition"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The variance can also be thought of as the covariance of a random variable with itself: Var ⁡ ( X ) = Cov ⁡ ( X , X ) . {\\displaystyle \\operatorname {Var} (X)=\\operatorname {Cov} (X,X).}","segments":[{"text":"The variance can also be thought of as the covariance of a random variable with itself: "},{"display":true,"tex":"\\operatorname {Var} (X)=\\operatorname {Cov} (X,X)."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":3,"queries":4,"sha256":"72bb32828b4c8c6a81aa982f1d2507f0de61fef791099f8c6bd0c523c1f1d859"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #9efbba88","item":"In-text #9efbba88","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_tilted_mul","end_line":167,"library":"mathlib","line":159,"location_key":"ede80ab32450402d40d4db3d3bbd0dc8fb365abae321ff0033ecb9d7bebccadf","module":"Mathlib.Probability.Moments.Tilted","note":"States that the variance of X under the exponentially tilted measure equals the second derivative of the cumulant-generating function at the tilt parameter.","pair_key":"98beb565f2d7e3d460939eb63b305028d01a933416a66835107274b10e6e838b","path":"Mathlib/Probability/Moments/Tilted.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_tilted_mul {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X : Ω → ℝ} {t : ℝ} : t ∈ interior (ProbabilityTheory.integrableExpSet X μ) → ProbabilityTheory.variance X (μ.tilted fun x ↦ t * X x) = iteratedDeriv 2 (ProbabilityTheory.cgf X μ) t"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.iteratedDeriv_two_cgf","end_line":238,"library":"mathlib","line":204,"location_key":"b12c3afa0dda3553f98f9c0b9791f0907197179aac69434f94f54164556a8636","module":"Mathlib.Probability.Moments.MGFAnalytic","note":"Computes the second derivative of the cumulant-generating function as a ratio of exponentially weighted integrals minus the square of its first derivative.","pair_key":"247b48cfad5caaf3464fc31b5a8c42db8dc94f392fbc0c5df966300ad1d2bf17","path":"Mathlib/Probability/Moments/MGFAnalytic.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.iteratedDeriv_two_cgf {Ω : Type*} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {v : ℝ} : v ∈ interior (ProbabilityTheory.integrableExpSet X μ) → iteratedDeriv 2 (ProbabilityTheory.cgf X μ) v = (∫ (x : Ω), (fun ω ↦ X ω ^ 2 * Real.exp (v * X ω)) x ∂μ) / ProbabilityTheory.mgf X μ v - deriv (ProbabilityTheory.cgf X μ) v ^ 2"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"d9749d298344ea3823e4319d6d8f5eb6798db8d59a15767f76348d558ada2768","prominence":"supporting","quote":{"exact":"The variance is also equivalent to the second cumulant of a probability"},"quote_capped":true,"section":["Definition"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The variance is also equivalent to the second cumulant of a probability distribution that generates ⁠ X {\\displaystyle X} ⁠.","segments":[{"text":"The variance is also equivalent to the second cumulant of a probability distribution that generates ⁠ "},{"tex":"X"},{"text":" ⁠."}]},"unresolved":null},{"absence":null,"basis":"8a56a70a2f0ef21b0f55bf507c1571759b4731eb18c550c71fcb0f00980b56b2","coverage":null,"id":"enwiki-32344-1368633150::In-text #eb57a19a","item":"In-text #eb57a19a","kind":"notation","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.«termVar[_]»","end_line":85,"library":"mathlib","line":82,"location_key":"8a56a70a2f0ef21b0f55bf507c1571759b4731eb18c550c71fcb0f00980b56b2","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib writes the variance of X with square brackets and no written measure, taking the ambient measure of the space; the Greek-letter forms the sentence also lists are not introduced.","pair_key":"73cfe49fd4185f7e12cc5e3bfda8bae1e2eeef3ea5a3e0bc7501f3a39af14a6d","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"definition","rank":1,"relation":"closeMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def ProbabilityTheory.«termVar[_]» : Lean.ParserDescr"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.«termVar[_;_]»","end_line":80,"library":"mathlib","line":77,"location_key":"f323f4dc738f6f7ac2f02464556b3f6dd492a5d7e18386b513aaa08453bea2e5","module":"Mathlib.Probability.Moments.Variance","note":"The same bracketed form with the measure written out after a semicolon, so that the distribution the sentence keeps implicit becomes visible.","pair_key":"2769258e635500fe4613930d31a3d0153cb00dcbec022a9478a4ba9e6bec1247","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"definition","rank":2,"relation":"closeMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def ProbabilityTheory.«termVar[_;_]» : Lean.ParserDescr"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"9e40c29bfea4fd1ad9498a08e4cd77b9237dee1e0e6efb243c9ee4ee329e2b7d","prominence":"supporting","quote":{"exact":"The variance is typically designated as ⁠ Var ⁡ ( X )"},"quote_capped":true,"section":["Definition"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The variance is typically designated as ⁠ Var ⁡ ( X ) {\\displaystyle \\operatorname {Var} (X)} ⁠, or sometimes as V ( X ) {\\displaystyle V(X)} or ⁠ V ( X ) {\\displaystyle \\mathbb {V} (X)} ⁠, or symbolically as ⁠ σ X 2 {\\displaystyle \\sigma _{X}^{2}} ⁠ or simply σ 2 {\\displaystyle \\sigma ^{2}} (pronounced \"sigma squared\").","segments":[{"text":"The variance is typically designated as ⁠ "},{"tex":"\\operatorname {Var} (X)"},{"text":" ⁠, or sometimes as "},{"tex":"V(X)"},{"text":" or ⁠ "},{"tex":"\\mathbb {V} (X)"},{"text":" ⁠, or symbolically as ⁠ "},{"tex":"\\sigma _{X}^{2}"},{"text":" ⁠ or simply "},{"tex":"\\sigma ^{2}"},{"text":" (pronounced \"sigma squared\")."}]},"unresolved":null},{"absence":null,"basis":"b9a03a9351537618fc5cf57533996883d6d5744deb659e249e091ba48fd8d082","coverage":null,"id":"enwiki-32344-1368633150::In-text #13250ce1","item":"In-text #13250ce1","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_eq_sub","end_line":228,"library":"mathlib","line":226,"location_key":"b9a03a9351537618fc5cf57533996883d6d5744deb659e249e091ba48fd8d082","module":"Mathlib.Probability.Moments.Variance","note":"The integral of the square of X is the mean of the square and the integral of X is the mean, so the equation is the one the passage reaches after expanding; square-integrability is the finiteness the expansion needs in order to split the expectation.","pair_key":"8732001f0ecea6d903ec0cfc257286254ec41feb0341310f5449958e3c83ce1c","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"exactMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_sub {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {X : Ω → ℝ} : MeasureTheory.MemLp X 2 μ → ProbabilityTheory.variance X μ = ∫ (x : Ω), (X ^ 2) x ∂μ - (∫ (x : Ω), X x ∂μ) ^ 2"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"8b78d79525d79986e489d250933a7f7395d8c177ffc7383fe4bbabf9682fb6e6","prominence":"central","quote":{"exact":"The expression for the variance can be expanded as follows: Var ⁡"},"quote_capped":true,"section":["Definition"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The expression for the variance can be expanded as follows: Var ⁡ ( X ) = E ⁡ [ ( X − E ⁡ [ X ] ) 2 ] = E ⁡ [ X 2 − 2 X E ⁡ [ X ] + E ⁡ [ X ] 2 ] = E ⁡ [ X 2 ] − 2 E ⁡ [ X ] E ⁡ [ X ] + E ⁡ [ X ] 2 = E ⁡ [ X 2 ] − 2 E ⁡ [ X ] 2 + E ⁡ [ X ] 2 = E ⁡ [ X 2 ] − E ⁡ [ X ] 2 {\\displaystyle {\\begin{aligned}\\operatorname {Var} (X)&=\\operatorname {E} \\left[{\\left(X-\\operatorname {E} [X]\\right)}^{2}\\right]\\\\[4pt]&=\\operatorname {E} \\left[X^{2}-2X\\operatorname {E} [X]+\\operatorname {E} [X]^{2}\\right]\\\\[4pt]&=\\operatorname {E} \\left[X^{2}\\right]-2\\operatorname {E} [X]\\operatorname {E} [X]+\\operatorname {E} [X]^{2}\\\\[4pt]&=\\operatorname {E} \\left[X^{2}\\right]-2\\operatorname {E} [X]^{2}+\\operatorname {E} [X]^{2}\\\\[4pt]&=\\operatorname {E} \\left[X^{2}\\right]-\\operatorname {E} [X]^{2}\\end{aligned}}}","segments":[{"text":"The expression for the variance can be expanded as follows: "},{"display":true,"tex":"\\begin{aligned}\\operatorname {Var} (X)&=\\operatorname {E} \\left[{\\left(X-\\operatorname {E} [X]\\right)}^{2}\\right]\\\\[4pt]&=\\operatorname {E} \\left[X^{2}-2X\\operatorname {E} [X]+\\operatorname {E} [X]^{2}\\right]\\\\[4pt]&=\\operatorname {E} \\left[X^{2}\\right]-2\\operatorname {E} [X]\\operatorname {E} [X]+\\operatorname {E} [X]^{2}\\\\[4pt]&=\\operatorname {E} \\left[X^{2}\\right]-2\\operatorname {E} [X]^{2}+\\operatorname {E} [X]^{2}\\\\[4pt]&=\\operatorname {E} \\left[X^{2}\\right]-\\operatorname {E} [X]^{2}\\end{aligned}"}]},"unresolved":null},{"absence":null,"basis":"c9935e068a3a021528363c21021432a4852a2ec4e09c983cba99c597a31ae2f0","coverage":null,"id":"enwiki-32344-1368633150::In-text #531b1c92","item":"In-text #531b1c92","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_eq_sub","end_line":228,"library":"mathlib","line":226,"location_key":"c9935e068a3a021528363c21021432a4852a2ec4e09c983cba99c597a31ae2f0","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib writes the two means as integrals against X's law, so the equation is the sentence's mean of the square minus the square of the mean.","pair_key":"3928123236eb3ffb1de0d3499c9e4cc94c3831d6f028e3f88b303dc0c2ffdffe","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"exactMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_sub {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {X : Ω → ℝ} : MeasureTheory.MemLp X 2 μ → ProbabilityTheory.variance X μ = ∫ (x : Ω), (X ^ 2) x ∂μ - (∫ (x : Ω), X x ∂μ) ^ 2"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"1bd39615bf65abd42ef88ba3f2eed03c4e40feaa1f98bd3f267f81eaa77cc413","prominence":"supporting","quote":{"exact":"In other words, the variance of ⁠ X {\\displaystyle X} ⁠ is"},"quote_capped":true,"section":["Definition"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"In other words, the variance of ⁠ X {\\displaystyle X} ⁠ is equal to the mean of the square of ⁠ X {\\displaystyle X} ⁠ minus the square of the mean of ⁠ X {\\displaystyle X} ⁠.","segments":[{"text":"In other words, the variance of ⁠ "},{"tex":"X"},{"text":" ⁠ is equal to the mean of the square of ⁠ "},{"tex":"X"},{"text":" ⁠ minus the square of the mean of ⁠ "},{"tex":"X"},{"text":" ⁠."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":0,"queries":4,"sha256":"1a761f24281be5266ca0cfd4c61aacc72483bc64dcd3e8c410c9a7eb2eaeefa1"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #8a387886","item":"In-text #8a387886","kind":"theorem","locations":[{"challenge":"downgraded","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_eq_integral","end_line":159,"library":"mathlib","line":157,"location_key":"134f55c3ad6578d10e21fb94e1f6f2fb2268114748c36d9cbd96a1b45691f2da","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib states the identity against an arbitrary measure, where the passage reads it for one supported on n atoms, and it writes both the mean and the mean squared deviation as integrals rather than as weighted sums over the atoms.","pair_key":"33b6826523e2fa698642538ebcf6d5dec5bbd16d40559017d2f8ffbd95e355c8","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_integral {Ω : Type*} {mΩ : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} : AEMeasurable X μ → ProbabilityTheory.variance X μ = ∫ (ω : Ω), (X ω - ∫ (x : Ω), X x ∂μ) ^ 2 ∂μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"PMF.integral_eq_sum","end_line":51,"library":"mathlib","line":45,"location_key":"2afc977b05fb4738192068ba6ac7a5e7c9ef806b75ac0f22522667f4260bb0c3","module":"Mathlib.Probability.ProbabilityMassFunction.Integrals","note":null,"pair_key":"378671cddf1fc775d2f1dc276b413038da06e179dadcea9132aeb018ab2239e6","path":"Mathlib/Probability/ProbabilityMassFunction/Integrals.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem PMF.integral_eq_sum {α : Type*} [MeasurableSpace α] [MeasurableSingletonClass α] {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] [Fintype α] (p : PMF α) (f : α → E) : ∫ (a : α), f a ∂p.toMeasure = ∑ a, (p a).toReal • f a"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"fdd4b19f6aa0d9202fac4e2547d73eb1d2a593aad3701c5d7033893b4630c897","prominence":"central","quote":{"exact":"If the generator of random variable X {\\displaystyle X} is discrete with"},"quote_capped":true,"section":["Definition","Discrete random variable"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":" (When such a discrete weighted variance is specified by weights whose sum is not 1, then one divides by the sum of the weights.)","segments":[{"text":" (When such a discrete weighted variance is specified by weights whose sum is not 1, then one divides by the sum of the weights.)"}]},"layer":"If the generator of random variable X {\\displaystyle X} is discrete with probability mass function x 1 ↦ p 1 , x 2 ↦ p 2 , … , x n ↦ p n {\\displaystyle x_{1}\\mapsto p_{1},x_{2}\\mapsto p_{2},\\ldots ,x_{n}\\mapsto p_{n}} , then Var ⁡ ( X ) = ∑ i = 1 n p i ⋅ ( x i − μ ) 2 , {\\displaystyle \\operatorname {Var} (X)=\\sum _{i=1}^{n}p_{i}\\cdot {\\left(x_{i}-\\mu \\right)}^{2},} where μ {\\displaystyle \\mu } is the expected value. That is, μ = ∑ i = 1 n p i x i . {\\displaystyle \\mu =\\sum _{i=1}^{n}p_{i}x_{i}.}","segments":[{"text":"If the generator of random variable "},{"tex":"X"},{"text":" is discrete with probability mass function "},{"tex":"x_{1}\\mapsto p_{1},x_{2}\\mapsto p_{2},\\ldots ,x_{n}\\mapsto p_{n}"},{"text":" , then "},{"display":true,"tex":"\\operatorname {Var} (X)=\\sum _{i=1}^{n}p_{i}\\cdot {\\left(x_{i}-\\mu \\right)}^{2},"},{"text":" where "},{"tex":"\\mu"},{"text":" is the expected value. That is, "},{"display":true,"tex":"\\mu =\\sum _{i=1}^{n}p_{i}x_{i}."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":0,"queries":4,"sha256":"57395dd73160531c7e8b9b7cced841773125c761f8d1376ca6652552dc337ddf"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #a2271a73","item":"In-text #a2271a73","kind":"definition","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"113978bacdecdbbd863689cae9f0f55629389771647a74c1b1589be9ff36d9ef","prominence":"supporting","quote":{"exact":"(When such a discrete weighted variance is specified by weights whose sum"},"quote_capped":true,"section":["Definition","Discrete random variable"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"That is, μ = ∑ i = 1 n p i x i . {\\displaystyle \\mu =\\sum _{i=1}^{n}p_{i}x_{i}.} ","segments":[{"text":"That is, "},{"display":true,"tex":"\\mu =\\sum _{i=1}^{n}p_{i}x_{i}."},{"text":" "}]},"layer":"(When such a discrete weighted variance is specified by weights whose sum is not 1, then one divides by the sum of the weights.)","segments":[{"text":"(When such a discrete weighted variance is specified by weights whose sum is not 1, then one divides by the sum of the weights.)"}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":0,"queries":3,"sha256":"3366e0537b3f30661cfae718bf8bce3a005599b7bca59a9a59e7d701292d8705"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #212ad9f9","item":"In-text #212ad9f9","kind":"theorem","locations":[{"challenge":"downgraded","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_eq_integral","end_line":159,"library":"mathlib","line":157,"location_key":"2b9e32643903a46b22ba5c17a5f7735fda7105ff704fc6545663d350380662e3","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib writes the mean and the mean squared deviation as integrals against an arbitrary measure, where the passage has n equally likely values; against the uniform law each integral is the one over n sum of the passage.","pair_key":"42fc24a1502d6f96686b6bfc991c52e920531876e4985b117ce70f0ed69f823c","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_integral {Ω : Type*} {mΩ : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} : AEMeasurable X μ → ProbabilityTheory.variance X μ = ∫ (ω : Ω), (X ω - ∫ (x : Ω), X x ∂μ) ^ 2 ∂μ"},"statement":false},{"challenge":"sampled_out","commit":"64c2773ffad3e5453b9f40c62e693b3669ade83f","confidence":"high","declaration":"MetaMathlibExt.initialSegmentSampleVariance","library":"atlas","line":41,"location_key":"ea7b9c735fd8c22c9f80f4e1e630810a889dfd7a9a18f8c4a0dbdeea5b3014ee","module":"MathlibExt.Analysis.Asymptotics.TaylorInitialSampleVariance","note":null,"pair_key":"842de938d63d1bb4564233e6d6a510c2db98212ac68df57732fca10c36b12ceb","path":"MathlibExt/Analysis/Asymptotics/TaylorInitialSampleVariance.lean","proof_status":"definition","rank":2,"relation":"relatedMatch","repo":"https://github.com/facebookresearch/atlas-lean","signature":{"elided":false,"text":"def MetaMathlibExt.initialSegmentSampleVariance : (ℕ → ℕ) → ℕ → ℝ"},"statement":false},{"challenge":"sampled_out","commit":"4453b52d2468f4c346a8711d728c0742e7483c9b","confidence":"high","declaration":"Batteries.RunningStats.variance","end_line":61,"library":"batteries","line":60,"location_key":"5e7d4f192863a2a7d0c1ab9451852fef502b4a2b9c148c7ee77ae69267b2ff3d","module":"Batteries.Data.RunningStats","note":null,"pair_key":"959875dae2dd4cf40d9689231e18516c194efede67c87975d08be2e0e940d372","path":"Batteries/Data/RunningStats.lean","proof_status":"definition","rank":3,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/batteries","signature":{"elided":false,"text":"def Batteries.RunningStats.variance : Batteries.RunningStats → Float"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"86724134bdf76cc5d8e02aa1a84931d8c3676f5ec97d221741440c7750bf78a4","prominence":"supporting","quote":{"exact":"The variance of a collection of n {\\displaystyle n} equally likely values"},"quote_capped":true,"section":["Definition","Discrete random variable"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The variance of a collection of n {\\displaystyle n} equally likely values can be written as Var ⁡ ( X ) = 1 n ∑ i = 1 n ( x i − μ ) 2 , {\\displaystyle \\operatorname {Var} (X)={\\frac {1}{n}}\\sum _{i=1}^{n}(x_{i}-\\mu )^{2},} where μ {\\displaystyle \\mu } is the average value. That is, μ = 1 n ∑ i = 1 n x i . {\\displaystyle \\mu ={\\frac {1}{n}}\\sum _{i=1}^{n}x_{i}.}","segments":[{"text":"The variance of a collection of "},{"tex":"n"},{"text":" equally likely values can be written as "},{"display":true,"tex":"\\operatorname {Var} (X)={\\frac {1}{n}}\\sum _{i=1}^{n}(x_{i}-\\mu )^{2},"},{"text":" where "},{"tex":"\\mu"},{"text":" is the average value. That is, "},{"display":true,"tex":"\\mu ={\\frac {1}{n}}\\sum _{i=1}^{n}x_{i}."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":0,"queries":4,"sha256":"04e16bb06152d25f41075d27389514b6a4541e606cc90eda10f9e9b5d1db9c0c"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #bf321a10","item":"In-text #bf321a10","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"d8247b7a47f6f11e99bb4dd43f017b7a2437a1a93d14bbc1333b341289d6a7de","prominence":"supporting","quote":{"exact":"The variance of a set of n {\\displaystyle n} equally likely values"},"quote_capped":true,"section":["Definition","Discrete random variable"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The variance of a set of n {\\displaystyle n} equally likely values can be equivalently expressed, without directly referring to the mean, in terms of squared deviations of all pairwise squared distances of points from each other:[2] Var ⁡ ( X ) = 1 n 2 ∑ i = 1 n ∑ j = 1 n 1 2 ( x i − x j ) 2 = 1 n 2 ∑ i ∑ j > i ( x i − x j ) 2 . {\\displaystyle \\operatorname {Var} (X)={\\frac {1}{n^{2}}}\\sum _{i=1}^{n}\\sum _{j=1}^{n}{\\frac {1}{2}}{\\left(x_{i}-x_{j}\\right)}^{2}={\\frac {1}{n^{2}}}\\sum _{i}\\sum _{j>i}{\\left(x_{i}-x_{j}\\right)}^{2}.}","segments":[{"text":"The variance of a set of "},{"tex":"n"},{"text":" equally likely values can be equivalently expressed, without directly referring to the mean, in terms of squared deviations of all pairwise squared distances of points from each other:"},{"ref":"[2]"},{"text":" "},{"display":true,"tex":"\\operatorname {Var} (X)={\\frac {1}{n^{2}}}\\sum _{i=1}^{n}\\sum _{j=1}^{n}{\\frac {1}{2}}{\\left(x_{i}-x_{j}\\right)}^{2}={\\frac {1}{n^{2}}}\\sum _{i}\\sum _{j>i}{\\left(x_{i}-x_{j}\\right)}^{2}."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":0,"queries":4,"sha256":"ad855535d960b3f081e2dd2e1ec3b3bed1cfa55d99b6ff441aa586a4dbdd0dfb"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #dadda8ef","item":"In-text #dadda8ef","kind":"theorem","locations":[{"challenge":"downgraded","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_eq_sub","end_line":228,"library":"mathlib","line":226,"location_key":"bbe77e3b18334730fd2b8c4a8106323bb5717d7288357e16532439e21e4737e2","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib proves the identity for any probability law, where the passage reads it for one given by a density, and it writes the two moments as integrals against that law rather than against dF or f of x dx.","pair_key":"4343c23b0954d891a8489a8dd6ca9c1a1dcbadc1a6d0881d94af962153e70640","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_sub {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {X : Ω → ℝ} : MeasureTheory.MemLp X 2 μ → ProbabilityTheory.variance X μ = ∫ (x : Ω), (X ^ 2) x ∂μ - (∫ (x : Ω), X x ∂μ) ^ 2"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_eq_integral","end_line":159,"library":"mathlib","line":157,"location_key":"bf1810658ca44fd8bc791b83e2c4ec31158024d8bb7914f2c52ebed4a008cff1","module":"Mathlib.Probability.Moments.Variance","note":null,"pair_key":"1983651200a2345f1e4a3ff723f63c28c607445b126506f12e6ff7ab5d5eed2b","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_integral {Ω : Type*} {mΩ : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} : AEMeasurable X μ → ProbabilityTheory.variance X μ = ∫ (ω : Ω), (X ω - ∫ (x : Ω), X x ∂μ) ^ 2 ∂μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"MeasureTheory.pdf.integral_mul_eq_integral","end_line":258,"library":"mathlib","line":255,"location_key":"14bb3a986095fb2c95a59d5584f87e05a7ded6b4820979fb2f4d4721f79a7697","module":"Mathlib.Probability.Density","note":null,"pair_key":"634c5d931bf1fbb1131a455645d7d30d79bc2efd4dc6886f3662d2f7310910ff","path":"Mathlib/Probability/Density.lean","proof_status":"proved","rank":3,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem MeasureTheory.pdf.integral_mul_eq_integral {Ω : Type*} {m : MeasurableSpace Ω} {ℙ : MeasureTheory.Measure Ω} {X : Ω → ℝ} [MeasureTheory.IsFiniteMeasure ℙ] [MeasureTheory.HasPDF X ℙ MeasureTheory.MeasureSpace.volume] : ∫ (x : ℝ), x * (MeasureTheory.pdf X ℙ MeasureTheory.MeasureSpace.volume x).toReal = ∫ (x : Ω), X x ∂ℙ"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"f83eb61dbc52a0767d4773943c35f89852ec9f31c0916778467daae983ebbafb","prominence":"central","quote":{"exact":"If the random variable X {\\displaystyle X} has a probability density function"},"quote_capped":true,"section":["Definition","Absolutely continuous random variable"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"If the random variable X {\\displaystyle X} has a probability density function ⁠ f ( x ) {\\displaystyle f(x)} ⁠, and F ( x ) {\\displaystyle F(x)} is the corresponding cumulative distribution function, then Var ⁡ ( X ) = σ 2 = ∫ R ( x − μ ) 2 f ( x ) d x = ∫ R x 2 f ( x ) d x − 2 μ ∫ R x f ( x ) d x + μ 2 ∫ R f ( x ) d x = ∫ R x 2 d F ( x ) − 2 μ ∫ R x d F ( x ) + μ 2 ∫ R d F ( x ) = ∫ R x 2 d F ( x ) − 2 μ ⋅ μ + μ 2 ⋅ 1 = ∫ R x 2 d F ( x ) − μ 2 , {\\displaystyle {\\begin{aligned}\\operatorname {Var} (X)=\\sigma ^{2}&=\\int _{\\mathbb {R} }{\\left(x-\\mu \\right)}^{2}f(x)\\,dx\\\\[4pt]&=\\int _{\\mathbb {R} }x^{2}f(x)\\,dx-2\\mu \\int _{\\mathbb {R} }xf(x)\\,dx+\\mu ^{2}\\int _{\\mathbb {R} }f(x)\\,dx\\\\[4pt]&=\\int _{\\mathbb {R} }x^{2}\\,dF(x)-2\\mu \\int _{\\mathbb {R} }x\\,dF(x)+\\mu ^{2}\\int _{\\mathbb {R} }\\,dF(x)\\\\[4pt]&=\\int _{\\mathbb {R} }x^{2}\\,dF(x)-2\\mu \\cdot \\mu +\\mu ^{2}\\cdot 1\\\\[4pt]&=\\int _{\\mathbb {R} }x^{2}\\,dF(x)-\\mu ^{2},\\end{aligned}}} or equivalently, Var ⁡ ( X ) = ∫ R x 2 f ( x ) d x − μ 2 , {\\displaystyle \\operatorname {Var} (X)=\\int _{\\mathbb {R} }x^{2}f(x)\\,dx-\\mu ^{2},} where μ {\\displaystyle \\mu } is the expected value of X {\\displaystyle X} given by μ = ∫ R x f ( x ) d x = ∫ R x d F ( x ) . {\\displaystyle \\mu =\\int _{\\mathbb {R} }xf(x)\\,dx=\\int _{\\mathbb {R} }x\\,dF(x).}","segments":[{"text":"If the random variable "},{"tex":"X"},{"text":" has a probability density function ⁠ "},{"tex":"f(x)"},{"text":" ⁠, and "},{"tex":"F(x)"},{"text":" is the corresponding cumulative distribution function, then "},{"display":true,"tex":"\\begin{aligned}\\operatorname {Var} (X)=\\sigma ^{2}&=\\int _{\\mathbb {R} }{\\left(x-\\mu \\right)}^{2}f(x)\\,dx\\\\[4pt]&=\\int _{\\mathbb {R} }x^{2}f(x)\\,dx-2\\mu \\int _{\\mathbb {R} }xf(x)\\,dx+\\mu ^{2}\\int _{\\mathbb {R} }f(x)\\,dx\\\\[4pt]&=\\int _{\\mathbb {R} }x^{2}\\,dF(x)-2\\mu \\int _{\\mathbb {R} }x\\,dF(x)+\\mu ^{2}\\int _{\\mathbb {R} }\\,dF(x)\\\\[4pt]&=\\int _{\\mathbb {R} }x^{2}\\,dF(x)-2\\mu \\cdot \\mu +\\mu ^{2}\\cdot 1\\\\[4pt]&=\\int _{\\mathbb {R} }x^{2}\\,dF(x)-\\mu ^{2},\\end{aligned}"},{"text":" or equivalently, "},{"display":true,"tex":"\\operatorname {Var} (X)=\\int _{\\mathbb {R} }x^{2}f(x)\\,dx-\\mu ^{2},"},{"text":" where "},{"tex":"\\mu"},{"text":" is the expected value of "},{"tex":"X"},{"text":" given by "},{"display":true,"tex":"\\mu =\\int _{\\mathbb {R} }xf(x)\\,dx=\\int _{\\mathbb {R} }x\\,dF(x)."}]},"unresolved":null},{"absence":null,"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #60e424be","item":"In-text #60e424be","kind":"notation","locations":[],"outcome":"unresolved","passage_ends_in_suffix":false,"passage_key":"7e522714090904fe6dfad327a8e1de5bd4906f5ee90f4b9ea047408fb730e8d0","prominence":"supporting","quote":{"exact":"In these formulas, the integrals with respect to d x {\\displaystyle dx}"},"quote_capped":true,"section":["Definition","Absolutely continuous random variable"],"status":null,"subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"In these formulas, the integrals with respect to d x {\\displaystyle dx} and d F ( x ) {\\displaystyle dF(x)} are Lebesgue and Lebesgue–Stieltjes integrals, respectively.","segments":[{"text":"In these formulas, the integrals with respect to "},{"tex":"dx"},{"text":" and "},{"tex":"dF(x)"},{"text":" are Lebesgue and Lebesgue–Stieltjes integrals, respectively."}]},"unresolved":{"challenge":"sampled_out"}},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":0,"queries":4,"sha256":"da38307b2fc76d1ce7636a8a3b8f4a5a945bc81ef79b000b1343860d00bb4cf3"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #758ecb54","item":"In-text #758ecb54","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"d77a543bbc95737fd253d762389c7015db675e3349e7622ede414287ecc078b5","prominence":"supporting","quote":{"exact":"If the function x 2 f ( x ) {\\displaystyle x^{2}f(x)} is"},"quote_capped":true,"section":["Definition","Absolutely continuous random variable"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"If the function x 2 f ( x ) {\\displaystyle x^{2}f(x)} is Riemann-integrable on every finite interval [ a , b ] ⊂ R , {\\displaystyle [a,b]\\subset \\mathbb {R} ,} then Var ⁡ ( X ) = ∫ − ∞ + ∞ x 2 f ( x ) d x − μ 2 , {\\displaystyle \\operatorname {Var} (X)=\\int _{-\\infty }^{+\\infty }x^{2}f(x)\\,dx-\\mu ^{2},} where the integral is an improper Riemann integral.","segments":[{"text":"If the function "},{"tex":"x^{2}f(x)"},{"text":" is Riemann-integrable on every finite interval "},{"tex":"[a,b]\\subset \\mathbb {R} ,"},{"text":" then "},{"display":true,"tex":"\\operatorname {Var} (X)=\\int _{-\\infty }^{+\\infty }x^{2}f(x)\\,dx-\\mu ^{2},"},{"text":" where the integral is an improper Riemann integral."}]},"unresolved":null},{"absence":null,"basis":"0fd0323f005372d369fb86673f48fad0d71d2e374c8c8e9361a7a60c77deffe3","coverage":null,"id":"enwiki-32344-1368633150::In-text #000c46bd","item":"In-text #000c46bd","kind":"definition","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.expMeasure","end_line":94,"library":"mathlib","line":94,"location_key":"0fd0323f005372d369fb86673f48fad0d71d2e374c8c8e9361a7a60c77deffe3","module":"Mathlib.Probability.Distributions.Exponential","note":"At rates that the passage excludes the density is not positive and the measure collapses to zero, a default the passage's mathematics never uses; on the passage's own lambda the two agree.","pair_key":"7cdf76314550536aba7d8885fdd962ed2db7c42fe2c2566d23a2d6647d635a51","path":"Mathlib/Probability/Distributions/Exponential.lean","proof_status":"definition","rank":1,"relation":"exactMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def ProbabilityTheory.expMeasure : ℝ → MeasureTheory.Measure ℝ"},"statement":false},{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.expMeasure_eq_withDensity","end_line":80,"library":"tauceti","line":79,"location_key":"fb69965b388aa058e0a260c95b8524db0929b77a8b963cb32fcfa1d762d4e976","module":"TauCeti.Probability.Distributions.Exponential.Basic","note":"It records the library's exponential distribution as Lebesgue measure carrying the exponential density, which is the formula by which the passage fixes the distribution.","pair_key":"dfd9aca252056f49ca0d79b6a6b912f29300ef78bedc928c14b880d11ab2dd77","path":"TauCeti/Probability/Distributions/Exponential/Basic.lean","proof_status":"proved","rank":2,"relation":"closeMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.expMeasure_eq_withDensity (r : ℝ) : ProbabilityTheory.expMeasure r = MeasureTheory.MeasureSpace.volume.withDensity (ProbabilityTheory.exponentialPDF r)"},"statement":false},{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.exponentialPDF_eq","end_line":50,"library":"mathlib","line":47,"location_key":"11e77d92c46a0975e46f9c90b6809445eebbfa643d5f4e875e832594af230fbd","module":"Mathlib.Probability.Distributions.Exponential","note":null,"pair_key":"104070ab1e1976cd4531261988d488413b1431cee2145c6f221823c39f43126e","path":"Mathlib/Probability/Distributions/Exponential.lean","proof_status":"proved","rank":3,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.exponentialPDF_eq (r x : ℝ) : ProbabilityTheory.exponentialPDF r x = ENNReal.ofReal (if 0 ≤ x then r * Real.exp (-(r * x)) else 0)"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"dbd92ea1f3a13a3bf01d69cf424cc43e1439521fd3c0c1eb09909ef2d48c89ae","prominence":"supporting","quote":{"exact":"The exponential distribution with parameter ⁠ λ > 0 {\\displaystyle \\lambda >0}"},"quote_capped":true,"section":["Examples","Exponential distribution"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The exponential distribution with parameter ⁠ λ > 0 {\\displaystyle \\lambda >0} ⁠ is a continuous distribution whose probability density function is given by f ( x ) = λ e − λ x {\\displaystyle f(x)=\\lambda e^{-\\lambda x}} on the interval [0, ∞).","segments":[{"text":"The exponential distribution with parameter ⁠ "},{"tex":"\\lambda >0"},{"text":" ⁠ is a continuous distribution whose probability density function is given by "},{"display":true,"tex":"f(x)=\\lambda e^{-\\lambda x}"},{"text":" on the interval [0, ∞)."}]},"unresolved":null},{"absence":null,"basis":"cf9601cbfcec1c2527597325ce95c54356390436f8cc9a8b6754e66e6604309b","coverage":null,"id":"enwiki-32344-1368633150::In-text #961cd0c2","item":"In-text #961cd0c2","kind":"theorem","locations":[{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.integral_id_expMeasure","end_line":139,"library":"tauceti","line":138,"location_key":"cf9601cbfcec1c2527597325ce95c54356390436f8cc9a8b6754e66e6604309b","module":"TauCeti.Probability.Distributions.Exponential.Basic","note":"The distribution is given as Mathlib's exponential measure and the mean as the integral of the identity against it; the law assigns zero mass to the negative half-line, so nothing outside the passage's interval contributes.","pair_key":"73754aad9c0bb885f3c4976f2ca6762638f4e317ea53c94ec2d1f02f64b1d538","path":"TauCeti/Probability/Distributions/Exponential/Basic.lean","proof_status":"proved","rank":1,"relation":"exactMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.integral_id_expMeasure {r : ℝ} : 0 < r → ∫ (x : ℝ), x ∂ProbabilityTheory.expMeasure r = r⁻¹"},"statement":false},{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.integral_pow_expMeasure","end_line":134,"library":"tauceti","line":131,"location_key":"341944bd2d09db332c36dc6f1bcecf5c21cc77f058f24ba7c09d3d0bbed93890","module":"TauCeti.Probability.Distributions.Exponential.Basic","note":"The declaration gives every moment of the exponential law at once, the passage's mean being the first of them.","pair_key":"be267f260ec465ba6214d2f49ccb6839957bbcee3838d99340d0fb15dd08c090","path":"TauCeti/Probability/Distributions/Exponential/Basic.lean","proof_status":"proved","rank":2,"relation":"broadMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.integral_pow_expMeasure {r : ℝ} : 0 < r → ∀ (n : ℕ), ∫ (x : ℝ), x ^ n ∂ProbabilityTheory.expMeasure r = ↑n.factorial / r ^ n"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"381cf738d13b007b2bff1988fc73e0018f58c24575252734e6f94d3e952f42b6","prominence":"supporting","quote":{"exact":"Its mean can be shown to be E ⁡ [ X ]"},"quote_capped":true,"section":["Examples","Exponential distribution"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Its mean can be shown to be E ⁡ [ X ] = ∫ 0 ∞ x λ e − λ x d x = 1 λ . {\\displaystyle \\operatorname {E} [X]=\\int _{0}^{\\infty }x\\lambda e^{-\\lambda x}\\,dx={\\frac {1}{\\lambda }}.}","segments":[{"text":"Its mean can be shown to be "},{"display":true,"tex":"\\operatorname {E} [X]=\\int _{0}^{\\infty }x\\lambda e^{-\\lambda x}\\,dx={\\frac {1}{\\lambda }}."}]},"unresolved":null},{"absence":null,"basis":"1f6b0aef046e08b7a92029df2f739c7d524eb2fc6aad6c20e54bd9b0b01b6129","coverage":null,"id":"enwiki-32344-1368633150::In-text #aa67c7b6","item":"In-text #aa67c7b6","kind":"theorem","locations":[{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.integral_sq_expMeasure","end_line":143,"library":"tauceti","line":142,"location_key":"1f6b0aef046e08b7a92029df2f739c7d524eb2fc6aad6c20e54bd9b0b01b6129","module":"TauCeti.Probability.Distributions.Exponential.Basic","note":"Lean writes the second moment as the integral of the squared identity against the exponential law, which is what the passage's E of X squared denotes.","pair_key":"4baab755c2d5aae7a29e84daf3781ee61cc52657c325ad785cf6c9468847b0e5","path":"TauCeti/Probability/Distributions/Exponential/Basic.lean","proof_status":"proved","rank":1,"relation":"exactMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.integral_sq_expMeasure {r : ℝ} : 0 < r → ∫ (x : ℝ), x ^ 2 ∂ProbabilityTheory.expMeasure r = 2 / r ^ 2"},"statement":false},{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.integral_pow_expMeasure","end_line":134,"library":"tauceti","line":131,"location_key":"4c9f188e624bc624b1cc15e1794c4291c5eddf4308dfc18ff6aba36483c8a268","module":"TauCeti.Probability.Distributions.Exponential.Basic","note":"The declaration computes all moments of the exponential law, the passage's second moment among them.","pair_key":"5750c2108d2ffb0b9b3695574c5f575fca00058e3b05afa947f8282c73b865c2","path":"TauCeti/Probability/Distributions/Exponential/Basic.lean","proof_status":"proved","rank":2,"relation":"broadMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.integral_pow_expMeasure {r : ℝ} : 0 < r → ∀ (n : ℕ), ∫ (x : ℝ), x ^ n ∂ProbabilityTheory.expMeasure r = ↑n.factorial / r ^ n"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"9a89776d3dc77aaa38a2a96880144ccba13ce166d5c9335c1fcf6e3bc613722b","prominence":"supporting","quote":{"exact":"Using integration by parts and making use of the expected value already"},"quote_capped":true,"section":["Examples","Exponential distribution"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Using integration by parts and making use of the expected value already calculated, we have: E ⁡ [ X 2 ] = ∫ 0 ∞ x 2 λ e − λ x d x = [ − x 2 e − λ x ] 0 ∞ + ∫ 0 ∞ 2 x e − λ x d x = 0 + 2 λ E ⁡ [ X ] = 2 λ 2 . {\\displaystyle {\\begin{aligned}\\operatorname {E} \\left[X^{2}\\right]&=\\int _{0}^{\\infty }x^{2}\\lambda e^{-\\lambda x}\\,dx\\\\&={\\left[-x^{2}e^{-\\lambda x}\\right]}_{0}^{\\infty }+\\int _{0}^{\\infty }2xe^{-\\lambda x}\\,dx\\\\&=0+{\\frac {2}{\\lambda }}\\operatorname {E} [X]\\\\&={\\frac {2}{\\lambda ^{2}}}.\\end{aligned}}}","segments":[{"text":"Using integration by parts and making use of the expected value already calculated, we have: "},{"display":true,"tex":"\\begin{aligned}\\operatorname {E} \\left[X^{2}\\right]&=\\int _{0}^{\\infty }x^{2}\\lambda e^{-\\lambda x}\\,dx\\\\&={\\left[-x^{2}e^{-\\lambda x}\\right]}_{0}^{\\infty }+\\int _{0}^{\\infty }2xe^{-\\lambda x}\\,dx\\\\&=0+{\\frac {2}{\\lambda }}\\operatorname {E} [X]\\\\&={\\frac {2}{\\lambda ^{2}}}.\\end{aligned}"}]},"unresolved":null},{"absence":null,"basis":"f0f72c1f75b1b22b14aaf79987d3155d2cebe27a523705e4436047a591a8ded4","coverage":null,"id":"enwiki-32344-1368633150::In-text #1a24d8f8","item":"In-text #1a24d8f8","kind":"theorem","locations":[{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.variance_id_expMeasure","end_line":148,"library":"tauceti","line":147,"location_key":"f0f72c1f75b1b22b14aaf79987d3155d2cebe27a523705e4436047a591a8ded4","module":"TauCeti.Probability.Distributions.Exponential.Basic","note":"Lean writes the value as the inverse of the squared rate and reads the variance of the law through the identity function.","pair_key":"67b796eb65e5bc0840535dbe8bf91605d74452c9aa85f1bcbe5c96c7d068d2ba","path":"TauCeti/Probability/Distributions/Exponential/Basic.lean","proof_status":"proved","rank":1,"relation":"exactMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.variance_id_expMeasure {r : ℝ} : 0 < r → ProbabilityTheory.variance id (ProbabilityTheory.expMeasure r) = (r ^ 2)⁻¹"},"statement":false},{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"medium","declaration":"TauCeti.Probability.variance_id_gammaMeasure","end_line":451,"library":"tauceti","line":444,"location_key":"8e31feb95a8b05ac5256dca9b2f3b9981f1ff24ea7e11d8e79977601dc85e0a1","module":"TauCeti.Probability.Distributions.Gamma.Basic","note":"It gives the variance of the gamma law with shape a and rate r; reaching the passage would need the identification of the shape-one gamma law with the exponential law, a separate lemma.","pair_key":"fb15658bd94990a2e2a349f27a9f06abdd792cf459a0377c5506479a2f612911","path":"TauCeti/Probability/Distributions/Gamma/Basic.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.variance_id_gammaMeasure {a r : ℝ} : 0 < a → 0 < r → ProbabilityTheory.variance id (ProbabilityTheory.gammaMeasure a r) = a / r ^ 2"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"7e3e369ebdffaa3630d71ea1f4a117df5de4097f43c88c0e21292a96004b7fb7","prominence":"central","quote":{"exact":"Thus, the variance of ⁠ X {\\displaystyle X} ⁠ is given by"},"quote_capped":true,"section":["Examples","Exponential distribution"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Thus, the variance of ⁠ X {\\displaystyle X} ⁠ is given by Var ⁡ ( X ) = E ⁡ [ X 2 ] − E ⁡ [ X ] 2 = 2 λ 2 − ( 1 λ ) 2 = 1 λ 2 . {\\displaystyle \\operatorname {Var} (X)=\\operatorname {E} \\left[X^{2}\\right]-\\operatorname {E} [X]^{2}={\\frac {2}{\\lambda ^{2}}}-\\left({\\frac {1}{\\lambda }}\\right)^{2}={\\frac {1}{\\lambda ^{2}}}.}","segments":[{"text":"Thus, the variance of ⁠ "},{"tex":"X"},{"text":" ⁠ is given by "},{"display":true,"tex":"\\operatorname {Var} (X)=\\operatorname {E} \\left[X^{2}\\right]-\\operatorname {E} [X]^{2}={\\frac {2}{\\lambda ^{2}}}-\\left({\\frac {1}{\\lambda }}\\right)^{2}={\\frac {1}{\\lambda ^{2}}}."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":3,"queries":4,"sha256":"45c498a4f547ea087fcb5d451c0a88ea786693a4fca0e73cd71579f02e79efa6"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #97fcea96","item":"In-text #97fcea96","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"699a3f743893d094eac9a5fb9bc36f8e57974ccbda4a0187c06b29ed91ba9557","prominence":"supporting","quote":{"exact":"A fair six-sided die can be modeled as a discrete random variable,"},"quote_capped":true,"section":["Examples","Fair die"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":" Therefore, the variance of ⁠ X {\\displaystyle X} ⁠ is Var ⁡ ( X ) = ∑ i = 1 6 1 6 ( i − 7 2 ) 2 = 1 6 ( ( − 5 / 2 ) 2 + ( − 3 / 2 ) 2 + ( − 1 / 2 ) 2 + ( 1 / 2 ) 2 + ( 3 / 2 ) 2 + ( 5 / 2 ) 2 ) = 35 12 ≈ 2.92. {\\displaystyle {\\begin{aligned}\\operatorname {Var} (X)&=\\sum _{i=1}^{6}{\\frac {1}{6}}\\left(i-{\\frac {7}{2}}\\right)^{2}\\\\[5pt]&={\\frac {1}{6}}\\left((-5/2)^{2}+(-3/2)^{2}+(-1/2)^{2}+(1/2)^{2}+(3/2)^{2}+(5/2)^{2}\\right)\\\\[5pt]&={\\frac {35}{12}}\\approx 2.92.\\end{aligned}}}","segments":[{"text":" Therefore, the variance of ⁠ "},{"tex":"X"},{"text":" ⁠ is "},{"display":true,"tex":"\\begin{aligned}\\operatorname {Var} (X)&=\\sum _{i=1}^{6}{\\frac {1}{6}}\\left(i-{\\frac {7}{2}}\\right)^{2}\\\\[5pt]&={\\frac {1}{6}}\\left((-5/2)^{2}+(-3/2)^{2}+(-1/2)^{2}+(1/2)^{2}+(3/2)^{2}+(5/2)^{2}\\right)\\\\[5pt]&={\\frac {35}{12}}\\approx 2.92.\\end{aligned}"}],"trimmed":true},"layer":"A fair six-sided die can be modeled as a discrete random variable, ⁠ X {\\displaystyle X} ⁠, with outcomes 1 through 6, each with equal probability 1/6. The expected value of ⁠ X {\\displaystyle X} ⁠ is ( 1 + 2 + 3 + 4 + 5 + 6 ) / 6 = 7 / 2. {\\displaystyle (1+2+3+4+5+6)/6=7/2.}","segments":[{"text":"A fair six-sided die can be modeled as a discrete random variable, ⁠ "},{"tex":"X"},{"text":" ⁠, with outcomes 1 through 6, each with equal probability 1/6. The expected value of ⁠ "},{"tex":"X"},{"text":" ⁠ is "},{"tex":"(1+2+3+4+5+6)/6=7/2."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":3,"queries":4,"sha256":"6dbb799c0dd1f509cebd394be42fb4f80a94410d459b3f6a82488f356b5ebeb3"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #2f15c72d","item":"In-text #2f15c72d","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"50ab0fcd9651e54be746a2c1bb654b0dfc052d7a2df9e43927f8d5df376b6dae","prominence":"central","quote":{"exact":"Therefore, the variance of ⁠ X {\\displaystyle X} ⁠ is Var ⁡"},"quote_capped":true,"section":["Examples","Fair die"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"The expected value of ⁠ X {\\displaystyle X} ⁠ is ( 1 + 2 + 3 + 4 + 5 + 6 ) / 6 = 7 / 2. {\\displaystyle (1+2+3+4+5+6)/6=7/2.} ","segments":[{"text":"The expected value of ⁠ "},{"tex":"X"},{"text":" ⁠ is "},{"tex":"(1+2+3+4+5+6)/6=7/2."},{"text":" "}]},"layer":"Therefore, the variance of ⁠ X {\\displaystyle X} ⁠ is Var ⁡ ( X ) = ∑ i = 1 6 1 6 ( i − 7 2 ) 2 = 1 6 ( ( − 5 / 2 ) 2 + ( − 3 / 2 ) 2 + ( − 1 / 2 ) 2 + ( 1 / 2 ) 2 + ( 3 / 2 ) 2 + ( 5 / 2 ) 2 ) = 35 12 ≈ 2.92. {\\displaystyle {\\begin{aligned}\\operatorname {Var} (X)&=\\sum _{i=1}^{6}{\\frac {1}{6}}\\left(i-{\\frac {7}{2}}\\right)^{2}\\\\[5pt]&={\\frac {1}{6}}\\left((-5/2)^{2}+(-3/2)^{2}+(-1/2)^{2}+(1/2)^{2}+(3/2)^{2}+(5/2)^{2}\\right)\\\\[5pt]&={\\frac {35}{12}}\\approx 2.92.\\end{aligned}}}","segments":[{"text":"Therefore, the variance of ⁠ "},{"tex":"X"},{"text":" ⁠ is "},{"display":true,"tex":"\\begin{aligned}\\operatorname {Var} (X)&=\\sum _{i=1}^{6}{\\frac {1}{6}}\\left(i-{\\frac {7}{2}}\\right)^{2}\\\\[5pt]&={\\frac {1}{6}}\\left((-5/2)^{2}+(-3/2)^{2}+(-1/2)^{2}+(1/2)^{2}+(3/2)^{2}+(5/2)^{2}\\right)\\\\[5pt]&={\\frac {35}{12}}\\approx 2.92.\\end{aligned}"}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":3,"queries":4,"sha256":"fa47673323d1aea9150a1da7f09acb7458bd9f73aeb5c5deadf3a1fea8717ae8"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #eb69b4ba","item":"In-text #eb69b4ba","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"23857e1da90ff94fc4118916f2caff96d6fbb354fcb380268e0e23c42ea5e504","prominence":"central","quote":{"exact":"The general formula for the variance of the outcome, ⁠ X {\\displaystyle"},"quote_capped":true,"section":["Examples","Fair die"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The general formula for the variance of the outcome, ⁠ X {\\displaystyle X} ⁠, of an ⁠ n {\\displaystyle n} ⁠-sided die is Var ⁡ ( X ) = E ⁡ ( X 2 ) − ( E ⁡ ( X ) ) 2 = 1 n ∑ i = 1 n i 2 − ( 1 n ∑ i = 1 n i ) 2 = ( n + 1 ) ( 2 n + 1 ) 6 − ( n + 1 2 ) 2 = n 2 − 1 12 . {\\displaystyle {\\begin{aligned}\\operatorname {Var} (X)&=\\operatorname {E} \\left(X^{2}\\right)-(\\operatorname {E} (X))^{2}\\\\[5pt]&={\\frac {1}{n}}\\sum _{i=1}^{n}i^{2}-\\left({\\frac {1}{n}}\\sum _{i=1}^{n}i\\right)^{2}\\\\[5pt]&={\\frac {(n+1)(2n+1)}{6}}-\\left({\\frac {n+1}{2}}\\right)^{2}\\\\[4pt]&={\\frac {n^{2}-1}{12}}.\\end{aligned}}}","segments":[{"text":"The general formula for the variance of the outcome, ⁠ "},{"tex":"X"},{"text":" ⁠, of an ⁠ "},{"tex":"n"},{"text":" ⁠-sided die is "},{"display":true,"tex":"\\begin{aligned}\\operatorname {Var} (X)&=\\operatorname {E} \\left(X^{2}\\right)-(\\operatorname {E} (X))^{2}\\\\[5pt]&={\\frac {1}{n}}\\sum _{i=1}^{n}i^{2}-\\left({\\frac {1}{n}}\\sum _{i=1}^{n}i\\right)^{2}\\\\[5pt]&={\\frac {(n+1)(2n+1)}{6}}-\\left({\\frac {n+1}{2}}\\right)^{2}\\\\[4pt]&={\\frac {n^{2}-1}{12}}.\\end{aligned}"}]},"unresolved":null},{"absence":null,"basis":null,"coverage":{"basis":true,"bundle_key":"42db03a9144c477470127041687fee7ef8283d0c4c2a5d2e7821e8c075ae78ec","challenge":"survived","complete":true,"conjuncts":[{"id":"c1","part":"6ec43832f92212338d44b07cc43b796e3b8e39cd7251d176a7341e4e504bd8f0","text":"the binomial distribution with parameters n and p has mean n times p"},{"id":"c2","part":"40b62ec71b77891b67fa696de78648468e72df8f1273a98a9f3c61d0186e3413","text":"the binomial distribution with parameters n and p has variance n times p times (1 - p)"}],"parts":["6ec43832f92212338d44b07cc43b796e3b8e39cd7251d176a7341e4e504bd8f0","40b62ec71b77891b67fa696de78648468e72df8f1273a98a9f3c61d0186e3413"],"relation":"exactMatch","status":"formalized"},"id":"enwiki-32344-1368633150::In-text #de5cbc3b","item":"In-text #de5cbc3b","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.integral_of_hasLaw_binomial","end_line":198,"library":"mathlib","line":185,"location_key":"6ec43832f92212338d44b07cc43b796e3b8e39cd7251d176a7341e4e504bd8f0","module":"Mathlib.Probability.Distributions.Binomial","note":"Lean records the law as the binomial measure cast from the naturals to the reals, whose mass at k is the passage's binomial coefficient expression, and writes the product in the opposite order.","pair_key":"d74eedf3f27f11ecfd0b383ab88ceb6a45db1b2f4a9c564cbc79d0aab05ea470","path":"Mathlib/Probability/Distributions/Binomial.lean","proof_status":"proved","rank":1,"relation":"hasPart","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.integral_of_hasLaw_binomial {Ω : Type*} {m : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {n : ℕ} {p : ↑unitInterval} {X : Ω → ℝ} : ProbabilityTheory.HasLaw X (MeasureTheory.Measure.map Nat.cast (ProbabilityTheory.binomial n p)) P → ∫ (x : Ω), X x ∂P = ↑p * ↑n"},"statement":false},{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.variance_id_map_cast_binomial","end_line":199,"library":"tauceti","line":180,"location_key":"40b62ec71b77891b67fa696de78648468e72df8f1273a98a9f3c61d0186e3413","module":"TauCeti.Probability.Distributions.Binomial.Basic","note":"The declaration is stated for the binomial measure pushed forward to the reals, the law whose mass at k is the passage's binomial coefficient expression.","pair_key":"30e301f3b887467124f2ab4146bcca2ddb66c2ad7b70fe817cab4c6ca0918403","path":"TauCeti/Probability/Distributions/Binomial/Basic.lean","proof_status":"proved","rank":2,"relation":"hasPart","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.variance_id_map_cast_binomial (n : ℕ) (p : ↑unitInterval) : ProbabilityTheory.variance id (MeasureTheory.Measure.map Nat.cast (ProbabilityTheory.binomial n p)) = ↑p * (1 - ↑p) * ↑n"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"102e004be468328b6580e525c2752d204b98ccb3fb2d279272ec291050233eea","prominence":"supporting","quote":{"exact":"Binomial distribution Pr ( X = k ) = ( n k"},"quote_capped":true,"section":["Examples","Commonly used probability distributions"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Binomial distribution Pr ( X = k ) = ( n k ) p k ( 1 − p ) n − k {\\displaystyle \\Pr \\,(X=k)={\\binom {n}{k}}p^{k}(1-p)^{n-k}} n p {\\displaystyle np} n p ( 1 − p ) {\\displaystyle np(1-p)}","segments":[{"text":"Binomial distribution "},{"tex":"\\Pr \\,(X=k)={\\binom {n}{k}}p^{k}(1-p)^{n-k}"},{"text":" "},{"tex":"np"},{"text":" "},{"tex":"np(1-p)"}]},"unresolved":null},{"absence":null,"basis":"591f8cdc6beaeeb0fba211c66154bfad2018f526f1df25bed6dbc250c8481a29","coverage":null,"id":"enwiki-32344-1368633150::In-text #34597e62","item":"In-text #34597e62","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"medium","declaration":"TauCeti.Probability.variance_id_map_cast_geometricMeasure","end_line":137,"library":"tauceti","line":129,"location_key":"591f8cdc6beaeeb0fba211c66154bfad2018f526f1df25bed6dbc250c8481a29","module":"TauCeti.Probability.Distributions.Geometric.Basic","note":"Lean counts the failures before the first success and so numbers outcomes from zero, while the passage numbers trials from one; the two laws differ by a unit shift, which leaves the spread about the mean untouched.","pair_key":"32637fd7f6b82739d27992cbcb411c5258373734a273a5d9b17e37aa1323429b","path":"TauCeti/Probability/Distributions/Geometric/Basic.lean","proof_status":"proved","rank":1,"relation":"hasPart","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.variance_id_map_cast_geometricMeasure {p : ↑unitInterval} : ProbabilityTheory.variance id (MeasureTheory.Measure.map Nat.cast (ProbabilityTheory.geometricMeasure p)) = (1 - ↑p) / ↑p ^ 2"},"statement":false},{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.integral_id_map_cast_geometricMeasure","end_line":126,"library":"tauceti","line":118,"location_key":"b9655a0808345bdd10c87c1d52fafb689e574214423e57872d8c2b56ee41de26","module":"TauCeti.Probability.Distributions.Geometric.Basic","note":"It gives the mean of the zero-based geometric law as (1-p)/p, which is one less than the mean the passage asserts for its trial count.","pair_key":"416807d3db1c98c02bfbd915491101947c8e80498c9ffd9b16afe019f2ee6030","path":"TauCeti/Probability/Distributions/Geometric/Basic.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.integral_id_map_cast_geometricMeasure {p : ↑unitInterval} : ∫ (x : ℝ), x ∂MeasureTheory.Measure.map Nat.cast (ProbabilityTheory.geometricMeasure p) = (1 - ↑p) / ↑p"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"f7e9cfdf81a4f6b4431980a0820c6a04442c4675bba18672da7bf13af2f8c38d","prominence":"supporting","quote":{"exact":"Geometric distribution Pr ( X = k ) = ( 1 −"},"quote_capped":true,"section":["Examples","Commonly used probability distributions"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Geometric distribution Pr ( X = k ) = ( 1 − p ) k − 1 p {\\displaystyle \\Pr \\,(X=k)=(1-p)^{k-1}p} 1 p {\\displaystyle {\\frac {1}{p}}} ( 1 − p ) p 2 {\\displaystyle {\\frac {(1-p)}{p^{2}}}}","segments":[{"text":"Geometric distribution "},{"tex":"\\Pr \\,(X=k)=(1-p)^{k-1}p"},{"text":" "},{"tex":"\\frac {1}{p}"},{"text":" "},{"tex":"\\frac {(1-p)}{p^{2}}"}]},"unresolved":null},{"absence":null,"basis":null,"coverage":{"basis":true,"bundle_key":"4156290447e305e452f555a5b9ee29f0f09c9e60832654ebb1ab84193b4a4267","challenge":"survived","complete":true,"conjuncts":[{"id":"c1","part":"72b90a3935e81c0654053f1c4fff6349a36b85f427d95374c02ce52420dff138","text":"the normal distribution with parameters mu and sigma squared has mean mu"},{"id":"c2","part":"138a6898707195235d9ead98a13168edbd26a08b045a0a2178da6889ba493757","text":"the normal distribution with parameters mu and sigma squared has variance sigma squared"}],"parts":["72b90a3935e81c0654053f1c4fff6349a36b85f427d95374c02ce52420dff138","138a6898707195235d9ead98a13168edbd26a08b045a0a2178da6889ba493757"],"relation":"broadMatch","status":"formalized"},"id":"enwiki-32344-1368633150::In-text #fe4af0e4","item":"In-text #fe4af0e4","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.integral_id_gaussianReal","end_line":540,"library":"mathlib","line":535,"location_key":"72b90a3935e81c0654053f1c4fff6349a36b85f427d95374c02ce52420dff138","module":"Mathlib.Probability.Distributions.Gaussian.Real","note":"Lean records the mean as the integral of the identity against the law, and lets the second parameter range over all nonnegative reals.","pair_key":"a25dc89615793b000c4aeee747fe2d053bd7167c07c16e0fad8737cea1e55ee1","path":"Mathlib/Probability/Distributions/Gaussian/Real.lean","proof_status":"proved","rank":1,"relation":"hasPart","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.integral_id_gaussianReal {μ : ℝ} {v : NNReal} : ∫ (x : ℝ), x ∂ProbabilityTheory.gaussianReal μ v = μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_id_gaussianReal","end_line":571,"library":"mathlib","line":570,"location_key":"138a6898707195235d9ead98a13168edbd26a08b045a0a2178da6889ba493757","module":"Mathlib.Probability.Distributions.Gaussian.Real","note":"Lean writes the variance of the identity under the law and keeps the parameter in the nonnegative reals.","pair_key":"dc33591ace5288e34b28982534d1707b9da87032dd234162f973654203f18f84","path":"Mathlib/Probability/Distributions/Gaussian/Real.lean","proof_status":"proved","rank":2,"relation":"hasPart","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_id_gaussianReal {μ : ℝ} {v : NNReal} : ProbabilityTheory.variance id (ProbabilityTheory.gaussianReal μ v) = ↑v"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"340a25a208bb29da7519b7c09261eff119014678fcb3719a5e28d3c56675b9f5","prominence":"supporting","quote":{"exact":"Normal distribution f ( x ∣ μ , σ 2 ) ="},"quote_capped":true,"section":["Examples","Commonly used probability distributions"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Normal distribution f ( x ∣ μ , σ 2 ) = 1 2 π σ 2 e − 1 2 ( x − μ σ ) 2 {\\displaystyle f\\left(x\\mid \\mu ,\\sigma ^{2}\\right)={\\frac {1}{\\sqrt {2\\pi \\sigma ^{2}}}}e^{-{\\frac {1}{2}}{\\left({\\frac {x-\\mu }{\\sigma }}\\right)}^{2}}} μ {\\displaystyle \\mu } σ 2 {\\displaystyle \\sigma ^{2}}","segments":[{"text":"Normal distribution "},{"tex":"f\\left(x\\mid \\mu ,\\sigma ^{2}\\right)={\\frac {1}{\\sqrt {2\\pi \\sigma ^{2}}}}e^{-{\\frac {1}{2}}{\\left({\\frac {x-\\mu }{\\sigma }}\\right)}^{2}}"},{"text":" "},{"tex":"\\mu"},{"text":" "},{"tex":"\\sigma ^{2}"}]},"unresolved":null},{"absence":null,"basis":null,"coverage":{"basis":true,"bundle_key":"3d5d20295a39a38342205ffd6227dabba5bd0a5e5f97aaa4be43bb5798823f50","challenge":"survived","complete":true,"conjuncts":[{"id":"c1","part":"3e3c7939910d09c111d6fdc12104824883453081a620edcfc12e281b5df8f175","text":"the continuous uniform distribution on the interval from a to b has mean (a + b)/2"},{"id":"c2","part":"fdc4cf4f6fc94628f79dda27c30d9c18402effd79cd0b8603601cd3e57d0bae2","text":"that uniform distribution has variance the square of (b - a), divided by twelve"}],"parts":["3e3c7939910d09c111d6fdc12104824883453081a620edcfc12e281b5df8f175","fdc4cf4f6fc94628f79dda27c30d9c18402effd79cd0b8603601cd3e57d0bae2"],"relation":"exactMatch","status":"formalized"},"id":"enwiki-32344-1368633150::In-text #b60d8dc3","item":"In-text #b60d8dc3","kind":"theorem","locations":[{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.integral_id_uniformMeasure","end_line":292,"library":"tauceti","line":284,"location_key":"3e3c7939910d09c111d6fdc12104824883453081a620edcfc12e281b5df8f175","module":"TauCeti.Probability.Distributions.Uniform.Basic","note":"Lean builds the law as normalised Lebesgue measure on the half-open interval, which is the same measure as on the closed one, and states the mean as the integral of the identity.","pair_key":"2ed1e39b44b61a0ab0797490ebca0e2600f20ef6848f69a2e7507553683d320d","path":"TauCeti/Probability/Distributions/Uniform/Basic.lean","proof_status":"proved","rank":1,"relation":"hasPart","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.integral_id_uniformMeasure {a b : ℝ} : a < b → ∫ (x : ℝ), x ∂TauCeti.Probability.uniformMeasure a b = (a + b) / 2"},"statement":false},{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.variance_id_uniformMeasure","end_line":306,"library":"tauceti","line":295,"location_key":"fdc4cf4f6fc94628f79dda27c30d9c18402effd79cd0b8603601cd3e57d0bae2","module":"TauCeti.Probability.Distributions.Uniform.Basic","note":"Lean uses the same normalised Lebesgue measure on the half-open interval and writes the variance of the identity under it.","pair_key":"50a4d8db92d3050556eae994abbec095e62932d5ab42dac7fb4c684b27c8d3db","path":"TauCeti/Probability/Distributions/Uniform/Basic.lean","proof_status":"proved","rank":2,"relation":"hasPart","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.variance_id_uniformMeasure {a b : ℝ} : a < b → ProbabilityTheory.variance id (TauCeti.Probability.uniformMeasure a b) = (b - a) ^ 2 / 12"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"1a87dee526baef686dd62d2ef9c80b82cec718e288414a670e450e2e324cb79e","prominence":"supporting","quote":{"exact":"Uniform distribution (continuous) f ( x ∣ a , b ) ="},"quote_capped":true,"section":["Examples","Commonly used probability distributions"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Uniform distribution (continuous) f ( x ∣ a , b ) = { 1 b − a for a ≤ x ≤ b , 0 for x < a or x > b {\\displaystyle f(x\\mid a,b)={\\begin{cases}{\\frac {1}{b-a}}&{\\text{for }}a\\leq x\\leq b,\\\\[3pt]0&{\\text{for }}x<a{\\text{ or }}x>b\\end{cases}}} a + b 2 {\\displaystyle {\\frac {a+b}{2}}} ( b − a ) 2 12 {\\displaystyle {\\frac {(b-a)^{2}}{12}}}","segments":[{"text":"Uniform distribution (continuous) "},{"tex":"f(x\\mid a,b)={\\begin{cases}{\\frac {1}{b-a}}&{\\text{for }}a\\leq x\\leq b,\\\\[3pt]0&{\\text{for }}x<a{\\text{ or }}x>b\\end{cases}}"},{"text":" "},{"tex":"\\frac {a+b}{2}"},{"text":" "},{"tex":"\\frac {(b-a)^{2}}{12}"}]},"unresolved":null},{"absence":null,"basis":null,"coverage":{"basis":true,"bundle_key":"39be974af6af860109ee755d1c373601bca08ebdc9c064b13a41f3ff4ac75c15","challenge":"survived","complete":true,"conjuncts":[{"id":"c1","part":"b939f8e5e79a60d68d0d002236ead714784e72542b2341683e4dccbdc497c1d6","text":"the exponential distribution of parameter lambda has mean 1/lambda"},{"id":"c2","part":"785367d0b1dc1e9527d29019e374914d1a09f89594d04c01cc9e1a157e6e3c3c","text":"the exponential distribution of parameter lambda has variance 1 over lambda squared"}],"parts":["b939f8e5e79a60d68d0d002236ead714784e72542b2341683e4dccbdc497c1d6","785367d0b1dc1e9527d29019e374914d1a09f89594d04c01cc9e1a157e6e3c3c"],"relation":"exactMatch","status":"formalized"},"id":"enwiki-32344-1368633150::In-text #84c93030","item":"In-text #84c93030","kind":"theorem","locations":[{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.integral_id_expMeasure","end_line":139,"library":"tauceti","line":138,"location_key":"b939f8e5e79a60d68d0d002236ead714784e72542b2341683e4dccbdc497c1d6","module":"TauCeti.Probability.Distributions.Exponential.Basic","note":"Lean writes the mean as the integral of the identity against the exponential law and spells the value as an inverse rather than a fraction.","pair_key":"a35b0a95ec1b3afee05bd54356d8dd8c283b40aa340b70e07941dc25d6e02f32","path":"TauCeti/Probability/Distributions/Exponential/Basic.lean","proof_status":"proved","rank":1,"relation":"hasPart","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.integral_id_expMeasure {r : ℝ} : 0 < r → ∫ (x : ℝ), x ∂ProbabilityTheory.expMeasure r = r⁻¹"},"statement":false},{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.variance_id_expMeasure","end_line":148,"library":"tauceti","line":147,"location_key":"785367d0b1dc1e9527d29019e374914d1a09f89594d04c01cc9e1a157e6e3c3c","module":"TauCeti.Probability.Distributions.Exponential.Basic","note":"Lean uses the variance of the identity under the exponential law and spells the value as the inverse of the squared rate.","pair_key":"51b4b05e594b0e5385d4a5768ca6d4519cd6bceb0a3b16fa304b4dd698ae8482","path":"TauCeti/Probability/Distributions/Exponential/Basic.lean","proof_status":"proved","rank":2,"relation":"hasPart","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.variance_id_expMeasure {r : ℝ} : 0 < r → ProbabilityTheory.variance id (ProbabilityTheory.expMeasure r) = (r ^ 2)⁻¹"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"ca19551eb73eafe488a1574e3471ee4434d35f3ff86c4a07c19e1f017980ddcb","prominence":"supporting","quote":{"exact":"Exponential distribution f ( x ∣ λ ) = λ e −"},"quote_capped":true,"section":["Examples","Commonly used probability distributions"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Exponential distribution f ( x ∣ λ ) = λ e − λ x {\\displaystyle f(x\\mid \\lambda )=\\lambda e^{-\\lambda x}} 1 λ {\\displaystyle {\\frac {1}{\\lambda }}} 1 λ 2 {\\displaystyle {\\frac {1}{\\lambda ^{2}}}}","segments":[{"text":"Exponential distribution "},{"tex":"f(x\\mid \\lambda )=\\lambda e^{-\\lambda x}"},{"text":" "},{"tex":"\\frac {1}{\\lambda }"},{"text":" "},{"tex":"\\frac {1}{\\lambda ^{2}}"}]},"unresolved":null},{"absence":null,"basis":null,"coverage":{"basis":true,"bundle_key":"ac3c4190bea6a9d275d49708f8cc46e0d2cf33f26d0c5e51ada9562fdc9070b5","challenge":"survived","complete":true,"conjuncts":[{"id":"c1","part":"18ea263b8780d0521d6cd778b47467407020de92855f971094b5ce9e2cefe697","text":"the Poisson distribution of parameter lambda has mean lambda"},{"id":"c2","part":"b73d6bcdef28974cfec59924c78d5f6ab606a7c670ed0bd8d7987df52fd12145","text":"the Poisson distribution of parameter lambda has variance lambda"}],"parts":["18ea263b8780d0521d6cd778b47467407020de92855f971094b5ce9e2cefe697","b73d6bcdef28974cfec59924c78d5f6ab606a7c670ed0bd8d7987df52fd12145"],"relation":"broadMatch","status":"formalized"},"id":"enwiki-32344-1368633150::In-text #b1a2cdd5","item":"In-text #b1a2cdd5","kind":"theorem","locations":[{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.integral_id_map_cast_poissonMeasure","end_line":91,"library":"tauceti","line":85,"location_key":"18ea263b8780d0521d6cd778b47467407020de92855f971094b5ce9e2cefe697","module":"TauCeti.Probability.Distributions.Poisson.Basic","note":"Lean keeps the Poisson law on the naturals and pushes it onto the reals along the cast before integrating the identity, and its rate ranges over all nonnegative reals.","pair_key":"932eb4f26502fe26c7de279464a0ef779ed0c791c4e53ba887ed2781a8f96d2b","path":"TauCeti/Probability/Distributions/Poisson/Basic.lean","proof_status":"proved","rank":1,"relation":"hasPart","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.integral_id_map_cast_poissonMeasure (r : NNReal) : ∫ (x : ℝ), x ∂MeasureTheory.Measure.map Nat.cast (ProbabilityTheory.poissonMeasure r) = ↑r"},"statement":false},{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.variance_id_map_cast_poissonMeasure","end_line":139,"library":"tauceti","line":127,"location_key":"b73d6bcdef28974cfec59924c78d5f6ab606a7c670ed0bd8d7987df52fd12145","module":"TauCeti.Probability.Distributions.Poisson.Basic","note":"Lean states the variance of the identity under the cast of the Poisson law and lets the rate be any nonnegative real.","pair_key":"7d3570a8bc39926ab29fdc95091cb8ab35b609c46313716c80fc4ea9618de74d","path":"TauCeti/Probability/Distributions/Poisson/Basic.lean","proof_status":"proved","rank":2,"relation":"hasPart","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.variance_id_map_cast_poissonMeasure (r : NNReal) : ProbabilityTheory.variance id (MeasureTheory.Measure.map Nat.cast (ProbabilityTheory.poissonMeasure r)) = ↑r"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"e84354b63ec38c0c05a5136f44da445acf82a4a843e142492661bd0b0fccf46d","prominence":"supporting","quote":{"exact":"Poisson distribution f ( k ∣ λ ) = e − λ"},"quote_capped":true,"section":["Examples","Commonly used probability distributions"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Poisson distribution f ( k ∣ λ ) = e − λ λ k k ! {\\displaystyle f(k\\mid \\lambda )={\\frac {e^{-\\lambda }\\lambda ^{k}}{k!}}} λ {\\displaystyle \\lambda } λ {\\displaystyle \\lambda }","segments":[{"text":"Poisson distribution "},{"tex":"f(k\\mid \\lambda )={\\frac {e^{-\\lambda }\\lambda ^{k}}{k!}}"},{"text":" "},{"tex":"\\lambda"},{"text":" "},{"tex":"\\lambda"}]},"unresolved":null},{"absence":null,"basis":"7ff21d0544bdbacab85a00080c9b486d6385078560f2d8dd0ea4934f35defb99","coverage":null,"id":"enwiki-32344-1368633150::In-text #1207a27b","item":"In-text #1207a27b","kind":"theorem","locations":[{"challenge":"downgraded","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_nonneg","end_line":205,"library":"mathlib","line":204,"location_key":"7ff21d0544bdbacab85a00080c9b486d6385078560f2d8dd0ea4934f35defb99","module":"Mathlib.Probability.Moments.Variance","note":"Lean states the inequality for an arbitrary measure on the sample space; a probability law is one such measure and the inequality reads the same in each case.","pair_key":"39e7b582ff5088585c253a598bf73da7aeba828d7d2b5d596ccea961be6b32eb","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_nonneg {Ω : Type*} {mΩ : MeasurableSpace Ω} (X : Ω → ℝ) (μ : MeasureTheory.Measure Ω) : 0 ≤ ProbabilityTheory.variance X μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"0076580d441cc385cc93cd245e22f4c24422b179544800155679fea5f9441117","prominence":"central","quote":{"exact":"Variance is non-negative"},"quote_capped":false,"section":["Properties","Basic properties"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":" because the squares are positive or zero: Var ⁡ ( X ) ≥ 0. {\\displaystyle \\operatorname {Var} (X)\\geq 0.}","segments":[{"text":" because the squares are positive or zero: "},{"display":true,"tex":"\\operatorname {Var} (X)\\geq 0."}]},"layer":"Variance is non-negative","segments":[{"text":"Variance is non-negative"}]},"unresolved":null},{"absence":null,"basis":"66ee26b2d3c9b800e11cf2f0634ac9081d1dc35ad5fef1661d27ea6f59039932","coverage":null,"id":"enwiki-32344-1368633150::In-text #96d121fd","item":"In-text #96d121fd","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_nonneg","end_line":205,"library":"mathlib","line":204,"location_key":"66ee26b2d3c9b800e11cf2f0634ac9081d1dc35ad5fef1661d27ea6f59039932","module":"Mathlib.Probability.Moments.Variance","note":"This gives the conclusion drawn but says nothing about the sign of the individual squared deviations, which the passage states first.","pair_key":"117b4bc0fbb5c5be52feb5bc80c739173610766180b3705141cc28590f2fb357","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"hasPart","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_nonneg {Ω : Type*} {mΩ : MeasurableSpace Ω} (X : Ω → ℝ) (μ : MeasureTheory.Measure Ω) : 0 ≤ ProbabilityTheory.variance X μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"sq_nonneg","end_line":618,"library":"mathlib","line":608,"location_key":"7c5c1f07cc36867a7afe6566ac6f3442d8648b650b5a30df1338001908a7840b","module":"Mathlib.Algebra.Order.Ring.Unbundled.Basic","note":"This gives the pointwise sign of the squared deviations but not the conclusion about the variance that the passage goes on to draw.","pair_key":"1f74f34ca9cf666256a897d075c4304904fb641a7873758c73a666437551da33","path":"Mathlib/Algebra/Order/Ring/Unbundled/Basic.lean","proof_status":"proved","rank":2,"relation":"hasPart","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem sq_nonneg {R : Type u} [Semiring R] [LinearOrder R] [ExistsAddOfLE R] [PosMulMono R] [AddLeftMono R] (a : R) : 0 ≤ a ^ 2"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"203cf50e47b91357f9c8a60fa1203160137d1bcef1322b31e7182f4bbf43c013","prominence":"supporting","quote":{"exact":"the squares are positive or zero: Var ⁡ ( X ) ≥"},"quote_capped":true,"section":["Properties","Basic properties"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"Variance is non-negative because ","segments":[{"text":"Variance is non-negative because "}]},"layer":"the squares are positive or zero: Var ⁡ ( X ) ≥ 0. {\\displaystyle \\operatorname {Var} (X)\\geq 0.}","segments":[{"text":"the squares are positive or zero: "},{"display":true,"tex":"\\operatorname {Var} (X)\\geq 0."}]},"unresolved":null},{"absence":null,"basis":"7845ebbf571ea88ddba054f3df1d9379cf35c57e7118ac9c7d3340c87e050c72","coverage":null,"id":"enwiki-32344-1368633150::In-text #759d2daf","item":"In-text #759d2daf","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_zero","end_line":195,"library":"mathlib","line":194,"location_key":"7845ebbf571ea88ddba054f3df1d9379cf35c57e7118ac9c7d3340c87e050c72","module":"Mathlib.Probability.Moments.Variance","note":"Lean records only the constant zero, which is the passage's claim at that one value of a.","pair_key":"3be016b3aa67ed20240fbc43a05fc991a04556693e2cc1022f5d14fdeee467c3","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_zero {Ω : Type*} {mΩ : MeasurableSpace Ω} (μ : MeasureTheory.Measure Ω) : ProbabilityTheory.variance 0 μ = 0"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_dirac","end_line":315,"library":"mathlib","line":312,"location_key":"dfc75621c8ae4d015b34c342e2e5b5ea1b41cb625d2db8d9d45065eee886ddd6","module":"Mathlib.Probability.Moments.Variance","note":"This fixes the measure to a point mass instead of fixing the random variable to a constant, so it is a different hypothesis.","pair_key":"c2a96aaeb487c8d7e1efa57e5580d3e21af634b248af8d0914f1b1a14dcd449b","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_dirac {Ω : Type*} {mΩ : MeasurableSpace Ω} {X : Ω → ℝ} [MeasurableSingletonClass Ω] (x : Ω) : ProbabilityTheory.variance X (MeasureTheory.Measure.dirac x) = 0"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"f9c78dd72c393c03c9ec4dca6973490e5e8cd1d3624e9ab3f94ecdd1655a6b68","prominence":"central","quote":{"exact":"The variance of a constant is zero. Var ⁡ ( a )"},"quote_capped":true,"section":["Properties","Basic properties"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The variance of a constant is zero. Var ⁡ ( a ) = 0. {\\displaystyle \\operatorname {Var} (a)=0.}","segments":[{"text":"The variance of a constant is zero. "},{"display":true,"tex":"\\operatorname {Var} (a)=0."}]},"unresolved":null},{"absence":null,"basis":"71f57bc90450c8d3b1e44d72aa560137f0d3e6ec1b9fda92d17e25ca62370f66","coverage":null,"id":"enwiki-32344-1368633150::In-text #dee36a4a","item":"In-text #dee36a4a","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.evariance_eq_zero_iff","end_line":184,"library":"mathlib","line":181,"location_key":"71f57bc90450c8d3b1e44d72aa560137f0d3e6ec1b9fda92d17e25ca62370f66","module":"Mathlib.Probability.Moments.Variance","note":"Lean uses the extended nonnegative-valued variance and writes almost-sure constancy as agreeing almost everywhere with the mean, and it allows any measure rather than only a probability law.","pair_key":"f5dcc344938f242f2f81fd7a61f15721d5adc326640f99b98f671fc3cb814e92","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.evariance_eq_zero_iff {Ω : Type*} {mΩ : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} : AEMeasurable X μ → (ProbabilityTheory.evariance X μ = 0 ↔ X =ᵐ[μ] fun x ↦ ∫ (x : Ω), X x ∂μ)"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.ae_eq_integral_of_variance_eq_zero","end_line":172,"library":"mathlib","line":162,"location_key":"fd44a6647553b0e2e8f06d326fc8a9036e55ddda47347818b71225ddfe4f3352","module":"Mathlib.Probability.Moments.Variance","note":"This gives only the direction from vanishing variance to almost-sure constancy, not the converse the passage also asserts.","pair_key":"b205521c69fb81bd06f6214cd1229ab5129f48fc1cf321cf18e509747aaa1f61","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"hasPart","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.ae_eq_integral_of_variance_eq_zero {Ω : Type*} {mΩ : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] : MeasureTheory.MemLp X 2 μ → ProbabilityTheory.variance X μ = 0 → ∀ᵐ (ω : Ω) ∂μ, X ω = ∫ (x : Ω), X x ∂μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"d33dc5e06f376c08fa5cdda70313209b49b30f6c6504823f62e298db28574751","prominence":"central","quote":{"exact":"Conversely, if the variance of a random variable is 0, then it"},"quote_capped":true,"section":["Properties","Basic properties"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Conversely, if the variance of a random variable is 0, then it is almost surely a constant. That is, it always has the same value: Var ⁡ ( X ) = 0 ⟺ ∃ a : P ( X = a ) = 1. {\\displaystyle \\operatorname {Var} (X)=0\\iff \\exists a:P(X=a)=1.}","segments":[{"text":"Conversely, if the variance of a random variable is 0, then it is almost surely a constant. That is, it always has the same value: "},{"display":true,"tex":"\\operatorname {Var} (X)=0\\iff \\exists a:P(X=a)=1."}]},"unresolved":null},{"absence":null,"basis":"868945d356b35aca5dfd648ac7857eee9d2a9736834acd5f13409a11481cf63b","coverage":null,"id":"enwiki-32344-1368633150::In-text #f3f2afab","item":"In-text #f3f2afab","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"MeasureTheory.MemLp.integrable","end_line":648,"library":"mathlib","line":646,"location_key":"868945d356b35aca5dfd648ac7857eee9d2a9736834acd5f13409a11481cf63b","module":"Mathlib.MeasureTheory.Function.L1Space.Integrable","note":"Lean renders a finite variance as membership of the square-integrable class and a finite expected value as integrability, and the declaration runs over every exponent above one and any suitably normed codomain, so the article's sentence is its contrapositive at exponent two.","pair_key":"802242e4300f9b80dd4c41730204d57a92b40b978a969e9e83c8bb78a4b6c79b","path":"Mathlib/MeasureTheory/Function/L1Space/Integrable.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem MeasureTheory.MemLp.integrable {α : Type*} {ε : Type*} {m : MeasurableSpace α} {μ : MeasureTheory.Measure α} [TopologicalSpace ε] [ContinuousENorm ε] {q : ENNReal} : 1 ≤ q → ∀ {f : α → ε} [MeasureTheory.IsFiniteMeasure μ], MeasureTheory.MemLp f q μ → MeasureTheory.Integrable f μ"},"statement":false},{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.not_integrable_id_cauchyMeasure","end_line":270,"library":"tauceti","line":247,"location_key":"6dab4a877084fc336b2174dffb7b3a0ccbd2e2e8b4899f6a41e920ccf2964382","module":"TauCeti.Probability.Distributions.Cauchy.Basic","note":null,"pair_key":"3148cda0a5bcf1e41e50bbdf59afcdda29e6e71a2e3732d865cd997eb2323911","path":"TauCeti/Probability/Distributions/Cauchy/Basic.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.not_integrable_id_cauchyMeasure {γ : NNReal} (x₀ : ℝ) : γ ≠ 0 → ¬MeasureTheory.Integrable id (ProbabilityTheory.cauchyMeasure x₀ γ)"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"4a517e0ade686f8cff647a664807443d5cb7eaaf62b106bdc8e50f44abc53f11","prominence":"supporting","quote":{"exact":"If a distribution does not have a finite expected value, as is"},"quote_capped":true,"section":["Properties","Issues of finiteness"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"If a distribution does not have a finite expected value, as is the case for the Cauchy distribution, then the variance cannot be finite either.","segments":[{"text":"If a distribution does not have a finite expected value, as is the case for the Cauchy distribution, then the variance cannot be finite either."}]},"unresolved":null},{"absence":null,"basis":"7b2acf29024ae3b23a221959dc3cb14aef81ffce3aea7edb3fcbf8e121528766","coverage":null,"id":"enwiki-32344-1368633150::In-text #0e80ec3d","item":"In-text #0e80ec3d","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"medium","declaration":"TauCeti.Probability.integrable_id_paretoMeasure_iff","end_line":171,"library":"tauceti","line":166,"location_key":"7b2acf29024ae3b23a221959dc3cb14aef81ffce3aea7edb3fcbf8e121528766","module":"TauCeti.Probability.Distributions.Pareto.Basic","note":null,"pair_key":"7296eb33625b310328151bd82b6760372a4ecc2acd7de292865110468bdc49e7","path":"TauCeti/Probability/Distributions/Pareto/Basic.lean","proof_status":"proved","rank":1,"relation":"hasPart","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.integrable_id_paretoMeasure_iff {t r : ℝ} : 0 < t → 0 < r → (MeasureTheory.Integrable id (ProbabilityTheory.paretoMeasure t r) ↔ 1 < r)"},"statement":false},{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"medium","declaration":"TauCeti.Probability.not_integrable_sq_paretoMeasure","end_line":195,"library":"tauceti","line":192,"location_key":"5dbac40d606edb462d142438825f296eb09dba953c208331acfc70ed0c48bfb8","module":"TauCeti.Probability.Distributions.Pareto.Basic","note":null,"pair_key":"db12901b53e6069ce4e3858a7434468d90f470b3e78e3da127e60decd064ac7f","path":"TauCeti/Probability/Distributions/Pareto/Basic.lean","proof_status":"proved","rank":2,"relation":"hasPart","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.not_integrable_sq_paretoMeasure {t r : ℝ} : 0 < t → 0 < r → r ≤ 2 → ¬MeasureTheory.Integrable (fun x ↦ x ^ 2) (ProbabilityTheory.paretoMeasure t r)"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"1559b37812d151d4b6fd00fd3692b63192e007551b745920de36d9d79ceb0e3f","prominence":"supporting","quote":{"exact":"However, some distributions may not have a finite variance, despite their expected"},"quote_capped":true,"section":["Properties","Issues of finiteness"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"However, some distributions may not have a finite variance, despite their expected value being finite.","segments":[{"text":"However, some distributions may not have a finite variance, despite their expected value being finite."}]},"unresolved":null},{"absence":null,"basis":"f44f5f510a895b93a73edd43b3c0eb52e122c331b2265b08095f0814d7823c9c","coverage":null,"id":"enwiki-32344-1368633150::In-text #8bbb156c","item":"In-text #8bbb156c","kind":"example","locations":[{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.integrable_id_paretoMeasure_iff","end_line":171,"library":"tauceti","line":166,"location_key":"f44f5f510a895b93a73edd43b3c0eb52e122c331b2265b08095f0814d7823c9c","module":"TauCeti.Probability.Distributions.Pareto.Basic","note":null,"pair_key":"2363c710d681ada695d81fcf2adeb969bfecc5d7e14779f5713095c2992e5ec8","path":"TauCeti/Probability/Distributions/Pareto/Basic.lean","proof_status":"proved","rank":1,"relation":"hasPart","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.integrable_id_paretoMeasure_iff {t r : ℝ} : 0 < t → 0 < r → (MeasureTheory.Integrable id (ProbabilityTheory.paretoMeasure t r) ↔ 1 < r)"},"statement":false},{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.not_integrable_sq_paretoMeasure","end_line":195,"library":"tauceti","line":192,"location_key":"f806138d88bd714c1d0dc0928877b1fe3702428da6609bc20dac563c96a45b09","module":"TauCeti.Probability.Distributions.Pareto.Basic","note":null,"pair_key":"d69ca4eb262d562269223dedbba41852739150ea01b80510fbd1318ebda5178b","path":"TauCeti/Probability/Distributions/Pareto/Basic.lean","proof_status":"proved","rank":2,"relation":"hasPart","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.not_integrable_sq_paretoMeasure {t r : ℝ} : 0 < t → 0 < r → r ≤ 2 → ¬MeasureTheory.Integrable (fun x ↦ x ^ 2) (ProbabilityTheory.paretoMeasure t r)"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"0f88c6d50d710f00fad0d80e6e46f662a2a325b9fb0736edecbe711cf6813b6f","prominence":"supporting","quote":{"exact":"An example is a Pareto distribution whose index k {\\displaystyle k} satisfies"},"quote_capped":true,"section":["Properties","Issues of finiteness"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"An example is a Pareto distribution whose index k {\\displaystyle k} satisfies 1 < k ≤ 2. {\\displaystyle 1<k\\leq 2.}","segments":[{"text":"An example is a Pareto distribution whose index "},{"tex":"k"},{"text":" satisfies "},{"tex":"1<k\\leq 2."}]},"unresolved":null},{"absence":null,"basis":"904847056873c4d4f0671969d5aaa24ccb923ab038f960367c66fe9dedc87d0c","coverage":null,"id":"enwiki-32344-1368633150::In-text #d629fe5d","item":"In-text #d629fe5d","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.integral_condVar_add_variance_condExp","end_line":147,"library":"mathlib","line":136,"location_key":"904847056873c4d4f0671969d5aaa24ccb923ab038f960367c66fe9dedc87d0c","module":"Mathlib.Probability.CondVar","note":"The declaration conditions on an arbitrary sub-algebra rather than on a random variable, and the integral against the probability measure is the expectation that the article writes in front of the conditional variance.","pair_key":"f59b72a9944c208f9168aad1d0a4350f0958fd3d2605cdea0dcd66330eca0831","path":"Mathlib/Probability/CondVar.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.integral_condVar_add_variance_condExp {Ω : Type*} {m₀ m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} : m ≤ m₀ → ∀ [MeasureTheory.IsProbabilityMeasure μ], MeasureTheory.MemLp X 2 μ → ∫ (x : Ω), ProbabilityTheory.condVar m X μ x ∂μ + ProbabilityTheory.variance μ[X | m] μ = ProbabilityTheory.variance X μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"fdb7c0d1105e0f41c3749866d861cf4ea8db3de5ac412f4982ee053bd3121775","prominence":"central","quote":{"exact":"The general formula for variance decomposition or the law of total variance"},"quote_capped":true,"section":["Properties","Decomposition"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The general formula for variance decomposition or the law of total variance is: If X {\\displaystyle X} and Y {\\displaystyle Y} are two random variables, and the variance of X {\\displaystyle X} exists, then Var ⁡ [ X ] = E ⁡ ( Var ⁡ [ X ∣ Y ] ) + Var ⁡ ( E ⁡ [ X ∣ Y ] ) . {\\displaystyle \\operatorname {Var} [X]=\\operatorname {E} (\\operatorname {Var} [X\\mid Y])+\\operatorname {Var} (\\operatorname {E} [X\\mid Y]).}","segments":[{"text":"The general formula for variance decomposition or the law of total variance is: If "},{"tex":"X"},{"text":" and "},{"tex":"Y"},{"text":" are two random variables, and the variance of "},{"tex":"X"},{"text":" exists, then "},{"display":true,"tex":"\\operatorname {Var} [X]=\\operatorname {E} (\\operatorname {Var} [X\\mid Y])+\\operatorname {Var} (\\operatorname {E} [X\\mid Y])."}]},"unresolved":null},{"absence":null,"basis":"8dd8833b63ed9b4c8a77bc1256954a2bfc3e673a8cd159496bd3b95bc532e739","coverage":null,"id":"enwiki-32344-1368633150::In-text #130aea48","item":"In-text #130aea48","kind":"definition","locations":[{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.condDistrib","end_line":66,"library":"mathlib","line":64,"location_key":"8dd8833b63ed9b4c8a77bc1256954a2bfc3e673a8cd159496bd3b95bc532e739","module":"Mathlib.Probability.Kernel.CondDistrib","note":"Mathlib attaches to each value of the conditioning variable the whole conditional distribution rather than only its mean, and it does so for any standard Borel codomain.","pair_key":"23acf9b0b37570b0fa5b9d115a509e31bef98bb0d4979cdd82d0b1e16f3d7062","path":"Mathlib/Probability/Kernel/CondDistrib.lean","proof_status":"definition","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def ProbabilityTheory.condDistrib {α : Type*} {β : Type*} {Ω : Type*} [MeasurableSpace Ω] [StandardBorelSpace Ω] [Nonempty Ω] {x : MeasurableSpace α} [MeasurableSpace β] : (α → Ω) → (α → β) → (μ : MeasureTheory.Measure α) → [MeasureTheory.IsFiniteMeasure μ] → ProbabilityTheory.Kernel β Ω"},"statement":false},{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"MeasureTheory.StronglyMeasurable.integral_condDistrib","end_line":123,"library":"mathlib","line":121,"location_key":"9cca81047ea7612a2cc18ceb784b655b585843494ef45a92e16133c4e174731a","module":"Mathlib.Probability.Kernel.CondDistrib","note":"Besides exhibiting the conditional mean at each value of the conditioning variable, the declaration asserts that the resulting assignment is strongly measurable.","pair_key":"2b5ccc09476709e4d868ae0f9656de84215bfa42d1093655ecb0e6fae20c4f55","path":"Mathlib/Probability/Kernel/CondDistrib.lean","proof_status":"proved","rank":2,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem MeasureTheory.StronglyMeasurable.integral_condDistrib {α : Type*} {β : Type*} {Ω : Type*} {F : Type*} [MeasurableSpace Ω] [StandardBorelSpace Ω] [Nonempty Ω] [NormedAddCommGroup F] {mα : MeasurableSpace α} {μ : MeasureTheory.Measure α} [MeasureTheory.IsFiniteMeasure μ] {X : α → β} {Y : α → Ω} {mβ : MeasurableSpace β} {f : β × Ω → F} [NormedSpace ℝ F] : MeasureTheory.StronglyMeasurable f → MeasureTheory.StronglyMeasurable fun x ↦ ∫ (y : Ω), f (x, y) ∂(ProbabilityTheory.condDistrib Y X μ) x"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"358fbc6f2de5c8160105ed796bf68c213eaf85a14bf4d7f47bf2d43cbe343124","prominence":"supporting","quote":{"exact":"Given any particular value y of the random variable Y, there is"},"quote_capped":true,"section":["Properties","Decomposition"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Given any particular value y of the random variable Y, there is a conditional expectation E ⁡ ( X ∣ Y = y ) {\\displaystyle \\operatorname {E} (X\\mid Y=y)} given the event Y = y.","segments":[{"text":"Given any particular value y of the random variable Y, there is a conditional expectation "},{"tex":"\\operatorname {E} (X\\mid Y=y)"},{"text":" given the event Y = y."}]},"unresolved":null},{"absence":null,"basis":"384465f70ab360b204fe3ac3eb731e2164626396f691f7a8902ac33ec05ebdf9","coverage":null,"id":"enwiki-32344-1368633150::In-text #a096b142","item":"In-text #a096b142","kind":"definition","locations":[{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.condDistrib","end_line":66,"library":"mathlib","line":64,"location_key":"384465f70ab360b204fe3ac3eb731e2164626396f691f7a8902ac33ec05ebdf9","module":"Mathlib.Probability.Kernel.CondDistrib","note":"The kernel carries the whole conditional law at each value rather than its mean alone, so it holds more than the function the sentence writes down.","pair_key":"427bfd46fc2e4e6a5207d70e25e4237329e42b4451038e7002469b5798878f1e","path":"Mathlib/Probability/Kernel/CondDistrib.lean","proof_status":"definition","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def ProbabilityTheory.condDistrib {α : Type*} {β : Type*} {Ω : Type*} [MeasurableSpace Ω] [StandardBorelSpace Ω] [Nonempty Ω] {x : MeasurableSpace α} [MeasurableSpace β] : (α → Ω) → (α → β) → (μ : MeasureTheory.Measure α) → [MeasureTheory.IsFiniteMeasure μ] → ProbabilityTheory.Kernel β Ω"},"statement":false},{"challenge":"downgraded","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"MeasureTheory.StronglyMeasurable.integral_condDistrib","end_line":123,"library":"mathlib","line":121,"location_key":"87dbee934fbd59a5aac5181458d72dd22023dfbdc963846f4432e2e1d0b5a1f5","module":"Mathlib.Probability.Kernel.CondDistrib","note":"The declaration both exhibits the map from a value of the conditioning variable to the conditional mean and states that this map is strongly measurable.","pair_key":"8bb42973503706219ec63661b6a7ef72d7c7b158f144b55f3c49324aad4b3fd3","path":"Mathlib/Probability/Kernel/CondDistrib.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem MeasureTheory.StronglyMeasurable.integral_condDistrib {α : Type*} {β : Type*} {Ω : Type*} {F : Type*} [MeasurableSpace Ω] [StandardBorelSpace Ω] [Nonempty Ω] [NormedAddCommGroup F] {mα : MeasurableSpace α} {μ : MeasureTheory.Measure α} [MeasureTheory.IsFiniteMeasure μ] {X : α → β} {Y : α → Ω} {mβ : MeasurableSpace β} {f : β × Ω → F} [NormedSpace ℝ F] : MeasureTheory.StronglyMeasurable f → MeasureTheory.StronglyMeasurable fun x ↦ ∫ (y : Ω), f (x, y) ∂(ProbabilityTheory.condDistrib Y X μ) x"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"266a2145bc75e9621982cb91fa71690f558cd1ccfd963397cd6802f4d41bb4e7","prominence":"supporting","quote":{"exact":"This quantity depends on the particular value y; it is a function"},"quote_capped":true,"section":["Properties","Decomposition"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"This quantity depends on the particular value y; it is a function g ( y ) = E ⁡ ( X ∣ Y = y ) {\\displaystyle g(y)=\\operatorname {E} (X\\mid Y=y)} .","segments":[{"text":"This quantity depends on the particular value y; it is a function "},{"tex":"g(y)=\\operatorname {E} (X\\mid Y=y)"},{"text":" ."}]},"unresolved":null},{"absence":null,"basis":"eaecdf1f6d9cdf41b2884686602068b3fbf08a802011ffb6343ae50ac58ebc42","coverage":null,"id":"enwiki-32344-1368633150::In-text #3381bf16","item":"In-text #3381bf16","kind":"definition","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.condExp_ae_eq_integral_condDistrib'","end_line":386,"library":"mathlib","line":382,"location_key":"eaecdf1f6d9cdf41b2884686602068b3fbf08a802011ffb6343ae50ac58ebc42","module":"Mathlib.Probability.Kernel.CondDistrib","note":"The declaration allows an integrand valued in any complete second countable normed space and states the identity up to a null set, which is how a conditional expectation is pinned down.","pair_key":"f6bc00f841f92b9fe3736be0c4110e5db6e644435bce4b37fa95883ea13a2620","path":"Mathlib/Probability/Kernel/CondDistrib.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.condExp_ae_eq_integral_condDistrib' {α : Type*} {β : Type*} {mα : MeasurableSpace α} {μ : MeasureTheory.Measure α} [MeasureTheory.IsFiniteMeasure μ] {X : α → β} {mβ : MeasurableSpace β} {Ω : Type*} [NormedAddCommGroup Ω] [NormedSpace ℝ Ω] [CompleteSpace Ω] [MeasurableSpace Ω] [BorelSpace Ω] [SecondCountableTopology Ω] {Y : α → Ω} : Measurable X → MeasureTheory.Integrable Y μ → μ[Y | MeasurableSpace.comap X mβ] =ᵐ[μ] fun a ↦ ∫ (y : Ω), y ∂(ProbabilityTheory.condDistrib Y X μ) (X a)"},"statement":false},{"challenge":"downgraded","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.condExp_ae_eq_integral_condDistrib_id","end_line":430,"library":"mathlib","line":426,"location_key":"aac7f8180018286c5f6ed88fbab99487b74afc79f7d8461a4c560dd553617f79","module":"Mathlib.Probability.Kernel.CondDistrib","note":"This variant conditions the identity law on the sample space and allows any complete normed codomain for the integrand.","pair_key":"33155b77618c2a2cc5df70950a4c8e01cb3600dbbe0f8e339978e4660c9f4158","path":"Mathlib/Probability/Kernel/CondDistrib.lean","proof_status":"proved","rank":2,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.condExp_ae_eq_integral_condDistrib_id {β : Type*} {Ω : Type*} {F : Type*} [MeasurableSpace Ω] [StandardBorelSpace Ω] [Nonempty Ω] [NormedAddCommGroup F] {mβ : MeasurableSpace β} [NormedSpace ℝ F] [CompleteSpace F] {X : Ω → β} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] : Measurable X → ∀ {f : Ω → F}, MeasureTheory.Integrable f μ → μ[f | MeasurableSpace.comap X mβ] =ᵐ[μ] fun a ↦ ∫ (y : Ω), f y ∂(ProbabilityTheory.condDistrib id X μ) (X a)"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"170277da14c44d92f10f344c87b5f0bd19f073f12f8aedd12f15fb35701ee473","prominence":"supporting","quote":{"exact":"That same function evaluated at the random variable Y is the conditional"},"quote_capped":true,"section":["Properties","Decomposition"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"That same function evaluated at the random variable Y is the conditional expectation ⁠ E ⁡ ( X ∣ Y ) = g ( Y ) {\\displaystyle \\operatorname {E} (X\\mid Y)=g(Y)} ⁠.","segments":[{"text":"That same function evaluated at the random variable Y is the conditional expectation ⁠ "},{"tex":"\\operatorname {E} (X\\mid Y)=g(Y)"},{"text":" ⁠."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":2,"queries":4,"sha256":"0b58792d3b61ee02940ae3fe969a14745e95e1e1de83f44c4b529d121612572e"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #6e072eb7","item":"In-text #6e072eb7","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"b50b726c13594d522a154c6bafd0d9f39cea7c7aa30cdd15684e5f55425613ef","prominence":"supporting","quote":{"exact":"In particular, if Y {\\displaystyle Y} is a discrete random variable assuming"},"quote_capped":true,"section":["Properties","Decomposition"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"In particular, if Y {\\displaystyle Y} is a discrete random variable assuming possible values y 1 , y 2 , y 3 … {\\displaystyle y_{1},y_{2},y_{3}\\ldots } with corresponding probabilities p 1 , p 2 , p 3 … , {\\displaystyle p_{1},p_{2},p_{3}\\ldots ,} , then in the formula for total variance, the first term on the right-hand side becomes E ⁡ ( Var ⁡ [ X ∣ Y ] ) = ∑ i p i σ i 2 , {\\displaystyle \\operatorname {E} (\\operatorname {Var} [X\\mid Y])=\\sum _{i}p_{i}\\sigma _{i}^{2},} where σ i 2 = Var ⁡ [ X ∣ Y = y i ] {\\displaystyle \\sigma _{i}^{2}=\\operatorname {Var} [X\\mid Y=y_{i}]} .","segments":[{"text":"In particular, if "},{"tex":"Y"},{"text":" is a discrete random variable assuming possible values "},{"tex":"y_{1},y_{2},y_{3}\\ldots"},{"text":" with corresponding probabilities "},{"tex":"p_{1},p_{2},p_{3}\\ldots ,"},{"text":" , then in the formula for total variance, the first term on the right-hand side becomes "},{"display":true,"tex":"\\operatorname {E} (\\operatorname {Var} [X\\mid Y])=\\sum _{i}p_{i}\\sigma _{i}^{2},"},{"text":" where "},{"tex":"\\sigma _{i}^{2}=\\operatorname {Var} [X\\mid Y=y_{i}]"},{"text":" ."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":0,"queries":3,"sha256":"56e87cbee4ed6b294b4250bcc36045313f59fb2547725342c59cd4276e2d58a2"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #90310580","item":"In-text #90310580","kind":"theorem","locations":[{"challenge":"downgraded","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_eq_sub","end_line":228,"library":"mathlib","line":226,"location_key":"54733cec50a193f66b361f140301c65f68ec8024889a348010cb95bc1eeee878","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib writes the two means as integrals where the article writes them as weighted sums over the values y_i, which is the same quantity in the article's discrete encoding of expectation.","pair_key":"39fe46ae247d71a61c416be8a734153f942240c1c1290d6aff5ba33ea52788f1","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_sub {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {X : Ω → ℝ} : MeasureTheory.MemLp X 2 μ → ProbabilityTheory.variance X μ = ∫ (x : Ω), (X ^ 2) x ∂μ - (∫ (x : Ω), X x ∂μ) ^ 2"},"statement":false},{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_eq_integral","end_line":159,"library":"mathlib","line":157,"location_key":"68e4eafcbb6f8e4578839b33c1632896d13e87c48a7490d0559f24c8b55950d2","module":"Mathlib.Probability.Moments.Variance","note":"It unfolds the variance into the mean of the squared deviation, the article's starting definition rather than the equation displayed here.","pair_key":"601062bd167a005acc95528522fb14693310a7e798751ac8ee2871f4a32d85e4","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_integral {Ω : Type*} {mΩ : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} : AEMeasurable X μ → ProbabilityTheory.variance X μ = ∫ (ω : Ω), (X ω - ∫ (x : Ω), X x ∂μ) ^ 2 ∂μ"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"48acdc6f84761e3d68612283698173f0c544b5a0bb14a1246243d9f5d1c961d2","prominence":"supporting","quote":{"exact":"Similarly, the second term on the right-hand side becomes Var ⁡ ("},"quote_capped":true,"section":["Properties","Decomposition"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Similarly, the second term on the right-hand side becomes Var ⁡ ( E ⁡ [ X ∣ Y ] ) = ∑ i p i μ i 2 − ( ∑ i p i μ i ) 2 = ∑ i p i μ i 2 − μ 2 , {\\displaystyle \\operatorname {Var} (\\operatorname {E} [X\\mid Y])=\\sum _{i}p_{i}\\mu _{i}^{2}-\\left(\\sum _{i}p_{i}\\mu _{i}\\right)^{2}=\\sum _{i}p_{i}\\mu _{i}^{2}-\\mu ^{2},} where ⁠ 1 {\\displaystyle {1}} ⁠ and ⁠ μ = ∑ i p i μ i {\\displaystyle \\textstyle \\mu =\\sum _{i}p_{i}\\mu _{i}} ⁠.","segments":[{"text":"Similarly, the second term on the right-hand side becomes "},{"display":true,"tex":"\\operatorname {Var} (\\operatorname {E} [X\\mid Y])=\\sum _{i}p_{i}\\mu _{i}^{2}-\\left(\\sum _{i}p_{i}\\mu _{i}\\right)^{2}=\\sum _{i}p_{i}\\mu _{i}^{2}-\\mu ^{2},"},{"text":" where ⁠ "},{"tex":"1"},{"text":" ⁠ and ⁠ "},{"tex":"\\textstyle \\mu =\\sum _{i}p_{i}\\mu _{i}"},{"text":" ⁠."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":3,"queries":4,"sha256":"86f69f09805cfd0bb99b74d28c25573e34bb1c6aed6ec39aa091e1c000d15fb8"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #0954d28f","item":"In-text #0954d28f","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.integral_condVar_add_variance_condExp","end_line":147,"library":"mathlib","line":136,"location_key":"fbf0a5077844b65ab51b7df6b9f483c3e649a45c9b785216845e0a10c8f56447","module":"Mathlib.Probability.CondVar","note":"It is the law of total variance in integral form over an arbitrary sub-sigma-algebra, while the passage displays the two terms as explicit weighted sums.","pair_key":"1dcb712d2bb05d8e5207f825b06cdc0c177b346a88c9f27408c781857e972d4f","path":"Mathlib/Probability/CondVar.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.integral_condVar_add_variance_condExp {Ω : Type*} {m₀ m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} : m ≤ m₀ → ∀ [MeasureTheory.IsProbabilityMeasure μ], MeasureTheory.MemLp X 2 μ → ∫ (x : Ω), ProbabilityTheory.condVar m X μ x ∂μ + ProbabilityTheory.variance μ[X | m] μ = ProbabilityTheory.variance X μ"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"c458061b55299960ca48efad5e1e420337d194338de1ba390cdd75ad8e481c0c","prominence":"supporting","quote":{"exact":"Thus the total variance is given by Var ⁡ [ X ]"},"quote_capped":true,"section":["Properties","Decomposition"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Thus the total variance is given by Var ⁡ [ X ] = ∑ i p i σ i 2 + ( ∑ i p i μ i 2 − μ 2 ) . {\\displaystyle \\operatorname {Var} [X]=\\sum _{i}p_{i}\\sigma _{i}^{2}+\\left(\\sum _{i}p_{i}\\mu _{i}^{2}-\\mu ^{2}\\right).}","segments":[{"text":"Thus the total variance is given by "},{"display":true,"tex":"\\operatorname {Var} [X]=\\sum _{i}p_{i}\\sigma _{i}^{2}+\\left(\\sum _{i}p_{i}\\mu _{i}^{2}-\\mu ^{2}\\right)."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":2,"queries":4,"sha256":"3b5effb6ef6f3be51f58d294278eb78ee8e98c7ff00635ce6dbff05cc8df2400"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #1af469f0","item":"In-text #1af469f0","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"d23e11e321d97e68f3ed16252ea542d0bb296620f2c639eb227988d46fc18a53","prominence":"supporting","quote":{"exact":"A similar formula is applied in analysis of variance, where the corresponding"},"quote_capped":true,"section":["Properties","Decomposition"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":" here M S {\\displaystyle {\\mathit {MS}}} refers to the Mean of the Squares.","segments":[{"text":" here "},{"tex":"\\mathit {MS}"},{"text":" refers to the Mean of the Squares."}]},"layer":"A similar formula is applied in analysis of variance, where the corresponding formula is M S total = M S between + M S within ; {\\displaystyle {\\mathit {MS}}_{\\text{total}}={\\mathit {MS}}_{\\text{between}}+{\\mathit {MS}}_{\\text{within}};}","segments":[{"text":"A similar formula is applied in analysis of variance, where the corresponding formula is "},{"display":true,"tex":"{\\mathit {MS}}_{\\text{total}}={\\mathit {MS}}_{\\text{between}}+{\\mathit {MS}}_{\\text{within}};"}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":2,"queries":3,"sha256":"ead1449f4528c6a9c051549d1572cf4ed21d9bc46e883675bd52b3a485d2925b"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #64a68a84","item":"In-text #64a68a84","kind":"notation","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"5da8948430b0b5081dfed15a04aca8d4ffb72b30e39c10ad0e83b04aa4d5f887","prominence":"supporting","quote":{"exact":"here M S {\\displaystyle {\\mathit {MS}}} refers to the Mean of the"},"quote_capped":true,"section":["Properties","Decomposition"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"A similar formula is applied in analysis of variance, where the corresponding formula is M S total = M S between + M S within ; {\\displaystyle {\\mathit {MS}}_{\\text{total}}={\\mathit {MS}}_{\\text{between}}+{\\mathit {MS}}_{\\text{within}};} ","segments":[{"text":"A similar formula is applied in analysis of variance, where the corresponding formula is "},{"display":true,"tex":"{\\mathit {MS}}_{\\text{total}}={\\mathit {MS}}_{\\text{between}}+{\\mathit {MS}}_{\\text{within}};"},{"text":" "}]},"layer":"here M S {\\displaystyle {\\mathit {MS}}} refers to the Mean of the Squares.","segments":[{"text":"here "},{"tex":"\\mathit {MS}"},{"text":" refers to the Mean of the Squares."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":1,"queries":4,"sha256":"bc463e80ca47bd585cc2520edb593b9c33806a79871c5b48f0b6c87e57824f01"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #30d494e7","item":"In-text #30d494e7","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"ab13f52764524bf19f9d9f2064dd17de1f97335e575ab9b70f92bd28572d45e6","prominence":"supporting","quote":{"exact":"In linear regression analysis the corresponding formula is M S total ="},"quote_capped":true,"section":["Properties","Decomposition"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"In linear regression analysis the corresponding formula is M S total = M S regression + M S residual . {\\displaystyle {\\mathit {MS}}_{\\text{total}}={\\mathit {MS}}_{\\text{regression}}+{\\mathit {MS}}_{\\text{residual}}.}","segments":[{"text":"In linear regression analysis the corresponding formula is "},{"display":true,"tex":"{\\mathit {MS}}_{\\text{total}}={\\mathit {MS}}_{\\text{regression}}+{\\mathit {MS}}_{\\text{residual}}."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":2,"queries":3,"sha256":"8e7951e3d983f30c2b4d77b4d82214791ffeebcd60ec7f32e1e6754d138b0f80"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #7a14093b","item":"In-text #7a14093b","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"44b1a0e130c7ec46a8b574239e1c4605a9b59273c50d34b71e208654114a9849","prominence":"supporting","quote":{"exact":"the total (observed) score is the sum of the predicted score and"},"quote_capped":true,"section":["Properties","Decomposition"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"This can also be derived from the additivity of variances, since ","segments":[{"text":"This can also be derived from the additivity of variances, since "}]},"layer":"the total (observed) score is the sum of the predicted score and the error score, where the latter two are uncorrelated.","segments":[{"text":"the total (observed) score is the sum of the predicted score and the error score, where the latter two are uncorrelated."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":2,"queries":3,"sha256":"576548fa6a22182711b3ddf41912ac9737f2da0c02f7abbe5e1c4564f69df51b"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #bbb5628e","item":"In-text #bbb5628e","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"38894736fe7b902380960baee353000b4fac9af9231279acdd5598c09c0440f1","prominence":"supporting","quote":{"exact":"Similar decompositions are possible for the sum of squared deviations (sum of"},"quote_capped":true,"section":["Properties","Decomposition"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":" S S total = S S regression + S S residual . {\\displaystyle {\\mathit {SS}}_{\\text{total}}={\\mathit {SS}}_{\\text{regression}}+{\\mathit {SS}}_{\\text{residual}}.}","segments":[{"text":" "},{"display":true,"tex":"{\\mathit {SS}}_{\\text{total}}={\\mathit {SS}}_{\\text{regression}}+{\\mathit {SS}}_{\\text{residual}}."}]},"layer":"Similar decompositions are possible for the sum of squared deviations (sum of squares, S S {\\displaystyle {\\mathit {SS}}} ): S S total = S S between + S S within , {\\displaystyle {\\mathit {SS}}_{\\text{total}}={\\mathit {SS}}_{\\text{between}}+{\\mathit {SS}}_{\\text{within}},}","segments":[{"text":"Similar decompositions are possible for the sum of squared deviations (sum of squares, "},{"tex":"\\mathit {SS}"},{"text":" ): "},{"display":true,"tex":"{\\mathit {SS}}_{\\text{total}}={\\mathit {SS}}_{\\text{between}}+{\\mathit {SS}}_{\\text{within}},"}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":2,"queries":3,"sha256":"2ccbd1b2d26e4a3907cf73ecc00eb80ac17028761e594e22a3c636471c096ee2"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #10dcea0b","item":"In-text #10dcea0b","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"bc946d753234c3d3a2f70f96b063e97486e7b09b71b1203fb86f532321972bfb","prominence":"supporting","quote":{"exact":"S S total = S S regression + S S residual ."},"quote_capped":true,"section":["Properties","Decomposition"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"Similar decompositions are possible for the sum of squared deviations (sum of squares, S S {\\displaystyle {\\mathit {SS}}} ): S S total = S S between + S S within , {\\displaystyle {\\mathit {SS}}_{\\text{total}}={\\mathit {SS}}_{\\text{between}}+{\\mathit {SS}}_{\\text{within}},} ","segments":[{"text":"Similar decompositions are possible for the sum of squared deviations (sum of squares, "},{"tex":"\\mathit {SS}"},{"text":" ): "},{"display":true,"tex":"{\\mathit {SS}}_{\\text{total}}={\\mathit {SS}}_{\\text{between}}+{\\mathit {SS}}_{\\text{within}},"},{"text":" "}]},"layer":"S S total = S S regression + S S residual . {\\displaystyle {\\mathit {SS}}_{\\text{total}}={\\mathit {SS}}_{\\text{regression}}+{\\mathit {SS}}_{\\text{residual}}.}","segments":[{"display":true,"tex":"{\\mathit {SS}}_{\\text{total}}={\\mathit {SS}}_{\\text{regression}}+{\\mathit {SS}}_{\\text{residual}}."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":0,"queries":3,"sha256":"3ae6ad52ad2fd71b4ca54823ba43b4364787fc052d917a80930fdc3037b2c083"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #81da36f1","item":"In-text #81da36f1","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"MeasureTheory.Integrable.integral_eq_integral_meas_lt","end_line":535,"library":"mathlib","line":516,"location_key":"44cb4bd2a23f71d1e5a188f58b5e921c116ccc81d57e61d1fe9bb9ed81622e3f","module":"Mathlib.MeasureTheory.Integral.Layercake","note":"It writes the mean of a non-negative variable as an integral of its tail probabilities, which is one ingredient of the passage's expression but not the equation the passage asserts.","pair_key":"4e5bb10a22ebf945b3bb27919262d37f9bc87465f986741ec0a476ddfa1248bd","path":"Mathlib/MeasureTheory/Integral/Layercake.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem MeasureTheory.Integrable.integral_eq_integral_meas_lt {α : Type*} [MeasurableSpace α] {μ : MeasureTheory.Measure α} {f : α → ℝ} : MeasureTheory.Integrable f μ → 0 ≤ᵐ[μ] f → ∫ (ω : α), f ω ∂μ = ∫ (t : ℝ) in Set.Ioi 0, μ.real {a | t < f a}"},"statement":false},{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"MeasureTheory.lintegral_rpow_eq_lintegral_meas_lt_mul","end_line":100,"library":"mathlib","line":92,"location_key":"1deeb81fc7d1d32bdc1beb836ab24a3620c2e9c8cd58de03a6d47118ccf323b7","module":"Mathlib.Analysis.SpecialFunctions.Pow.Integral","note":"At exponent two it gives the second moment as an integral against tail probabilities; reaching the passage still needs the mean identity and the shortcut formula for the variance.","pair_key":"613be7aa21a9adf15afd207cd0ed1544321cff5fa49c0ee525c89ba570d26a2b","path":"Mathlib/Analysis/SpecialFunctions/Pow/Integral.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem MeasureTheory.lintegral_rpow_eq_lintegral_meas_lt_mul {α : Type*} [MeasurableSpace α] (μ : MeasureTheory.Measure α) {f : α → ℝ} : 0 ≤ᵐ[μ] f → AEMeasurable f μ → ∀ {p : ℝ}, 0 < p → ∫⁻ (ω : α), ENNReal.ofReal (f ω ^ p) ∂μ = ENNReal.ofReal p * ∫⁻ (t : ℝ) in Set.Ioi 0, μ {a | t < f a} * ENNReal.ofReal (t ^ (p - 1))"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"bf96d813023445e556c10b4e2dcd625f60c7f82f78645cc09d3fda0626503f37","prominence":"supporting","quote":{"exact":"The population variance for a non-negative random variable can be expressed in"},"quote_capped":true,"section":["Properties","Calculation from the CDF"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The population variance for a non-negative random variable can be expressed in terms of the cumulative distribution function F using 2 ∫ 0 ∞ u ( 1 − F ( u ) ) d u − [ ∫ 0 ∞ ( 1 − F ( u ) ) d u ] 2 . {\\displaystyle 2\\int _{0}^{\\infty }u(1-F(u))\\,du-{\\left[\\int _{0}^{\\infty }(1-F(u))\\,du\\right]}^{2}.}","segments":[{"text":"The population variance for a non-negative random variable can be expressed in terms of the cumulative distribution function F using "},{"display":true,"tex":"2\\int _{0}^{\\infty }u(1-F(u))\\,du-{\\left[\\int _{0}^{\\infty }(1-F(u))\\,du\\right]}^{2}."}]},"unresolved":null},{"absence":null,"basis":"aa812c744a9f69d57eb1d7a27df72e25ed15b3f815b05f63745ccbba68e39edd","coverage":null,"id":"enwiki-32344-1368633150::In-text #7c63e1a6","item":"In-text #7c63e1a6","kind":"theorem","locations":[{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"medium","declaration":"TauCeti.setIntegral_norm_sub_setAverage_sq_le_setIntegral_norm_sub_sq","end_line":278,"library":"tauceti","line":274,"location_key":"aa812c744a9f69d57eb1d7a27df72e25ed15b3f815b05f63745ccbba68e39edd","module":"TauCeti.MeasureTheory.Integral.Average","note":"The declaration is stated for an arbitrary real inner product space, an arbitrary set of finite measure and the set average, and the passage is its reading on the real line under a probability law.","pair_key":"37a1a161cfab8efdf0c9519dc345b2201ba3515f364b0876490a0f3780dcb290","path":"TauCeti/MeasureTheory/Integral/Average.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.setIntegral_norm_sub_setAverage_sq_le_setIntegral_norm_sub_sq {X : Type*} {F : Type*} [MeasurableSpace X] {μ : MeasureTheory.Measure X} [NormedAddCommGroup F] [InnerProductSpace ℝ F] [CompleteSpace F] {s : Set X} {f : X → F} : μ s ≠ ⊤ → MeasureTheory.IntegrableOn f s μ → ∀ {c : F}, MeasureTheory.IntegrableOn (fun x ↦ ‖f x - c‖ ^ 2) s μ → ∫ (x : X) in s, ‖f x - ⨍ (y : X) in s, f y ∂μ‖ ^ 2 ∂μ ≤ ∫ (x : X) in s, ‖f x - c‖ ^ 2 ∂μ"},"statement":false},{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.setIntegral_norm_sub_sq_eq_setIntegral_norm_sub_setAverage_sq_add","end_line":270,"library":"tauceti","line":247,"location_key":"d395d07b7410d51e91c5cdb1dc6009e5d1d012a5d393448bfd45797f39331500","module":"TauCeti.MeasureTheory.Integral.Average","note":"It splits the mean square deviation about a point into the variance plus the squared gap between the point and the mean; the minimising claim follows only after an extra positivity argument.","pair_key":"c2dc99b46773d47a494f9bd91d20e0bcd341897381fd792493533d906697beac","path":"TauCeti/MeasureTheory/Integral/Average.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.setIntegral_norm_sub_sq_eq_setIntegral_norm_sub_setAverage_sq_add {X : Type*} {F : Type*} [MeasurableSpace X] {μ : MeasureTheory.Measure X} [NormedAddCommGroup F] [InnerProductSpace ℝ F] [CompleteSpace F] {s : Set X} {f : X → F} : μ s ≠ ⊤ → MeasureTheory.IntegrableOn f s μ → ∀ {c : F}, MeasureTheory.IntegrableOn (fun x ↦ ‖f x - c‖ ^ 2) s μ → ∫ (x : X) in s, ‖f x - c‖ ^ 2 ∂μ = ∫ (x : X) in s, ‖f x - ⨍ (y : X) in s, f y ∂μ‖ ^ 2 ∂μ + μ.real s * ‖⨍ (y : X) in s, f y ∂μ - c‖ ^ 2"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"24ea7f0526da88fb9e06cf771ca0ffde7829051ad00d94a86bbaee8e04b4184f","prominence":"central","quote":{"exact":"The second moment of a random variable attains the minimum value when"},"quote_capped":true,"section":["Properties","Characteristic property"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The second moment of a random variable attains the minimum value when taken around the first moment (i.e., mean) of the random variable, i.e. ⁠ a r g m i n m E ( ( X − m ) 2 ) = E ( X ) {\\displaystyle \\mathrm {argmin} _{m}\\,\\mathrm {E} \\left(\\left(X-m\\right)^{2}\\right)=\\mathrm {E} (X)} ⁠.","segments":[{"text":"The second moment of a random variable attains the minimum value when taken around the first moment (i.e., mean) of the random variable, i.e. ⁠ "},{"tex":"\\mathrm {argmin} _{m}\\,\\mathrm {E} \\left(\\left(X-m\\right)^{2}\\right)=\\mathrm {E} (X)"},{"text":" ⁠."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":0,"queries":3,"sha256":"dec10cbee413c0ec63e7b89e2527a07299bb2ce488cedaafec5016e58c03ae42"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #2460e8d5","item":"In-text #2460e8d5","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"fbc57f79551b35fc3d2a37507de2f9273fad213c77f8d7565286ea6182880fcb","prominence":"central","quote":{"exact":"Conversely, if a continuous function φ {\\displaystyle \\varphi } satisfies a r"},"quote_capped":true,"section":["Properties","Characteristic property"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Conversely, if a continuous function φ {\\displaystyle \\varphi } satisfies a r g m i n m E ( φ ( X − m ) ) = E ( X ) {\\displaystyle \\mathrm {argmin} _{m}\\,\\mathrm {E} (\\varphi (X-m))=\\mathrm {E} (X)} for all random variables X, then it is necessarily of the form ⁠ φ ( x ) = a x 2 + b {\\displaystyle \\varphi (x)=ax^{2}+b} ⁠, where a > 0.","segments":[{"text":"Conversely, if a continuous function "},{"tex":"\\varphi"},{"text":" satisfies "},{"tex":"\\mathrm {argmin} _{m}\\,\\mathrm {E} (\\varphi (X-m))=\\mathrm {E} (X)"},{"text":" for all random variables X, then it is necessarily of the form ⁠ "},{"tex":"\\varphi (x)=ax^{2}+b"},{"text":" ⁠, where a > 0."}]},"unresolved":null},{"absence":null,"basis":"a7643305ccf2ac5eae8af6492ce4c0485ee4ae1280b33504a651b39fc80fe855","coverage":null,"id":"enwiki-32344-1368633150::In-text #9100b9c1","item":"In-text #9100b9c1","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"medium","declaration":"TauCeti.setIntegral_norm_sub_setAverage_sq_le_setIntegral_norm_sub_sq","end_line":278,"library":"tauceti","line":274,"location_key":"a7643305ccf2ac5eae8af6492ce4c0485ee4ae1280b33504a651b39fc80fe855","module":"TauCeti.MeasureTheory.Integral.Average","note":"It carries the minimising property over to vector-valued variables but says nothing about which functions of the deviation have that property.","pair_key":"9ba6c486268bb291936d2a5df4a74bde0378b47813d9741ad253db41249637d0","path":"TauCeti/MeasureTheory/Integral/Average.lean","proof_status":"proved","rank":1,"relation":"hasPart","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.setIntegral_norm_sub_setAverage_sq_le_setIntegral_norm_sub_sq {X : Type*} {F : Type*} [MeasurableSpace X] {μ : MeasureTheory.Measure X} [NormedAddCommGroup F] [InnerProductSpace ℝ F] [CompleteSpace F] {s : Set X} {f : X → F} : μ s ≠ ⊤ → MeasureTheory.IntegrableOn f s μ → ∀ {c : F}, MeasureTheory.IntegrableOn (fun x ↦ ‖f x - c‖ ^ 2) s μ → ∫ (x : X) in s, ‖f x - ⨍ (y : X) in s, f y ∂μ‖ ^ 2 ∂μ ≤ ∫ (x : X) in s, ‖f x - c‖ ^ 2 ∂μ"},"statement":false},{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.setIntegral_norm_sub_sq_eq_setIntegral_norm_sub_setAverage_sq_add","end_line":270,"library":"tauceti","line":247,"location_key":"e31824f6bea00179590294fb9b8984f03b87059781540628606f6bc6ca3e0aae","module":"TauCeti.MeasureTheory.Integral.Average","note":"It decomposes the vector-valued mean square deviation about a point, which supports the minimising half without asserting it.","pair_key":"5919be55af2643934db93c85c84d49b6013d74985fe3f8d58f3c68c32c1cde58","path":"TauCeti/MeasureTheory/Integral/Average.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.setIntegral_norm_sub_sq_eq_setIntegral_norm_sub_setAverage_sq_add {X : Type*} {F : Type*} [MeasurableSpace X] {μ : MeasureTheory.Measure X} [NormedAddCommGroup F] [InnerProductSpace ℝ F] [CompleteSpace F] {s : Set X} {f : X → F} : μ s ≠ ⊤ → MeasureTheory.IntegrableOn f s μ → ∀ {c : F}, MeasureTheory.IntegrableOn (fun x ↦ ‖f x - c‖ ^ 2) s μ → ∫ (x : X) in s, ‖f x - c‖ ^ 2 ∂μ = ∫ (x : X) in s, ‖f x - ⨍ (y : X) in s, f y ∂μ‖ ^ 2 ∂μ + μ.real s * ‖⨍ (y : X) in s, f y ∂μ - c‖ ^ 2"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"39153407a7814ebd2d400fb8130fe4a7baab0965c489acf1aac4f1f65037a8fe","prominence":"supporting","quote":{"exact":"This also holds in the multidimensional case."},"quote_capped":false,"section":["Properties","Characteristic property"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"This also holds in the multidimensional case.","segments":[{"text":"This also holds in the multidimensional case."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":0,"queries":4,"sha256":"0c8169303e84f8313ae28203658bfde9e8bae235d0b54e08a3f934d4357a7520"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #00beca13","item":"In-text #00beca13","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"f79d4c15a7c169e6434537122372feb805aa398fc50e305e0fcab26ae144cccd","prominence":"supporting","quote":{"exact":"In the dice example the standard deviation is √2.9 ≈ 1.7, slightly"},"quote_capped":true,"section":["Properties","Units of measurement"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"In the dice example the standard deviation is √2.9 ≈ 1.7, slightly larger than the expected absolute deviation of 1.5.","segments":[{"text":"In the dice example the standard deviation is √2.9 ≈ 1.7, slightly larger than the expected absolute deviation of 1.5."}]},"unresolved":null},{"absence":null,"basis":"f335ff3b53b6697e56aea79ffe78e6dd5a47d1335bb6bd44b74dd68800704721","coverage":null,"id":"enwiki-32344-1368633150::In-text #b22f503e","item":"In-text #b22f503e","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_add_const","end_line":241,"library":"mathlib","line":230,"location_key":"f335ff3b53b6697e56aea79ffe78e6dd5a47d1335bb6bd44b74dd68800704721","module":"Mathlib.Probability.Moments.Variance","note":"Lean carries the measurability side condition explicitly, which every random variable satisfies.","pair_key":"f656aaa07267e548f9f470771a7efeac66b5284589d95fe3992863b58499b738","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"exactMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_add_const {Ω : Type*} {mΩ : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] : MeasureTheory.AEStronglyMeasurable X μ → ∀ (c : ℝ), ProbabilityTheory.variance (fun ω ↦ X ω + c) μ = ProbabilityTheory.variance X μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_const_add","end_line":245,"library":"mathlib","line":243,"location_key":"f3fb89cd445010e6fa137dee3d07b251c426ea6a2975204f4d91fb65a12254eb","module":"Mathlib.Probability.Moments.Variance","note":"This is the version with the constant written on the left of the sum.","pair_key":"ad53d07d419a3824af8ed4abe0fb2610fca6ba4d68bca1ee661f131a96367f64","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"exactMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_const_add {Ω : Type*} {mΩ : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] : MeasureTheory.AEStronglyMeasurable X μ → ∀ (c : ℝ), ProbabilityTheory.variance (fun ω ↦ c + X ω) μ = ProbabilityTheory.variance X μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"93bb7f8e0191f2e82d0b7e99bf23b0814c1c9488aec4be9d439f286c5c3c099c","prominence":"central","quote":{"exact":"Variance is invariant with respect to changes in a location parameter. That"},"quote_capped":true,"section":["Propagation","Addition and multiplication by a constant"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Variance is invariant with respect to changes in a location parameter. That is, if a constant is added to all values of the variable, the variance is unchanged: Var ⁡ ( X + a ) = Var ⁡ ( X ) . {\\displaystyle \\operatorname {Var} (X+a)=\\operatorname {Var} (X).}","segments":[{"text":"Variance is invariant with respect to changes in a location parameter. That is, if a constant is added to all values of the variable, the variance is unchanged: "},{"display":true,"tex":"\\operatorname {Var} (X+a)=\\operatorname {Var} (X)."}]},"unresolved":null},{"absence":null,"basis":"5eac3303a45256fc1ab64f1021e69d2d2eef91ce435df4483d39dfbab10030dd","coverage":null,"id":"enwiki-32344-1368633150::In-text #b3fd8420","item":"In-text #b3fd8420","kind":"theorem","locations":[{"challenge":"downgraded","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_const_mul","end_line":210,"library":"mathlib","line":207,"location_key":"5eac3303a45256fc1ab64f1021e69d2d2eef91ce435df4483d39dfbab10030dd","module":"Mathlib.Probability.Moments.Variance","note":null,"pair_key":"b8d74b8cd78e5d002cc69bd0857775107004660463ec21832eefe0e23d6b628d","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_const_mul {Ω : Type*} {mΩ : MeasurableSpace Ω} (c : ℝ) (X : Ω → ℝ) (μ : MeasureTheory.Measure Ω) : ProbabilityTheory.variance (fun ω ↦ c * X ω) μ = c ^ 2 * ProbabilityTheory.variance X μ"},"statement":false},{"challenge":"downgraded","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_mul_const","end_line":214,"library":"mathlib","line":212,"location_key":"d94240cd10ab8f7cf015b031b6066719912b32be961b65b8848f97423baff240","module":"Mathlib.Probability.Moments.Variance","note":"This is the version with the scalar written on the right.","pair_key":"2fe1d9db792a9f2eef315c2bc09541850f1499d5098d20349f52e1d583e2cabc","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_mul_const {Ω : Type*} {mΩ : MeasurableSpace Ω} (c : ℝ) (X : Ω → ℝ) (μ : MeasureTheory.Measure Ω) : ProbabilityTheory.variance (fun ω ↦ X ω * c) μ = ProbabilityTheory.variance X μ * c ^ 2"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"e868026181a860a04d3ceead686ad1d84fe9e9ea8c389d0955f0ef1394ac9851","prominence":"central","quote":{"exact":"If all values are scaled by a constant, the variance is scaled"},"quote_capped":true,"section":["Propagation","Addition and multiplication by a constant"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"If all values are scaled by a constant, the variance is scaled by the square of that constant: Var ⁡ ( a X ) = a 2 Var ⁡ ( X ) . {\\displaystyle \\operatorname {Var} (aX)=a^{2}\\operatorname {Var} (X).}","segments":[{"text":"If all values are scaled by a constant, the variance is scaled by the square of that constant: "},{"display":true,"tex":"\\operatorname {Var} (aX)=a^{2}\\operatorname {Var} (X)."}]},"unresolved":null},{"absence":null,"basis":"72b8c44f55d45bf2f4e16d73c3ad06e2f26d8339baffd32b3230bade8b713beb","coverage":null,"id":"enwiki-32344-1368633150::In-text #2e9af556","item":"In-text #2e9af556","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_add","end_line":270,"library":"mathlib","line":263,"location_key":"72b8c44f55d45bf2f4e16d73c3ad06e2f26d8339baffd32b3230bade8b713beb","module":"Mathlib.Probability.Moments.Variance","note":"The coefficients a and b of the passage are not carried; the declaration is the case where both equal one.","pair_key":"50f82d14c665d9c9a28ef571ff6acf37d1a20b0d6c1adcbe64ae86080325f257","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"hasPart","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_add {Ω : Type*} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] : MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.variance (X + Y) μ = ProbabilityTheory.variance X μ + 2 * ProbabilityTheory.covariance X Y μ + ProbabilityTheory.variance Y μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_sub","end_line":279,"library":"mathlib","line":276,"location_key":"ce1a2b09302e9ae0530fec0e6938cb5867662617600270a0da6400d0e3b2871e","module":"Mathlib.Probability.Moments.Variance","note":"As with the sum, the passage's coefficients a and b are specialised to one.","pair_key":"54999551626f8af5236d3bda77e2d7c91e3dccb8e99373f998ee90112a35f35c","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"hasPart","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sub {Ω : Type*} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] : MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.variance (X - Y) μ = ProbabilityTheory.variance X μ - 2 * ProbabilityTheory.covariance X Y μ + ProbabilityTheory.variance Y μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"feeac1d102eaad592f16f4cccf84fdf4a17ad9f30a0bcec5ed881a7922e7b28d","prominence":"central","quote":{"exact":"The variance of a sum of two random variables is given by"},"quote_capped":true,"section":["Propagation","Addition and multiplication by a constant"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The variance of a sum of two random variables is given by Var ⁡ ( a X + b Y ) = a 2 Var ⁡ ( X ) + b 2 Var ⁡ ( Y ) + 2 a b Cov ⁡ ( X , Y ) Var ⁡ ( a X − b Y ) = a 2 Var ⁡ ( X ) + b 2 Var ⁡ ( Y ) − 2 a b Cov ⁡ ( X , Y ) {\\displaystyle {\\begin{aligned}\\operatorname {Var} (aX+bY)&=a^{2}\\operatorname {Var} (X)+b^{2}\\operatorname {Var} (Y)+2ab\\,\\operatorname {Cov} (X,Y)\\\\[1ex]\\operatorname {Var} (aX-bY)&=a^{2}\\operatorname {Var} (X)+b^{2}\\operatorname {Var} (Y)-2ab\\,\\operatorname {Cov} (X,Y)\\end{aligned}}} where Cov ⁡ ( X , Y ) {\\displaystyle \\operatorname {Cov} (X,Y)} is the covariance.","segments":[{"text":"The variance of a sum of two random variables is given by "},{"display":true,"tex":"\\begin{aligned}\\operatorname {Var} (aX+bY)&=a^{2}\\operatorname {Var} (X)+b^{2}\\operatorname {Var} (Y)+2ab\\,\\operatorname {Cov} (X,Y)\\\\[1ex]\\operatorname {Var} (aX-bY)&=a^{2}\\operatorname {Var} (X)+b^{2}\\operatorname {Var} (Y)-2ab\\,\\operatorname {Cov} (X,Y)\\end{aligned}"},{"text":" where "},{"tex":"\\operatorname {Cov} (X,Y)"},{"text":" is the covariance."}]},"unresolved":null},{"absence":null,"basis":"61be3108ce194e42b076b4ce61a75726232ad0ae78e15e645feb993a09e4b8b1","coverage":null,"id":"enwiki-32344-1368633150::In-text #9d11e7e1","item":"In-text #9d11e7e1","kind":"theorem","locations":[{"challenge":"downgraded","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_sum","end_line":297,"library":"mathlib","line":295,"location_key":"61be3108ce194e42b076b4ce61a75726232ad0ae78e15e645feb993a09e4b8b1","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib writes the right-hand side as one double sum over all index pairs, leaving each equal-index entry as the covariance of a variable with itself rather than listing those entries apart as variances.","pair_key":"f7911479fbb8958c363e0422e485409358267af5d7d5a0d9db04b3dffbdf25e7","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] [Fintype ι] : (∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) → ProbabilityTheory.variance (∑ i, X i) μ = ∑ i, ∑ j, ProbabilityTheory.covariance (X i) (X j) μ"},"statement":false},{"challenge":"downgraded","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_sum'","end_line":293,"library":"mathlib","line":287,"location_key":"fa0b93ddae51904fea2afa9ee8d6606e96d5bd73909586b711a2a213a638d44e","module":"Mathlib.Probability.Moments.Variance","note":"This is the same identity indexed by an explicit finite set, with the right-hand side kept as a single sum over all pairs of indices.","pair_key":"4b9e36bfda0a200306383e6f984adb58180943bc9a91a14ff91375b24a2258f7","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sum' {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {s : Finset ι} {X : ι → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] : (∀ i ∈ s, MeasureTheory.MemLp (X i) 2 μ) → ProbabilityTheory.variance (∑ i ∈ s, X i) μ = ∑ i ∈ s, ∑ j ∈ s, ProbabilityTheory.covariance (X i) (X j) μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"c4bb0f65eb35d30842d5fb0e3ee914ec64b429914af7986d008983ae9541cf2a","prominence":"central","quote":{"exact":"In general, for the sum of N {\\displaystyle N} random variables ⁠"},"quote_capped":true,"section":["Propagation","Linear combinations"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":" see also general Bienaymé's identity.","segments":[{"text":" see also general Bienaymé's identity."}]},"layer":"In general, for the sum of N {\\displaystyle N} random variables ⁠ { X 1 , … , X N } {\\displaystyle \\{X_{1},\\dots ,X_{N}\\}} ⁠, the variance becomes: Var ⁡ ( ∑ i = 1 N X i ) = ∑ i , j = 1 N Cov ⁡ ( X i , X j ) = ∑ i = 1 N Var ⁡ ( X i ) + ∑ i , j = 1 , i ≠ j N Cov ⁡ ( X i , X j ) , {\\displaystyle \\operatorname {Var} \\left(\\sum _{i=1}^{N}X_{i}\\right)=\\sum _{i,j=1}^{N}\\operatorname {Cov} (X_{i},X_{j})=\\sum _{i=1}^{N}\\operatorname {Var} (X_{i})+\\sum _{i,j=1,i\\neq j}^{N}\\operatorname {Cov} (X_{i},X_{j}),}","segments":[{"text":"In general, for the sum of "},{"tex":"N"},{"text":" random variables ⁠ "},{"tex":"\\{X_{1},\\dots ,X_{N}\\}"},{"text":" ⁠, the variance becomes: "},{"display":true,"tex":"\\operatorname {Var} \\left(\\sum _{i=1}^{N}X_{i}\\right)=\\sum _{i,j=1}^{N}\\operatorname {Cov} (X_{i},X_{j})=\\sum _{i=1}^{N}\\operatorname {Var} (X_{i})+\\sum _{i,j=1,i\\neq j}^{N}\\operatorname {Cov} (X_{i},X_{j}),"}]},"unresolved":null},{"absence":null,"basis":"f9d4c6fcdc6e5183f6da0101a48bde5187c9c5aa3dd1cb28264589de41628799","coverage":null,"id":"enwiki-32344-1368633150::In-text #35eee6ba","item":"In-text #35eee6ba","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_add","end_line":270,"library":"mathlib","line":263,"location_key":"f9d4c6fcdc6e5183f6da0101a48bde5187c9c5aa3dd1cb28264589de41628799","module":"Mathlib.Probability.Moments.Variance","note":"The declaration carries no scalar coefficients, so it realises the passage only at the two-variable unweighted instance.","pair_key":"be430a28da3bc4f0c8cb54890ee4d8b4e9d6cc96f1b5aeb53aa93fc9e3b8bda8","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_add {Ω : Type*} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] : MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.variance (X + Y) μ = ProbabilityTheory.variance X μ + 2 * ProbabilityTheory.covariance X Y μ + ProbabilityTheory.variance Y μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_smul","end_line":218,"library":"mathlib","line":216,"location_key":"cf147f59a49f3bce02ca29f3cd9347e9d48dae8cee8d4dbc334e6325c36574fe","module":"Mathlib.Probability.Moments.Variance","note":"With a single index the cross terms of the passage's formula are absent and only the squared-coefficient term remains.","pair_key":"545b918c3ab779fab272888a2d797a6d6943c83300af8061bc07894fd3dd895f","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_smul {Ω : Type*} {mΩ : MeasurableSpace Ω} (c : ℝ) (X : Ω → ℝ) (μ : MeasureTheory.Measure Ω) : ProbabilityTheory.variance (c • X) μ = c ^ 2 * ProbabilityTheory.variance X μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_sum","end_line":297,"library":"mathlib","line":295,"location_key":"f8d26a1fa707160650ad93a280a72260c9c46d0562e630cb8fb5ce2174d24217","module":"Mathlib.Probability.Moments.Variance","note":"Reaching the passage from it still needs the lemmas that pull a scalar out of each covariance argument.","pair_key":"4b052063cd0bbb65bfe52798f2d430df707149338b96f16b6449f6962fadb865","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":3,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] [Fintype ι] : (∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) → ProbabilityTheory.variance (∑ i, X i) μ = ∑ i, ∑ j, ProbabilityTheory.covariance (X i) (X j) μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.covarianceBilin_apply_pi","end_line":179,"library":"mathlib","line":163,"location_key":"d81180c69caff525126052d663567faaac2cd994fcae3d43e73f6e5177238c4d","module":"Mathlib.Probability.Moments.CovarianceBilin","note":"Its left-hand side is the bilinear covariance form, and identifying that with the variance of the linear combination needs a second lemma.","pair_key":"9ae3b0845e5b2bd144b3c11fdbbc3ad7aa4af2d333715c35749d25b38e7a5c3e","path":"Mathlib/Probability/Moments/CovarianceBilin.lean","proof_status":"proved","rank":4,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.covarianceBilin_apply_pi {ι : Type*} {Ω : Type*} [Fintype ι] {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] {X : ι → Ω → ℝ} : (∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) → ∀ (x y : EuclideanSpace ℝ ι), ((ProbabilityTheory.covarianceBilin (MeasureTheory.Measure.map (fun ω ↦ WithLp.toLp 2 fun x ↦ X x ω) μ)) x) y = ∑ i, ∑ j, x.ofLp i * y.ofLp j * ProbabilityTheory.covariance (X i) (X j) μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"962c6875b56c5e478d03b986ecd8ac309a6fc84f8371f542638c7a054d245e2f","prominence":"central","quote":{"exact":"These results lead to the variance of a linear combination as: Var"},"quote_capped":true,"section":["Propagation","Linear combinations"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"These results lead to the variance of a linear combination as: Var ⁡ ( ∑ i = 1 N a i X i ) = ∑ i , j = 1 N a i a j Cov ⁡ ( X i , X j ) = ∑ i = 1 N a i 2 Var ⁡ ( X i ) + ∑ i ≠ j a i a j Cov ⁡ ( X i , X j ) = ∑ i = 1 N a i 2 Var ⁡ ( X i ) + 2 ∑ 1 ≤ i < j ≤ N a i a j Cov ⁡ ( X i , X j ) . {\\displaystyle {\\begin{aligned}\\operatorname {Var} \\left(\\sum _{i=1}^{N}a_{i}X_{i}\\right)&=\\sum _{i,j=1}^{N}a_{i}a_{j}\\operatorname {Cov} (X_{i},X_{j})\\\\&=\\sum _{i=1}^{N}a_{i}^{2}\\operatorname {Var} (X_{i})+\\sum _{i\\neq j}a_{i}a_{j}\\operatorname {Cov} (X_{i},X_{j})\\\\&=\\sum _{i=1}^{N}a_{i}^{2}\\operatorname {Var} (X_{i})+2\\sum _{1\\leq i<j\\leq N}a_{i}a_{j}\\operatorname {Cov} (X_{i},X_{j}).\\end{aligned}}}","segments":[{"text":"These results lead to the variance of a linear combination as: "},{"display":true,"tex":"\\begin{aligned}\\operatorname {Var} \\left(\\sum _{i=1}^{N}a_{i}X_{i}\\right)&=\\sum _{i,j=1}^{N}a_{i}a_{j}\\operatorname {Cov} (X_{i},X_{j})\\\\&=\\sum _{i=1}^{N}a_{i}^{2}\\operatorname {Var} (X_{i})+\\sum _{i\\neq j}a_{i}a_{j}\\operatorname {Cov} (X_{i},X_{j})\\\\&=\\sum _{i=1}^{N}a_{i}^{2}\\operatorname {Var} (X_{i})+2\\sum _{1\\leq i<j\\leq N}a_{i}a_{j}\\operatorname {Cov} (X_{i},X_{j}).\\end{aligned}"}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":0,"queries":3,"sha256":"f3d32b85272e15c7a8a670406234bfd2d95f591e96ce7c7510dbe3ad566afd10"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #f6eeee72","item":"In-text #f6eeee72","kind":"definition","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"70985ea19a875290fd77a822b39739cfa7c996accde24872031cc322ef9593be","prominence":"central","quote":{"exact":"If the random variables X 1 , … , X N {\\displaystyle"},"quote_capped":true,"section":["Propagation","Linear combinations"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"If the random variables X 1 , … , X N {\\displaystyle X_{1},\\dots ,X_{N}} are such that Cov ⁡ ( X i , X j ) = 0 , ∀ ( i ≠ j ) , {\\displaystyle \\operatorname {Cov} (X_{i},X_{j})=0\\ ,\\ \\forall \\ (i\\neq j),} then they are said to be uncorrelated.","segments":[{"text":"If the random variables "},{"tex":"X_{1},\\dots ,X_{N}"},{"text":" are such that "},{"display":true,"tex":"\\operatorname {Cov} (X_{i},X_{j})=0\\ ,\\ \\forall \\ (i\\neq j),"},{"text":" then they are said to be uncorrelated."}]},"unresolved":null},{"absence":null,"basis":"e74e1aa884826bfec43472119148dd2ff699639b1aad491fe45e512f5867fc92","coverage":null,"id":"enwiki-32344-1368633150::In-text #4faa7b5c","item":"In-text #4faa7b5c","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.IndepFun.variance_sum","end_line":447,"library":"mathlib","line":424,"location_key":"e74e1aa884826bfec43472119148dd2ff699639b1aad491fe45e512f5867fc92","module":"Mathlib.Probability.Moments.Variance","note":"Independence in pairs is assumed rather than the vanishing of the covariances, so only those of the passage's families that are independent are reached.","pair_key":"5e97ccc00259dcd65ec0c631cd8b85b2f20947ab8371019f1426371b6d2e6b53","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} {s : Finset ι} : (∀ i ∈ s, MeasureTheory.MemLp (X i) 2 μ) → ((↑s).Pairwise fun i j ↦ ProbabilityTheory.IndepFun (X i) (X j) μ) → ProbabilityTheory.variance (∑ i ∈ s, X i) μ = ∑ i ∈ s, ProbabilityTheory.variance (X i) μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_sum_pi","end_line":462,"library":"mathlib","line":449,"location_key":"3dfb335e590248f6e4d5482839fbce197337d4c97e7f21829a718bf69dda2fb3","module":"Mathlib.Probability.Moments.Variance","note":"The family is built as coordinates of a product measure, which is one way the passage's hypothesis can be met.","pair_key":"bd46b11f08c3e6edfda8d95d34d96b26d968fc5ff033687d5e3c53f1ef6b47ef","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sum_pi {ι : Type*} [Fintype ι] {Ω : ι → Type*} {mΩ : (i : ι) → MeasurableSpace (Ω i)} {μ : (i : ι) → MeasureTheory.Measure (Ω i)} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {X : (i : ι) → Ω i → ℝ} : (∀ (i : ι), MeasureTheory.MemLp (X i) 2 (μ i)) → ProbabilityTheory.variance (∑ i, fun ω ↦ X i (ω i)) (MeasureTheory.Measure.pi μ) = ∑ i, ProbabilityTheory.variance (X i) (μ i)"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_sum","end_line":297,"library":"mathlib","line":295,"location_key":"6b80a9cbe17dbbed2534c9e9dba01f0709fe70d8437ddf3c2c305d78d16d4732","module":"Mathlib.Probability.Moments.Variance","note":"Dropping the distinct-index covariances from its right-hand side under the passage's hypothesis needs further lemmas about finite sums.","pair_key":"7a69c6866f1851e456d6e9e8d0d1a169d2817a11c7043a8e3d7a37da993b109b","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":3,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] [Fintype ι] : (∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) → ProbabilityTheory.variance (∑ i, X i) μ = ∑ i, ∑ j, ProbabilityTheory.covariance (X i) (X j) μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"167cdaf9140194b516c8284b1bb566fc03a97665e2247a4470b1bad60e6d8809","prominence":"central","quote":{"exact":"It follows immediately from the expression given earlier that if the random"},"quote_capped":true,"section":["Propagation","Linear combinations"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"It follows immediately from the expression given earlier that if the random variables X 1 , … , X N {\\displaystyle X_{1},\\dots ,X_{N}} are uncorrelated, then the variance of their sum is equal to the sum of their variances, or, expressed symbolically: Var ⁡ ( ∑ i = 1 N X i ) = ∑ i = 1 N Var ⁡ ( X i ) . {\\displaystyle \\operatorname {Var} \\left(\\sum _{i=1}^{N}X_{i}\\right)=\\sum _{i=1}^{N}\\operatorname {Var} (X_{i}).}","segments":[{"text":"It follows immediately from the expression given earlier that if the random variables "},{"tex":"X_{1},\\dots ,X_{N}"},{"text":" are uncorrelated, then the variance of their sum is equal to the sum of their variances, or, expressed symbolically: "},{"display":true,"tex":"\\operatorname {Var} \\left(\\sum _{i=1}^{N}X_{i}\\right)=\\sum _{i=1}^{N}\\operatorname {Var} (X_{i})."}]},"unresolved":null},{"absence":null,"basis":"b7ee6e7e9ef86716b2d57fbe32c624177bb2d41de3e522afcf0c3ee97dc53895","coverage":null,"id":"enwiki-32344-1368633150::In-text #b946fca5","item":"In-text #b946fca5","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.IndepFun.covariance_eq_zero","end_line":332,"library":"mathlib","line":324,"location_key":"b7ee6e7e9ef86716b2d57fbe32c624177bb2d41de3e522afcf0c3ee97dc53895","module":"Mathlib.Probability.Moments.Covariance","note":"Where the second moments are infinite Lean's covariance already returns its default value zero, so the integrability hypotheses leave out only instances in which the conclusion is automatic.","pair_key":"d831d3a5ea5d9344e2e49cea97a849615edd782f065d5e0ae32c1e33b8edd7ec","path":"Mathlib/Probability/Moments/Covariance.lean","proof_status":"proved","rank":1,"relation":"exactMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.covariance_eq_zero {Ω : Type*} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} : ProbabilityTheory.IndepFun X Y μ → MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.covariance X Y μ = 0"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"af657e54b9e3591aacd60a1f9b720816f76c7d78bf7b04c8ad3ac0b8bf3c583a","prominence":"supporting","quote":{"exact":"independent random variables are always uncorrelated"},"quote_capped":false,"section":["Propagation","Linear combinations"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":" (see Covariance § Uncorrelatedness and independence), the equation above holds in particular when the random variables X 1 , … , X n {\\displaystyle X_{1},\\dots ,X_{n}} are independent.","segments":[{"text":" (see Covariance § Uncorrelatedness and independence), the equation above holds in particular when the random variables "},{"tex":"X_{1},\\dots ,X_{n}"},{"text":" are independent."}]},"before":{"layer":"Since ","segments":[{"text":"Since "}]},"layer":"independent random variables are always uncorrelated","segments":[{"text":"independent random variables are always uncorrelated"}]},"unresolved":null},{"absence":null,"basis":"f8b36e7ea7b7eddd26aed378a1b4e400cfd48b7c079c4ecb0d9b5336ff93be13","coverage":null,"id":"enwiki-32344-1368633150::In-text #05714c47","item":"In-text #05714c47","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.IndepFun.variance_sum","end_line":447,"library":"mathlib","line":424,"location_key":"f8b36e7ea7b7eddd26aed378a1b4e400cfd48b7c079c4ecb0d9b5336ff93be13","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib asks that the variables be independent two at a time, so families independent as a whole are covered by it.","pair_key":"da1dde212f683ba749a50a085de36e80ab2cf0595872ce9071a476fb0e374015","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} {s : Finset ι} : (∀ i ∈ s, MeasureTheory.MemLp (X i) 2 μ) → ((↑s).Pairwise fun i j ↦ ProbabilityTheory.IndepFun (X i) (X j) μ) → ProbabilityTheory.variance (∑ i ∈ s, X i) μ = ∑ i ∈ s, ProbabilityTheory.variance (X i) μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_sum_pi","end_line":462,"library":"mathlib","line":449,"location_key":"bc25e2053dd91030397b0ad5104edcd2f0f77a39dbc7fa5e11a5ef11c491cbff","module":"Mathlib.Probability.Moments.Variance","note":"Independence here is built into the product construction rather than assumed of an arbitrary family.","pair_key":"cafb4a8981272301a27b2b8e65265413c734d9d85052cc04accf1ac6e1e1169c","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sum_pi {ι : Type*} [Fintype ι] {Ω : ι → Type*} {mΩ : (i : ι) → MeasurableSpace (Ω i)} {μ : (i : ι) → MeasureTheory.Measure (Ω i)} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {X : (i : ι) → Ω i → ℝ} : (∀ (i : ι), MeasureTheory.MemLp (X i) 2 (μ i)) → ProbabilityTheory.variance (∑ i, fun ω ↦ X i (ω i)) (MeasureTheory.Measure.pi μ) = ∑ i, ProbabilityTheory.variance (X i) (μ i)"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"8b3f6831b8b68c079d9ec7e490bf8b0bf7c7c17c8c518f0bc3e0240fcb5cdeeb","prominence":"central","quote":{"exact":"the equation above holds in particular when the random variables X 1"},"quote_capped":true,"section":["Propagation","Linear combinations"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"Since independent random variables are always uncorrelated (see Covariance § Uncorrelatedness and independence), ","segments":[{"text":"Since independent random variables are always uncorrelated (see Covariance § Uncorrelatedness and independence), "}]},"layer":"the equation above holds in particular when the random variables X 1 , … , X n {\\displaystyle X_{1},\\dots ,X_{n}} are independent.","segments":[{"text":"the equation above holds in particular when the random variables "},{"tex":"X_{1},\\dots ,X_{n}"},{"text":" are independent."}]},"unresolved":null},{"absence":null,"basis":"fbb2f3004f5f9c77a09b9e037413f26987e3a54848f3039833650dcd2e5a10de","coverage":null,"id":"enwiki-32344-1368633150::In-text #4f33f1e4","item":"In-text #4f33f1e4","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.IndepFun.variance_sum","end_line":447,"library":"mathlib","line":424,"location_key":"fbb2f3004f5f9c77a09b9e037413f26987e3a54848f3039833650dcd2e5a10de","module":"Mathlib.Probability.Moments.Variance","note":"It carries the sufficiency half only; nothing in it bears on the passage's claim that independence is not needed.","pair_key":"475d75eea7d7dad9c4d790bf4fbf03903ff452d2b3925353d2fbcf051c53dab4","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"hasPart","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} {s : Finset ι} : (∀ i ∈ s, MeasureTheory.MemLp (X i) 2 μ) → ((↑s).Pairwise fun i j ↦ ProbabilityTheory.IndepFun (X i) (X j) μ) → ProbabilityTheory.variance (∑ i ∈ s, X i) μ = ∑ i ∈ s, ProbabilityTheory.variance (X i) μ"},"statement":false},{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_sum","end_line":297,"library":"mathlib","line":295,"location_key":"d47c1ca6772c0c3117a4c373c4b19762cdac555097e46332f31f19490cabfd84","module":"Mathlib.Probability.Moments.Variance","note":"It shows what the variance of a sum depends on but asserts nothing about whether independence can be dispensed with.","pair_key":"d9a68df623eae5782b0d5d3a54f3432e0d570c8b8af443af17d7d5c2c50537b7","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] [Fintype ι] : (∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) → ProbabilityTheory.variance (∑ i, X i) μ = ∑ i, ∑ j, ProbabilityTheory.covariance (X i) (X j) μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"b910cd7c25d9b4b1b4dfbe76b2abb91201ff7e44347426a8e2ed6bb91d5537d6","prominence":"supporting","quote":{"exact":"Thus, independence is sufficient but not necessary for the variance of the"},"quote_capped":true,"section":["Propagation","Linear combinations"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Thus, independence is sufficient but not necessary for the variance of the sum to equal the sum of the variances.","segments":[{"text":"Thus, independence is sufficient but not necessary for the variance of the sum to equal the sum of the variances."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":0,"queries":3,"sha256":"0045ef8bced3bcd580936dcbdb78c48cedfbd050db22a8e9258a2b59e7b2dc0b"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #b65b4d69","item":"In-text #b65b4d69","kind":"notation","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"a7ee96ade84fa3025e47da554e4f6f7e7ac8d60c640516420f2caabae92addba","prominence":"supporting","quote":{"exact":"Define X {\\displaystyle X} as a column vector of n {\\displaystyle n}"},"quote_capped":true,"section":["Propagation","Linear combinations","Matrix notation for the variance of a linear combination"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Define X {\\displaystyle X} as a column vector of n {\\displaystyle n} random variables ⁠ X 1 , … , X n {\\displaystyle X_{1},\\ldots ,X_{n}} ⁠, and c {\\displaystyle c} as a column vector of n {\\displaystyle n} scalars ⁠ c 1 , … , c n {\\displaystyle c_{1},\\ldots ,c_{n}} ⁠.","segments":[{"text":"Define "},{"tex":"X"},{"text":" as a column vector of "},{"tex":"n"},{"text":" random variables ⁠ "},{"tex":"X_{1},\\ldots ,X_{n}"},{"text":" ⁠, and "},{"tex":"c"},{"text":" as a column vector of "},{"tex":"n"},{"text":" scalars ⁠ "},{"tex":"c_{1},\\ldots ,c_{n}"},{"text":" ⁠."}]},"unresolved":null},{"absence":null,"basis":"65063c70220ae3afb9feaaf9767a331eb8c99c8e851cc0b66c6f9425ca7cf578","coverage":null,"id":"enwiki-32344-1368633150::In-text #2e6e84ea","item":"In-text #2e6e84ea","kind":"definition","locations":[{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"dotProduct","end_line":77,"library":"mathlib","line":76,"location_key":"65063c70220ae3afb9feaaf9767a331eb8c99c8e851cc0b66c6f9425ca7cf578","module":"Mathlib.Data.Matrix.Mul","note":"This is the defining formula of the object the passage introduces, taken at the reals.","pair_key":"8f303c725857420d8cb0a627a88bdb402a764f61c03a0903e63d94b5676bfe42","path":"Mathlib/Data/Matrix/Mul.lean","proof_status":"definition","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def dotProduct {m : Type*} {α : Type v} [Fintype m] [Mul α] [AddCommMonoid α] : (m → α) → (m → α) → α"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"a04de09e8d45ad2a93bab8da6dcda95e5dc512345b04ef62e36b182a1a53b3c3","prominence":"supporting","quote":{"exact":"Therefore, c T X {\\displaystyle c^{\\mathsf {T}}X} is a linear combination of"},"quote_capped":true,"section":["Propagation","Linear combinations","Matrix notation for the variance of a linear combination"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Therefore, c T X {\\displaystyle c^{\\mathsf {T}}X} is a linear combination of these random variables, where c T {\\displaystyle c^{\\mathsf {T}}} denotes the transpose of ⁠ c {\\displaystyle c} ⁠.","segments":[{"text":"Therefore, "},{"tex":"c^{\\mathsf {T}}X"},{"text":" is a linear combination of these random variables, where "},{"tex":"c^{\\mathsf {T}}"},{"text":" denotes the transpose of ⁠ "},{"tex":"c"},{"text":" ⁠."}]},"unresolved":null},{"absence":null,"basis":"44289c62894760be6597f4fdb0e5b432e02893ae6a8bea725738497dd83e5d31","coverage":null,"id":"enwiki-32344-1368633150::In-text #55465b3c","item":"In-text #55465b3c","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.covarianceBilin_self","end_line":81,"library":"mathlib","line":78,"location_key":"44289c62894760be6597f4fdb0e5b432e02893ae6a8bea725738497dd83e5d31","module":"Mathlib.Probability.Moments.CovarianceBilin","note":"Mathlib carries the covariance of a random vector as a bilinear form on the space instead of as a table of entries, and the two hold the same data.","pair_key":"3f20b50c92d430a2da0f07bfe267a7d72ac34b2abfcc1c4601b52f08cda37688","path":"Mathlib/Probability/Moments/CovarianceBilin.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.covarianceBilin_self {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [MeasurableSpace E] [BorelSpace E] {μ : MeasureTheory.Measure E} [CompleteSpace E] [MeasureTheory.IsFiniteMeasure μ] : MeasureTheory.MemLp id 2 μ → ∀ (x : E), ((ProbabilityTheory.covarianceBilin μ) x) x = ProbabilityTheory.variance (fun u ↦ Inner.inner ℝ x u) μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.covarianceBilinDual_self_eq_variance","end_line":357,"library":"mathlib","line":355,"location_key":"03cf7f7521a423ddcd7ca4c247625de4120a13a1102e14f347852d0bae766ed3","module":"Mathlib.Probability.Moments.CovarianceBilinDual","note":"Here the covariance is carried as a form on continuous functionals rather than on vectors, which for the passage's finite-dimensional vector is the same pairing.","pair_key":"914d303df5779d1ef818dc9159adf7bd1dcf17759ea6520fa9a7706065249ac6","path":"Mathlib/Probability/Moments/CovarianceBilinDual.lean","proof_status":"proved","rank":2,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.covarianceBilinDual_self_eq_variance {E : Type*} [NormedAddCommGroup E] {mE : MeasurableSpace E} {μ : MeasureTheory.Measure E} [NormedSpace ℝ E] [BorelSpace E] [CompleteSpace E] [MeasureTheory.IsFiniteMeasure μ] : MeasureTheory.MemLp id 2 μ → ∀ (L : StrongDual ℝ E), ((ProbabilityTheory.covarianceBilinDual μ) L) L = ProbabilityTheory.variance (⇑L) μ"},"statement":false},{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.covarianceBilin_eq_covMatrix","end_line":96,"library":"tauceti","line":73,"location_key":"9add72b00548ce74654ab17abd9d50cce99a263296f3e072ca74fc78474a4640","module":"TauCeti.Probability.Moments.Covariance","note":"It identifies the entrywise covariance matrix with the covariance form but asserts nothing about any variance.","pair_key":"3dc2a22b5a20d6ac4e46f7b5d379c0c9908febcc1c8c64c0c069c361bb23abf0","path":"TauCeti/Probability/Moments/Covariance.lean","proof_status":"proved","rank":3,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.covarianceBilin_eq_covMatrix {ι : Type*} [Fintype ι] [DecidableEq ι] (μ : MeasureTheory.Measure (EuclideanSpace ℝ ι)) [MeasureTheory.IsFiniteMeasure μ] : MeasureTheory.MemLp id 2 μ → ∀ (x y : EuclideanSpace ℝ ι), ((ProbabilityTheory.covarianceBilin μ) x) y = Inner.inner ℝ x ((Matrix.toEuclideanLin (TauCeti.covMatrix μ)) y)"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"7cc3e8787a7ca1c164c8d0fc9b820838bcbfb151c9900f42dd982b151212aa42","prominence":"central","quote":{"exact":"Also let Σ {\\displaystyle \\Sigma } be the covariance matrix of ⁠"},"quote_capped":true,"section":["Propagation","Linear combinations","Matrix notation for the variance of a linear combination"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Also let Σ {\\displaystyle \\Sigma } be the covariance matrix of ⁠ X {\\displaystyle X} ⁠. The variance of c T X {\\displaystyle c^{\\mathsf {T}}X} is then given by:[4] Var ⁡ ( c T X ) = c T Σ c . {\\displaystyle \\operatorname {Var} \\left(c^{\\mathsf {T}}X\\right)=c^{\\mathsf {T}}\\Sigma c.}","segments":[{"text":"Also let "},{"tex":"\\Sigma"},{"text":" be the covariance matrix of ⁠ "},{"tex":"X"},{"text":" ⁠. The variance of "},{"tex":"c^{\\mathsf {T}}X"},{"text":" is then given by:"},{"ref":"[4]"},{"text":" "},{"display":true,"tex":"\\operatorname {Var} \\left(c^{\\mathsf {T}}X\\right)=c^{\\mathsf {T}}\\Sigma c."}]},"unresolved":null},{"absence":null,"basis":"02efb0cff43e583363d2c68fb7454d85aa91d231887f62a8b7efd533d6dbfb40","coverage":null,"id":"enwiki-32344-1368633150::In-text #6ed542da","item":"In-text #6ed542da","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"low","declaration":"ProbabilityTheory.covarianceBilin_self","end_line":81,"library":"mathlib","line":78,"location_key":"02efb0cff43e583363d2c68fb7454d85aa91d231887f62a8b7efd533d6dbfb40","module":"Mathlib.Probability.Moments.CovarianceBilin","note":"Taking the scalar out of both slots of the covariance form is immediate from its bundled bilinear type, and the form carries the same data as the matrix the passage writes.","pair_key":"63855028679d84ca315438a7ea40dff9cba27bf4bcdeba9813d9cea145472982","path":"Mathlib/Probability/Moments/CovarianceBilin.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.covarianceBilin_self {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [MeasurableSpace E] [BorelSpace E] {μ : MeasureTheory.Measure E} [CompleteSpace E] [MeasureTheory.IsFiniteMeasure μ] : MeasureTheory.MemLp id 2 μ → ∀ (x : E), ((ProbabilityTheory.covarianceBilin μ) x) x = ProbabilityTheory.variance (fun u ↦ Inner.inner ℝ x u) μ"},"statement":false},{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_smul","end_line":218,"library":"mathlib","line":216,"location_key":"da8bb2ef536367a0d087e860a64478adf353929ed9db2ababde8105bfad13a43","module":"Mathlib.Probability.Moments.Variance","note":"It supplies only the square of the scalar coming out of a variance and says nothing about the covariance matrix.","pair_key":"b541ba7f0afbdfba16c22e276aeaf1a91cba7187080822a59ef56f71aaf83133","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_smul {Ω : Type*} {mΩ : MeasurableSpace Ω} (c : ℝ) (X : Ω → ℝ) (μ : MeasureTheory.Measure Ω) : ProbabilityTheory.variance (c • X) μ = c ^ 2 * ProbabilityTheory.variance X μ"},"statement":false},{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.covarianceBilin_eq_covMatrix","end_line":96,"library":"tauceti","line":73,"location_key":"6732eaab86e889c7593fe42eab9686d4334d877e399c0d3d531c6e91bc734e9a","module":"TauCeti.Probability.Moments.Covariance","note":"It matches the covariance form with the matrix of entries and makes no claim about the sample mean.","pair_key":"e30d24b4cee4419c690989b4ac32a85460be819811ec54d2c047ef5321683d4f","path":"TauCeti/Probability/Moments/Covariance.lean","proof_status":"proved","rank":3,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.covarianceBilin_eq_covMatrix {ι : Type*} [Fintype ι] [DecidableEq ι] (μ : MeasureTheory.Measure (EuclideanSpace ℝ ι)) [MeasureTheory.IsFiniteMeasure μ] : MeasureTheory.MemLp id 2 μ → ∀ (x y : EuclideanSpace ℝ ι), ((ProbabilityTheory.covarianceBilin μ) x) y = Inner.inner ℝ x ((Matrix.toEuclideanLin (TauCeti.covMatrix μ)) y)"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"0f60a12bb6810a2bc49f542c4d52edd39b5897e1a794fb55a58be9de876ee204","prominence":"supporting","quote":{"exact":"This implies that the variance of the mean can be written as"},"quote_capped":true,"section":["Propagation","Linear combinations","Matrix notation for the variance of a linear combination"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"This implies that the variance of the mean can be written as (with a column vector of ones) Var ⁡ ( x ¯ ) = Var ⁡ ( 1 n 1 ′ X ) = 1 n 2 1 ′ Σ 1. {\\displaystyle \\operatorname {Var} \\left({\\bar {x}}\\right)=\\operatorname {Var} \\left({\\frac {1}{n}}1'X\\right)={\\frac {1}{n^{2}}}1'\\Sigma 1.}","segments":[{"text":"This implies that the variance of the mean can be written as (with a column vector of ones) "},{"display":true,"tex":"\\operatorname {Var} \\left({\\bar {x}}\\right)=\\operatorname {Var} \\left({\\frac {1}{n}}1'X\\right)={\\frac {1}{n^{2}}}1'\\Sigma 1."}]},"unresolved":null},{"absence":null,"basis":"094c1f0872f8c9d39362d98a991b41822e6ce129a632a7051eb16b26dc9586c6","coverage":null,"id":"enwiki-32344-1368633150::In-text #9947b977","item":"In-text #9947b977","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.IndepFun.variance_sum","end_line":447,"library":"mathlib","line":424,"location_key":"094c1f0872f8c9d39362d98a991b41822e6ce129a632a7051eb16b26dc9586c6","module":"Mathlib.Probability.Moments.Variance","note":"Independence is the stronger hypothesis the article itself flags, so this covers the independent families among the passage's uncorrelated ones.","pair_key":"f5a0d302c3aa88a4b71a988170f730213246f8c4fb3e79fdd4db5fadb011bdc1","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} {s : Finset ι} : (∀ i ∈ s, MeasureTheory.MemLp (X i) 2 μ) → ((↑s).Pairwise fun i j ↦ ProbabilityTheory.IndepFun (X i) (X j) μ) → ProbabilityTheory.variance (∑ i ∈ s, X i) μ = ∑ i ∈ s, ProbabilityTheory.variance (X i) μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_sum","end_line":297,"library":"mathlib","line":295,"location_key":"ae7b26dd9184af5b6edfda3c91901d36cdb208251980f9983ffc613196422634","module":"Mathlib.Probability.Moments.Variance","note":"It writes the variance of a sum as the full double sum of covariances, and reaching the passage from it needs the lemma identifying a self covariance with a variance together with a split of the double sum.","pair_key":"f9b4d0133b84ffff7b660ac7c178801d729ab796c23df86ae99fbd09f4880dfa","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] [Fintype ι] : (∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) → ProbabilityTheory.variance (∑ i, X i) μ = ∑ i, ∑ j, ProbabilityTheory.covariance (X i) (X j) μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_sub","end_line":279,"library":"mathlib","line":276,"location_key":"88041b7b86093e255e2689b21a9e475a9759fd23a92be1bfd3afb36481610638","module":"Mathlib.Probability.Moments.Variance","note":"It keeps the cross term for a difference of two variables and says nothing about a family of n summands.","pair_key":"01654be39a4b846da7abb775b296f964dc54dc42392939eb170901f512602a2b","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":3,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sub {Ω : Type*} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] : MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.variance (X - Y) μ = ProbabilityTheory.variance X μ - 2 * ProbabilityTheory.covariance X Y μ + ProbabilityTheory.variance Y μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"111c864ddfe00061c03f5f8679ccf1944fb6cd5bde61a3ea0033a2b3cb6c6e2a","prominence":"central","quote":{"exact":"One reason for the use of the variance in preference to other"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of uncorrelated variables"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"One reason for the use of the variance in preference to other measures of dispersion is that the variance of the sum (or the difference) of uncorrelated random variables is the sum of their variances: Var ⁡ ( ∑ i = 1 n X i ) = ∑ i = 1 n Var ⁡ ( X i ) . {\\displaystyle \\operatorname {Var} \\left(\\sum _{i=1}^{n}X_{i}\\right)=\\sum _{i=1}^{n}\\operatorname {Var} (X_{i}).}","segments":[{"text":"One reason for the use of the variance in preference to other measures of dispersion is that the variance of the sum (or the difference) of uncorrelated random variables is the sum of their variances: "},{"display":true,"tex":"\\operatorname {Var} \\left(\\sum _{i=1}^{n}X_{i}\\right)=\\sum _{i=1}^{n}\\operatorname {Var} (X_{i})."}]},"unresolved":null},{"absence":null,"basis":"7778e779b4db9c42366d4067fb35ddd96792bdfb8a633aad2f15bc5a990b6213","coverage":null,"id":"enwiki-32344-1368633150::In-text #4e5f9a56","item":"In-text #4e5f9a56","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.IndepFun.variance_sum","end_line":447,"library":"mathlib","line":424,"location_key":"7778e779b4db9c42366d4067fb35ddd96792bdfb8a633aad2f15bc5a990b6213","module":"Mathlib.Probability.Moments.Variance","note":"No declaration in the universe states the additivity under the weaker vanishing-covariance hypothesis the passage singles out.","pair_key":"b86effa5abf7be40629870991de51322d7e78e01c7c844b41cfad81cd80240b2","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} {s : Finset ι} : (∀ i ∈ s, MeasureTheory.MemLp (X i) 2 μ) → ((↑s).Pairwise fun i j ↦ ProbabilityTheory.IndepFun (X i) (X j) μ) → ProbabilityTheory.variance (∑ i ∈ s, X i) μ = ∑ i ∈ s, ProbabilityTheory.variance (X i) μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_sum","end_line":297,"library":"mathlib","line":295,"location_key":"181cacd71cea01029be7add0cbfefb05b02b4dd695eeea86c4c2b82014629b93","module":"Mathlib.Probability.Moments.Variance","note":"It states the double-sum identity without any hypothesis on the summands, so it makes no claim about which condition suffices.","pair_key":"32e83878475e4c07e4555c8e3b8f9c9e24ddb9d645bf910318c11ea8b5664f5c","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] [Fintype ι] : (∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) → ProbabilityTheory.variance (∑ i, X i) μ = ∑ i, ∑ j, ProbabilityTheory.covariance (X i) (X j) μ"},"statement":false},{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.IndepFun.covariance_eq_zero","end_line":332,"library":"mathlib","line":324,"location_key":"9b4bfe82558c7201dcad4c98a7efdc9d794f1664c8da3a09381a2a98adec057c","module":"Mathlib.Probability.Moments.Covariance","note":"It states that independence forces the covariance to vanish, which is the implication behind the passage's contrast rather than the additivity claim.","pair_key":"74da1d28cadcf02ca3095f0e9ec535d7cecd5672cb5039570e5ad7cb3f4e1e22","path":"Mathlib/Probability/Moments/Covariance.lean","proof_status":"proved","rank":3,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.covariance_eq_zero {Ω : Type*} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} : ProbabilityTheory.IndepFun X Y μ → MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.covariance X Y μ = 0"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"accc441ef22b3ed4306075f4969535498742fea13b26311787545e37fa420cb5","prominence":"supporting","quote":{"exact":"It is often made with the stronger condition that the variables are"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of uncorrelated variables"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"It is often made with the stronger condition that the variables are independent, but being uncorrelated suffices.","segments":[{"text":"It is often made with the stronger condition that the variables are independent, but being uncorrelated suffices."}]},"unresolved":null},{"absence":null,"basis":"0cc6bd07615f7e661e47fe275490ddb0d2a6b94104d43259ee7e4a4f22e05eef","coverage":null,"id":"enwiki-32344-1368633150::In-text #aa89745a","item":"In-text #aa89745a","kind":"theorem","locations":[{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"medium","declaration":"TauCeti.integral_finiteMean_sub_sq","end_line":116,"library":"tauceti","line":111,"location_key":"0cc6bd07615f7e661e47fe275490ddb0d2a6b94104d43259ee7e4a4f22e05eef","module":"TauCeti.Probability.Moments.SampleMean","note":"It assumes independence and one shared mean, neither of which the passage requires.","pair_key":"d32dedd3845e4e77a8d86db7f19166a2704c481b17b493e08f7b92694c33c98c","path":"TauCeti/Probability/Moments/SampleMean.lean","proof_status":"proved","rank":1,"relation":"narrowMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.integral_finiteMean_sub_sq {Ω : Type*} {ι : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [Fintype ι] [Nonempty ι] [MeasureTheory.IsProbabilityMeasure μ] {Z : ι → Ω → ℝ} {c : ℝ} : (∀ (i : ι), MeasureTheory.MemLp (Z i) 2 μ) → (∀ (i : ι), ∫ (x : Ω), Z i x ∂μ = c) → (Pairwise fun i j ↦ ProbabilityTheory.IndepFun (Z i) (Z j) μ) → ∫ (ω : Ω), ((TauCeti.finiteMean ℝ fun x ↦ Z x ω) - c) ^ 2 ∂μ = (↑(Fintype.card ι) ^ 2)⁻¹ * ∑ i, ∫ (ω : Ω), (Z i ω - c) ^ 2 ∂μ"},"statement":false},{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"medium","declaration":"TauCeti.integral_norm_finiteMean_sub_sq_of_forall_eq","end_line":129,"library":"tauceti","line":121,"location_key":"44855c0a7205d249dc403fb8c338f433d2b18e75c247b94e5cffb1d7c5a5df30","module":"TauCeti.Probability.Moments.SampleMean","note":"It is stated for an arbitrary inner product space and assumes independence and a shared mean on top of the passage's hypotheses.","pair_key":"b7e4b6cdfcb80642933466adc8e5ae06bf850f803f736386934df7d28905f172","path":"TauCeti/Probability/Moments/SampleMean.lean","proof_status":"proved","rank":2,"relation":"narrowMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":true,"text":"theorem TauCeti.integral_norm_finiteMean_sub_sq_of_forall_eq {Ω : Type*} {ι : Type*} {E : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} […] {X : ι → Ω → E} {m : E} : (∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) → (∀ (i : ι), ∫ (x : Ω), X i x ∂μ = m) → (Pairwise fun i j ↦ ProbabilityTheory.IndepFun (X i) (X j) μ) → ∀ {γ : ℝ}, (∀ (i : ι), ∫ (ω : Ω), ‖X i ω - m‖ ^ 2 ∂μ = γ) → ∫ (ω : Ω), ‖(TauCeti.finiteMean ℝ fun x ↦ X x ω) - m‖ ^ 2 ∂μ = γ / ↑(Fintype.card ι)","type":"∀ {Ω : Type u_1} {ι : Type u_2} {E : Type u_3} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] [CompleteSpace E] [inst_3 : MeasurableSpace E] [BorelSpace E] [inst_5 : Fintype ι] [Nonempty ι] [MeasureTheory.IsProbabilityMeasure μ] {X : ι → Ω → E} {m : E}, (∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) → (∀ (i : ι), ∫ (x : Ω), X i x ∂μ = m) → (Pairwise fun i j ↦ ProbabilityTheory.IndepFun (X i) (X j) μ) → ∀ {γ : ℝ}, (∀ (i : ι), ∫ (ω : Ω), ‖X i ω - m‖ ^ 2 ∂μ = γ) → ∫ (ω : Ω), ‖(TauCeti.finiteMean ℝ fun x ↦ X x ω) - m‖ ^ 2 ∂μ = γ / ↑(Fintype.card ι)"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.IndepFun.variance_sum","end_line":447,"library":"mathlib","line":424,"location_key":"c745cb7ce485f863cd67c6acb6826f2d39162ccb785b7178bbeb092c35521d28","module":"Mathlib.Probability.Moments.Variance","note":"It gives the variance of the sum and leaves the division by the sample size to a separate scaling lemma.","pair_key":"f471f5524f2476ca6bb7a639cb8f5198d3ed31909734027273dc94ccfb0af862","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":3,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} {s : Finset ι} : (∀ i ∈ s, MeasureTheory.MemLp (X i) 2 μ) → ((↑s).Pairwise fun i j ↦ ProbabilityTheory.IndepFun (X i) (X j) μ) → ProbabilityTheory.variance (∑ i ∈ s, X i) μ = ∑ i ∈ s, ProbabilityTheory.variance (X i) μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"13cd820cfb6022215a8477f27fa5fb4ba515d1622a7f1ebbe005b7b048a9d60d","prominence":"central","quote":{"exact":"if all the variables have the same variance σ2, then, since division"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of uncorrelated variables"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"So ","segments":[{"text":"So "}]},"layer":"if all the variables have the same variance σ2, then, since division by n is a linear transformation, this formula immediately implies that the variance of their mean is Var ⁡ ( X ¯ ) = Var ⁡ ( 1 n ∑ i = 1 n X i ) = 1 n 2 ∑ i = 1 n Var ⁡ ( X i ) = 1 n 2 n σ 2 = σ 2 n . {\\displaystyle \\operatorname {Var} \\left({\\overline {X}}\\right)=\\operatorname {Var} \\left({\\frac {1}{n}}\\sum _{i=1}^{n}X_{i}\\right)={\\frac {1}{n^{2}}}\\sum _{i=1}^{n}\\operatorname {Var} \\left(X_{i}\\right)={\\frac {1}{n^{2}}}n\\sigma ^{2}={\\frac {\\sigma ^{2}}{n}}.}","segments":[{"text":"if all the variables have the same variance σ2, then, since division by n is a linear transformation, this formula immediately implies that the variance of their mean is "},{"display":true,"tex":"\\operatorname {Var} \\left({\\overline {X}}\\right)=\\operatorname {Var} \\left({\\frac {1}{n}}\\sum _{i=1}^{n}X_{i}\\right)={\\frac {1}{n^{2}}}\\sum _{i=1}^{n}\\operatorname {Var} \\left(X_{i}\\right)={\\frac {1}{n^{2}}}n\\sigma ^{2}={\\frac {\\sigma ^{2}}{n}}."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":3,"queries":4,"sha256":"7f680a29d743ead724fd4490f56686e4491ae2b68bfa117241e1b174d0d131e0"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #989c8df9","item":"In-text #989c8df9","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"6e35928f70e4910488cc96e35f312dcf476b5ed5a323482f8356aed5ffe2182d","prominence":"supporting","quote":{"exact":"That is, the variance of the mean decreases when n increases."},"quote_capped":false,"section":["Propagation","Sum of variables","Sum of uncorrelated variables"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"That is, the variance of the mean decreases when n increases.","segments":[{"text":"That is, the variance of the mean decreases when n increases."}]},"unresolved":null},{"absence":null,"basis":"51b2eaff4aef55fd9f922cf9426337cc8e8faa217829d05b0a019ee565db8b45","coverage":null,"id":"enwiki-32344-1368633150::In-text #6cbc57ce","item":"In-text #6cbc57ce","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_add","end_line":270,"library":"mathlib","line":263,"location_key":"51b2eaff4aef55fd9f922cf9426337cc8e8faa217829d05b0a019ee565db8b45","module":"Mathlib.Probability.Moments.Variance","note":"The declaration keeps the cross term, so it also covers correlated pairs that the passage leaves aside.","pair_key":"9e5f937c5352c9cfd63a4158a14f8dcf67b3cfb4843462bd45bfbbac47580d4c","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_add {Ω : Type*} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] : MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.variance (X + Y) μ = ProbabilityTheory.variance X μ + 2 * ProbabilityTheory.covariance X Y μ + ProbabilityTheory.variance Y μ"},"statement":false},{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.IndepFun.variance_add","end_line":415,"library":"mathlib","line":408,"location_key":"8081eb1752eefe2a2f3eec3c4957efc324268b662484b8c3b62555c24a53bf68","module":"Mathlib.Probability.Moments.Variance","note":"Independence is stronger than the passage's uncorrelatedness, so this covers only part of the passage's pairs.","pair_key":"ec95249bce0e947e7d4011aa0ed08215ac826042bb92067f02f50f628b2c776d","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.variance_add {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X Y : Ω → ℝ} : MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.IndepFun X Y μ → ProbabilityTheory.variance (X + Y) μ = ProbabilityTheory.variance X μ + ProbabilityTheory.variance Y μ"},"statement":false},{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.IndepFun.covariance_eq_zero","end_line":332,"library":"mathlib","line":324,"location_key":"27bece26c388f574389261e64dcadda61e50a698f44b122d3cdd20764ad44c41","module":"Mathlib.Probability.Moments.Covariance","note":"It states only that independence makes the covariance vanish and mentions no variance of a sum.","pair_key":"9aad8bcbba840b65da0b9a089e89f8fbeef3b8758070c9f5b1722a4013ccc343","path":"Mathlib/Probability/Moments/Covariance.lean","proof_status":"proved","rank":3,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.covariance_eq_zero {Ω : Type*} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} : ProbabilityTheory.IndepFun X Y μ → MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.covariance X Y μ = 0"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"14dc8ac6fdf71cdb81e70bae19e6b373bd8fc8afb1b97c7c60e9b47eff2dc63b","prominence":"supporting","quote":{"exact":"To prove the initial statement, it suffices to show that Var ⁡"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of uncorrelated variables"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"To prove the initial statement, it suffices to show that Var ⁡ ( X + Y ) = Var ⁡ ( X ) + Var ⁡ ( Y ) . {\\displaystyle \\operatorname {Var} (X+Y)=\\operatorname {Var} (X)+\\operatorname {Var} (Y).}","segments":[{"text":"To prove the initial statement, it suffices to show that "},{"display":true,"tex":"\\operatorname {Var} (X+Y)=\\operatorname {Var} (X)+\\operatorname {Var} (Y)."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":0,"queries":5,"sha256":"f5ade24d70cb25f4f16714f7704eee54655b2101410adaad2746c2fecdcf6935"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #5a816df5","item":"In-text #5a816df5","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_eq_sub","end_line":228,"library":"mathlib","line":226,"location_key":"99efbe331480852337ce26ffe74f2ef10ba96c118bea0f74ab62e3a7321be530","module":"Mathlib.Probability.Moments.Variance","note":"It gives the second-moment form of the variance of one variable, so at X + Y it yields only the first step of the displayed chain; the expanded right-hand side needs linearity of the integral, a named lemma.","pair_key":"8a1a9851dd3a4e58ea944ed654a271a2794f8e5bab567f2aa316078f01c70080","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_sub {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {X : Ω → ℝ} : MeasureTheory.MemLp X 2 μ → ProbabilityTheory.variance X μ = ∫ (x : Ω), (X ^ 2) x ∂μ - (∫ (x : Ω), X x ∂μ) ^ 2"},"statement":false},{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_add","end_line":270,"library":"mathlib","line":263,"location_key":"98b349cef31d4348e6e145c2fd2ca2a5f453f685d05df69e8c429bb9db71302c","module":"Mathlib.Probability.Moments.Variance","note":"It expands the variance of a sum into variances and a covariance, not into the second moments and the squared mean of the sum that the passage displays.","pair_key":"f309adb6aab3fcc97c5e0e3ccd613d39e423252494730d33c365c991c4240e30","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_add {Ω : Type*} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] : MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.variance (X + Y) μ = ProbabilityTheory.variance X μ + 2 * ProbabilityTheory.covariance X Y μ + ProbabilityTheory.variance Y μ"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"6b67dbd71825c5044088aae443e55e66ad968f07d4ea266473033026f464e467","prominence":"supporting","quote":{"exact":"Starting with the definition, Var ⁡ ( X + Y ) ="},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of uncorrelated variables"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Starting with the definition, Var ⁡ ( X + Y ) = E ⁡ [ ( X + Y ) 2 ] − ( E ⁡ [ X + Y ] ) 2 = E ⁡ [ X 2 + 2 X Y + Y 2 ] − ( E ⁡ [ X ] + E ⁡ [ Y ] ) 2 . {\\displaystyle {\\begin{aligned}\\operatorname {Var} (X+Y)&=\\operatorname {E} \\left[(X+Y)^{2}\\right]-(\\operatorname {E} [X+Y])^{2}\\\\[5pt]&=\\operatorname {E} \\left[X^{2}+2XY+Y^{2}\\right]-(\\operatorname {E} [X]+\\operatorname {E} [Y])^{2}.\\end{aligned}}}","segments":[{"text":"Starting with the definition, "},{"display":true,"tex":"\\begin{aligned}\\operatorname {Var} (X+Y)&=\\operatorname {E} \\left[(X+Y)^{2}\\right]-(\\operatorname {E} [X+Y])^{2}\\\\[5pt]&=\\operatorname {E} \\left[X^{2}+2XY+Y^{2}\\right]-(\\operatorname {E} [X]+\\operatorname {E} [Y])^{2}.\\end{aligned}"}]},"unresolved":null},{"absence":null,"basis":"69ecc65ecb56fa5600892f6cc43b85a8890451e786514c5ec2964428295096d1","coverage":null,"id":"enwiki-32344-1368633150::In-text #5e380d5f","item":"In-text #5e380d5f","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_add","end_line":270,"library":"mathlib","line":263,"location_key":"69ecc65ecb56fa5600892f6cc43b85a8890451e786514c5ec2964428295096d1","module":"Mathlib.Probability.Moments.Variance","note":null,"pair_key":"018b5004a2f2cd4e67890d6a54504e34390be37bc5d7081fc2583216e3cec96e","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_add {Ω : Type*} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] : MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.variance (X + Y) μ = ProbabilityTheory.variance X μ + 2 * ProbabilityTheory.covariance X Y μ + ProbabilityTheory.variance Y μ"},"statement":false},{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.IndepFun.variance_add","end_line":415,"library":"mathlib","line":408,"location_key":"6882313442d9c88059391b71e8f1327d1f71d9e069114d399146ece640e121ca","module":"Mathlib.Probability.Moments.Variance","note":"Independence is a hypothesis the passage does not require, and independent variables are among the uncorrelated ones the passage speaks of, so this is the passage on those variables (PD4).","pair_key":"1e21338a3a7c5ca8eaff6b0a262758fc8635eee09b7e6eaf14fa40569d2bf3d3","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.variance_add {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X Y : Ω → ℝ} : MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.IndepFun X Y μ → ProbabilityTheory.variance (X + Y) μ = ProbabilityTheory.variance X μ + ProbabilityTheory.variance Y μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"ff978d4e27ca53ac86a0f8b8b2062ba69f134c3c8a8e923a5ce4f980128cf437","prominence":"supporting","quote":{"exact":"Using the linearity of the expectation operator and the assumption of independence"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of uncorrelated variables"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Using the linearity of the expectation operator and the assumption of independence (or uncorrelatedness) of X and Y, this further simplifies as follows: Var ⁡ ( X + Y ) = E ⁡ [ X 2 ] + 2 E ⁡ [ X Y ] + E ⁡ [ Y 2 ] − ( E ⁡ [ X ] 2 + 2 E ⁡ [ X ] E ⁡ [ Y ] + E ⁡ [ Y ] 2 ) = E ⁡ [ X 2 ] + E ⁡ [ Y 2 ] − E ⁡ [ X ] 2 − E ⁡ [ Y ] 2 = Var ⁡ ( X ) + Var ⁡ ( Y ) . {\\displaystyle {\\begin{aligned}\\operatorname {Var} (X+Y)&=\\operatorname {E} {\\left[X^{2}\\right]}+2\\operatorname {E} [XY]+\\operatorname {E} {\\left[Y^{2}\\right]}-\\left(\\operatorname {E} [X]^{2}+2\\operatorname {E} [X]\\operatorname {E} [Y]+\\operatorname {E} [Y]^{2}\\right)\\\\[5pt]&=\\operatorname {E} \\left[X^{2}\\right]+\\operatorname {E} \\left[Y^{2}\\right]-\\operatorname {E} [X]^{2}-\\operatorname {E} [Y]^{2}\\\\[5pt]&=\\operatorname {Var} (X)+\\operatorname {Var} (Y).\\end{aligned}}}","segments":[{"text":"Using the linearity of the expectation operator and the assumption of independence (or uncorrelatedness) of X and Y, this further simplifies as follows: "},{"display":true,"tex":"\\begin{aligned}\\operatorname {Var} (X+Y)&=\\operatorname {E} {\\left[X^{2}\\right]}+2\\operatorname {E} [XY]+\\operatorname {E} {\\left[Y^{2}\\right]}-\\left(\\operatorname {E} [X]^{2}+2\\operatorname {E} [X]\\operatorname {E} [Y]+\\operatorname {E} [Y]^{2}\\right)\\\\[5pt]&=\\operatorname {E} \\left[X^{2}\\right]+\\operatorname {E} \\left[Y^{2}\\right]-\\operatorname {E} [X]^{2}-\\operatorname {E} [Y]^{2}\\\\[5pt]&=\\operatorname {Var} (X)+\\operatorname {Var} (Y).\\end{aligned}"}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":0,"queries":5,"sha256":"d64061e2859493e455c83b27d89d20208f83f5426676164d0338f8bbb7caf818"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #7c773034","item":"In-text #7c773034","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_sum","end_line":297,"library":"mathlib","line":295,"location_key":"20bbe2fcbd1e6e3fe8483b7e532758c2c02f22bcb59e4969150c505e1c8c165e","module":"Mathlib.Probability.Moments.Variance","note":"It gives the variance of the sum as the double sum of covariances over all ordered pairs; rearranging that into variances plus twice the pairs with i < j needs the symmetry of the covariance and the self-covariance lemma, so it does not reach the passage's end-to-end equation on its own.","pair_key":"5ab935e98570583efd96f655375bf339c58e8dcc8976a0f2e8c60132469194c3","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] [Fintype ι] : (∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) → ProbabilityTheory.variance (∑ i, X i) μ = ∑ i, ∑ j, ProbabilityTheory.covariance (X i) (X j) μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.covariance_comm","end_line":78,"library":"mathlib","line":75,"location_key":"9fd687b6f477246920336a5983ebb926d4796742e6876a64358d300a148c45e8","module":"Mathlib.Probability.Moments.Covariance","note":"It is the symmetry of the covariance, one of the two named facts that would be needed to fold the ordered pairs into the pairs with i < j.","pair_key":"7426fc62fad6896f254fe369d266028981bdb9d80afdf5b2cbb2640e0a7ea189","path":"Mathlib/Probability/Moments/Covariance.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.covariance_comm {Ω : Type*} {mΩ : MeasurableSpace Ω} (X Y : Ω → ℝ) {μ : MeasureTheory.Measure Ω} : ProbabilityTheory.covariance X Y μ = ProbabilityTheory.covariance Y X μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.covariance_self","end_line":201,"library":"mathlib","line":197,"location_key":"e2f173b1086765cb3a37c944aaf947338788e8e419a9639188c7ad32eaef54b1","module":"Mathlib.Probability.Moments.Variance","note":"It identifies the diagonal terms of the double sum with variances, the other named fact the rearrangement would need.","pair_key":"29d3a16da89a9a603956ee14a708621f96158de9cfb346bbcdc87c0fb5205fd1","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":3,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.covariance_self {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X : Ω → ℝ} : AEMeasurable X μ → ProbabilityTheory.covariance X X μ = ProbabilityTheory.variance X μ"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"8ba77c65da25876dac39d909b119591b2749714935671f100bd2d37ebe856da8","prominence":"central","quote":{"exact":"In general, the variance of the sum of n variables is the"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of correlated variables","Sum of correlated variables with fixed sample size"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":" (Note: The second equality comes from the fact that Cov(Xi, Xi) = Var(Xi).)","segments":[{"text":" (Note: The second equality comes from the fact that Cov(Xi, Xi) = Var(Xi).)"}]},"layer":"In general, the variance of the sum of n variables is the sum of their covariances: Var ⁡ ( ∑ i = 1 n X i ) = ∑ i = 1 n ∑ j = 1 n Cov ⁡ ( X i , X j ) = ∑ i = 1 n Var ⁡ ( X i ) + 2 ∑ 1 ≤ i < j ≤ n Cov ⁡ ( X i , X j ) . {\\displaystyle \\operatorname {Var} \\left(\\sum _{i=1}^{n}X_{i}\\right)=\\sum _{i=1}^{n}\\sum _{j=1}^{n}\\operatorname {Cov} \\left(X_{i},X_{j}\\right)=\\sum _{i=1}^{n}\\operatorname {Var} \\left(X_{i}\\right)+2\\sum _{1\\leq i<j\\leq n}\\operatorname {Cov} \\left(X_{i},X_{j}\\right).}","segments":[{"text":"In general, the variance of the sum of n variables is the sum of their covariances: "},{"display":true,"tex":"\\operatorname {Var} \\left(\\sum _{i=1}^{n}X_{i}\\right)=\\sum _{i=1}^{n}\\sum _{j=1}^{n}\\operatorname {Cov} \\left(X_{i},X_{j}\\right)=\\sum _{i=1}^{n}\\operatorname {Var} \\left(X_{i}\\right)+2\\sum _{1\\leq i<j\\leq n}\\operatorname {Cov} \\left(X_{i},X_{j}\\right)."}]},"unresolved":null},{"absence":null,"basis":"29b7029527fe9cb587da2ed51fb76565ca5ce749e47cb317b858d6ea0aa0f2c6","coverage":null,"id":"enwiki-32344-1368633150::In-text #2252377b","item":"In-text #2252377b","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.covariance_self","end_line":201,"library":"mathlib","line":197,"location_key":"29b7029527fe9cb587da2ed51fb76565ca5ce749e47cb317b858d6ea0aa0f2c6","module":"Mathlib.Probability.Moments.Variance","note":null,"pair_key":"45f38645c10aae1df5e1aa3ed8b707189a47772979b4afd1385086b6f885d30d","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"exactMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.covariance_self {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X : Ω → ℝ} : AEMeasurable X μ → ProbabilityTheory.covariance X X μ = ProbabilityTheory.variance X μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"51038a59405c1a6ee5697df140730860366508f14860de70a100f5d8abf2bc6b","prominence":"supporting","quote":{"exact":"(Note: The second equality comes from the fact that Cov(Xi, Xi) ="},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of correlated variables","Sum of correlated variables with fixed sample size"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"Var ⁡ ( ∑ i = 1 n X i ) = ∑ i = 1 n ∑ j = 1 n Cov ⁡ ( X i , X j ) = ∑ i = 1 n Var ⁡ ( X i ) + 2 ∑ 1 ≤ i < j ≤ n Cov ⁡ ( X i , X j ) . {\\displaystyle \\operatorname {Var} \\left(\\sum _{i=1}^{n}X_{i}\\right)=\\sum _{i=1}^{n}\\sum _{j=1}^{n}\\operatorname {Cov} \\left(X_{i},X_{j}\\right)=\\sum _{i=1}^{n}\\operatorname {Var} \\left(X_{i}\\right)+2\\sum _{1\\leq i<j\\leq n}\\operatorname {Cov} \\left(X_{i},X_{j}\\right).} ","segments":[{"display":true,"tex":"\\operatorname {Var} \\left(\\sum _{i=1}^{n}X_{i}\\right)=\\sum _{i=1}^{n}\\sum _{j=1}^{n}\\operatorname {Cov} \\left(X_{i},X_{j}\\right)=\\sum _{i=1}^{n}\\operatorname {Var} \\left(X_{i}\\right)+2\\sum _{1\\leq i<j\\leq n}\\operatorname {Cov} \\left(X_{i},X_{j}\\right)."},{"text":" "}],"trimmed":true},"layer":"(Note: The second equality comes from the fact that Cov(Xi, Xi) = Var(Xi).)","segments":[{"text":"(Note: The second equality comes from the fact that Cov(Xi, Xi) = Var(Xi).)"}]},"unresolved":null},{"absence":null,"basis":"3e8de974238b243386a3df49e03cbda348df6112f01588ce731b16f077409b22","coverage":null,"id":"enwiki-32344-1368633150::In-text #2575b20e","item":"In-text #2575b20e","kind":"theorem","locations":[{"challenge":"downgraded","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.IndepFun.covariance_eq_zero","end_line":332,"library":"mathlib","line":324,"location_key":"3e8de974238b243386a3df49e03cbda348df6112f01588ce731b16f077409b22","module":"Mathlib.Probability.Moments.Covariance","note":"Mathlib writes the caveat that the covariance exists as square-integrability of each of the two variables, the condition its covariance API always carries.","pair_key":"1fa157be8896e9adf623ffab00c93fac60930c4a9d135f976b8cde2212d665c4","path":"Mathlib/Probability/Moments/Covariance.lean","proof_status":"proved","rank":1,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.covariance_eq_zero {Ω : Type*} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} : ProbabilityTheory.IndepFun X Y μ → MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.covariance X Y μ = 0"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"19917a86153dd04f6ff8016602a1ec9efebb0f9b3299cf022ac1d627dc2cdef2","prominence":"supporting","quote":{"exact":"Here, Cov ⁡ ( ⋅ , ⋅ ) {\\displaystyle \\operatorname {Cov} (\\cdot"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of correlated variables","Sum of correlated variables with fixed sample size"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Here, Cov ⁡ ( ⋅ , ⋅ ) {\\displaystyle \\operatorname {Cov} (\\cdot ,\\cdot )} is the covariance, which is zero for independent random variables (if it exists).","segments":[{"text":"Here, "},{"tex":"\\operatorname {Cov} (\\cdot ,\\cdot )"},{"text":" is the covariance, which is zero for independent random variables (if it exists)."}]},"unresolved":null},{"absence":null,"basis":"7030559a3d417e1dfef820d20a8bf104e4ef16276647cab3d0d267f0e1dfdb6c","coverage":null,"id":"enwiki-32344-1368633150::In-text #b18589e8","item":"In-text #b18589e8","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_sum","end_line":297,"library":"mathlib","line":295,"location_key":"7030559a3d417e1dfef820d20a8bf104e4ef16276647cab3d0d267f0e1dfdb6c","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib keeps the covariance matrix as the indexed family of covariances and totals it with an iterated sum over both indices.","pair_key":"730dd290d0a771954805128c1145fbe198fecfcaa386f82f598cbdc9a3359d42","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"closeMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] [Fintype ι] : (∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) → ProbabilityTheory.variance (∑ i, X i) μ = ∑ i, ∑ j, ProbabilityTheory.covariance (X i) (X j) μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_sum'","end_line":293,"library":"mathlib","line":287,"location_key":"5c34cce6447c320686bb50521e5e1cd239cdb675eed16cb64cec70903b309dcf","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib indexes the summands by a finite set and totals the covariances of all ordered pairs drawn from it.","pair_key":"7e4f8ff5731d13b6c51529b6e55255102c6b4cd1691890726b231bf299f227ab","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"closeMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sum' {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {s : Finset ι} {X : ι → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] : (∀ i ∈ s, MeasureTheory.MemLp (X i) 2 μ) → ProbabilityTheory.variance (∑ i ∈ s, X i) μ = ∑ i ∈ s, ∑ j ∈ s, ProbabilityTheory.covariance (X i) (X j) μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"0a59b98f917f08baa2d98eb4cdab14db551a28dd13b142ec3b728c45a218af95","prominence":"supporting","quote":{"exact":"The formula states that the variance of a sum is equal to"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of correlated variables","Sum of correlated variables with fixed sample size"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The formula states that the variance of a sum is equal to the sum of all elements in the covariance matrix of the components.","segments":[{"text":"The formula states that the variance of a sum is equal to the sum of all elements in the covariance matrix of the components."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":0,"queries":4,"sha256":"20daf998d8bcdb25e5d642981e99a942a038da77dc48323bcd1e14ecc1ed0220"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #e651a04f","item":"In-text #e651a04f","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_sum","end_line":297,"library":"mathlib","line":295,"location_key":"040f354d38c67d16036a112fad93c62fb9a8bf4d7a0f34713325ba213160b43c","module":"Mathlib.Probability.Moments.Variance","note":"It totals all ordered pairs instead of splitting the diagonal from twice the pairs with i < j; that split needs the symmetry of the covariance and the self-covariance lemma.","pair_key":"f8c070d8046f575a238ef1f1a39c473ca6b813f655fdab4ae4101c7bd2d18131","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] [Fintype ι] : (∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) → ProbabilityTheory.variance (∑ i, X i) μ = ∑ i, ∑ j, ProbabilityTheory.covariance (X i) (X j) μ"},"statement":false},{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"Finset.sum_sum_Ioi_add_eq_sum_sum_off_diag","end_line":142,"library":"mathlib","line":142,"location_key":"586116b561770625c55fecbdfe8fdec5db6ebf4c4c0c991eeb1e3f7981013c52","module":"Mathlib.Algebra.Order.BigOperators.Group.LocallyFinite","note":"It is the combinatorial rearrangement of an off-diagonal double sum into a sum over the pairs with i < j, and says nothing about variances or covariances.","pair_key":"a7619ae741628b0f182ab1384265eadfa144defc875015e57c87384c3224e515","path":"Mathlib/Algebra/Order/BigOperators/Group/LocallyFinite.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem Finset.sum_sum_Ioi_add_eq_sum_sum_off_diag {α : Type*} {M : Type*} [AddCommMonoid M] [LinearOrder α] [Fintype α] [LocallyFiniteOrderTop α] [LocallyFiniteOrderBot α] (f : α → α → M) : ∑ i, ∑ j > i, (f j i + f i j) = ∑ i, ∑ j ∈ {i}ᶜ, f j i"},"statement":false},{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.covariance_comm","end_line":78,"library":"mathlib","line":75,"location_key":"335bf97877491e89d917e49d088ff47cb06d9e5765b549f5275c054ce41295a2","module":"Mathlib.Probability.Moments.Covariance","note":"It is the symmetry of the covariance that the passage appeals to, not the identity the passage states.","pair_key":"065d42a10d43d41b8221d2efae32db857060289b7a002867ac783fac90c47f6c","path":"Mathlib/Probability/Moments/Covariance.lean","proof_status":"proved","rank":3,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.covariance_comm {Ω : Type*} {mΩ : MeasurableSpace Ω} (X Y : Ω → ℝ) {μ : MeasureTheory.Measure Ω} : ProbabilityTheory.covariance X Y μ = ProbabilityTheory.covariance Y X μ"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"9c7770e71c44f24319181c463caf3ff54dc1d544dbda259721ed85960c119a8c","prominence":"supporting","quote":{"exact":"The next expression states equivalently that the variance of the sum is"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of correlated variables","Sum of correlated variables with fixed sample size"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":"; this emphasizes that the covariance matrix is symmetric.","segments":[{"text":"; this emphasizes that the covariance matrix is symmetric."}]},"layer":"The next expression states equivalently that the variance of the sum is the sum of the diagonal of covariance matrix plus two times the sum of its upper triangular elements (or its lower triangular elements)","segments":[{"text":"The next expression states equivalently that the variance of the sum is the sum of the diagonal of covariance matrix plus two times the sum of its upper triangular elements (or its lower triangular elements)"}]},"unresolved":null},{"absence":null,"basis":"de6c00b9c571b30178089390e162eb493071a630663d7d612e45a3a00737dc7f","coverage":null,"id":"enwiki-32344-1368633150::In-text #23e3385c","item":"In-text #23e3385c","kind":"theorem","locations":[{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.covMatrix_apply_comm","end_line":63,"library":"tauceti","line":61,"location_key":"de6c00b9c571b30178089390e162eb493071a630663d7d612e45a3a00737dc7f","module":"TauCeti.Probability.Moments.Covariance","note":"The declaration is stated for an arbitrary index type and for measures whose second moments need not exist, so it covers more than the passage's finite covariance matrix.","pair_key":"976515f2fbb0ba8f0016954481df5a08596dff69d25a2ce58c46f9a34d52daaa","path":"TauCeti/Probability/Moments/Covariance.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.covMatrix_apply_comm {ι : Type*} (μ : MeasureTheory.Measure (EuclideanSpace ℝ ι)) (i j : ι) : TauCeti.covMatrix μ i j = TauCeti.covMatrix μ j i"},"statement":false},{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.isHermitian_covMatrix","end_line":69,"library":"tauceti","line":66,"location_key":"c99b321b3fd088b6a2e3781efdbc5623ffd98816b21817914615d894141651f5","module":"TauCeti.Probability.Moments.Covariance","note":"The declaration is stated for an arbitrary index type and every measure on the Euclidean space, and phrases the symmetry as a Hermitian condition.","pair_key":"fc89d8a33d7d9f5ceeb1f03812b78e6a6826d27a3136a349e301c621c6ddb9d6","path":"TauCeti/Probability/Moments/Covariance.lean","proof_status":"proved","rank":2,"relation":"broadMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.isHermitian_covMatrix {ι : Type*} (μ : MeasureTheory.Measure (EuclideanSpace ℝ ι)) : (TauCeti.covMatrix μ).IsHermitian"},"statement":false},{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.covariance_comm","end_line":78,"library":"mathlib","line":75,"location_key":"9a1c2ed6f51ebe7b895f609f17fd177487fda58be6d25ab43fe4818afd29b3d7","module":"Mathlib.Probability.Moments.Covariance","note":"It states the symmetry of the covariance of two variables, and mentions no matrix of the passage's components.","pair_key":"53023e2164e61586733003a763cc67947a96a3643da89cb513b84c5bbc13dc41","path":"Mathlib/Probability/Moments/Covariance.lean","proof_status":"proved","rank":3,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.covariance_comm {Ω : Type*} {mΩ : MeasurableSpace Ω} (X Y : Ω → ℝ) {μ : MeasureTheory.Measure Ω} : ProbabilityTheory.covariance X Y μ = ProbabilityTheory.covariance Y X μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"2101ab28b7accacfe06a5e58af13fc93b13e223d8d11ef8aae8afa068ccc360a","prominence":"supporting","quote":{"exact":"this emphasizes that the covariance matrix is symmetric."},"quote_capped":false,"section":["Propagation","Sum of variables","Sum of correlated variables","Sum of correlated variables with fixed sample size"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"The next expression states equivalently that the variance of the sum is the sum of the diagonal of covariance matrix plus two times the sum of its upper triangular elements (or its lower triangular elements); ","segments":[{"text":"The next expression states equivalently that the variance of the sum is the sum of the diagonal of covariance matrix plus two times the sum of its upper triangular elements (or its lower triangular elements); "}]},"layer":"this emphasizes that the covariance matrix is symmetric.","segments":[{"text":"this emphasizes that the covariance matrix is symmetric."}]},"unresolved":null},{"absence":null,"basis":"43b99745699114f6b65cbe1a4dcbfeba3a188b5d555b1ae746c74bbd70287ab8","coverage":null,"id":"enwiki-32344-1368633150::In-text #1b7f249b","item":"In-text #1b7f249b","kind":"theorem","locations":[{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"medium","declaration":"TauCeti.Probability.Contractable.variance_blockAverage","end_line":107,"library":"tauceti","line":98,"location_key":"43b99745699114f6b65cbe1a4dcbfeba3a188b5d555b1ae746c74bbd70287ab8","module":"TauCeti.Probability.Exchangeability.L2.BlockAverages","note":"Its contractability hypothesis makes all pair covariances coincide, so the passage restricted to exchangeable sequences is what it states; the passage itself allows unequal correlations whose average is rho.","pair_key":"055e8920fd249fe2eab5483864fbe02a1f7f2e402225039987acd8b61bd46cdd","path":"TauCeti/Probability/Exchangeability/L2/BlockAverages.lean","proof_status":"proved","rank":1,"relation":"narrowMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.Contractable.variance_blockAverage {Ω : Type*} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {X : ℕ → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] : TauCeti.Probability.Contractable μ X → (∀ (n : ℕ), MeasureTheory.MemLp (X n) 2 μ) → ∀ {n : ℕ}, 0 < n → ∀ {k : Fin n → ℕ}, Function.Injective k → ProbabilityTheory.variance (TauCeti.Probability.blockAverage X k) μ = (ProbabilityTheory.variance (X 0) μ - ProbabilityTheory.covariance (X 0) (X 1) μ) / ↑n + ProbabilityTheory.covariance (X 0) (X 1) μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_sum","end_line":297,"library":"mathlib","line":295,"location_key":"c8b33be284508eac1c333591ddc2fecbe0c167e6fe97ae9751f4227ecbb819a6","module":"Mathlib.Probability.Moments.Variance","note":"It expresses the variance of a finite sum as the double sum of covariances, the formula the article uses one step earlier.","pair_key":"f436c9bc2786c46305cd8277838bdacab22ec8c0a45e0c144ffe6f0bfc585c23","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] [Fintype ι] : (∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) → ProbabilityTheory.variance (∑ i, X i) μ = ∑ i, ∑ j, ProbabilityTheory.covariance (X i) (X j) μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"e554b29b5f97fca2d8f083c7e09ef08530d3c170422c8414922cd28906838fac","prominence":"central","quote":{"exact":"if the variables have equal variance σ2 and the average correlation of"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of correlated variables","Sum of correlated variables with fixed sample size"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"So, ","segments":[{"text":"So, "}]},"layer":"if the variables have equal variance σ2 and the average correlation of distinct variables is ρ, then the variance of their mean is Var ⁡ ( X ¯ ) = σ 2 n + n − 1 n ρ σ 2 . {\\displaystyle \\operatorname {Var} \\left({\\overline {X}}\\right)={\\frac {\\sigma ^{2}}{n}}+{\\frac {n-1}{n}}\\rho \\sigma ^{2}.}","segments":[{"text":"if the variables have equal variance σ2 and the average correlation of distinct variables is ρ, then the variance of their mean is "},{"display":true,"tex":"\\operatorname {Var} \\left({\\overline {X}}\\right)={\\frac {\\sigma ^{2}}{n}}+{\\frac {n-1}{n}}\\rho \\sigma ^{2}."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":2,"queries":4,"sha256":"473f9fb89d7aa08a9b025a6b8684cc8b2f24175f95427c969f4b9c6f81288f66"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #431fe9f1","item":"In-text #431fe9f1","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.Contractable.variance_blockAverage","end_line":107,"library":"tauceti","line":98,"location_key":"20257741a95dcfef4c3da0acf16ca9734a3afbb4fbf081f8e6ef826a33fc1ce4","module":"TauCeti.Probability.Exchangeability.L2.BlockAverages","note":"It fixes the value of the mean's variance for one sequence and one n, and makes no comparison between two correlation levels.","pair_key":"fc4e4b1b641b3b40c8d0ca7d68f2e44391537e2aa34f84ea7ae7c47aac629b8a","path":"TauCeti/Probability/Exchangeability/L2/BlockAverages.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.Contractable.variance_blockAverage {Ω : Type*} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {X : ℕ → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] : TauCeti.Probability.Contractable μ X → (∀ (n : ℕ), MeasureTheory.MemLp (X n) 2 μ) → ∀ {n : ℕ}, 0 < n → ∀ {k : Fin n → ℕ}, Function.Injective k → ProbabilityTheory.variance (TauCeti.Probability.blockAverage X k) μ = (ProbabilityTheory.variance (X 0) μ - ProbabilityTheory.covariance (X 0) (X 1) μ) / ↑n + ProbabilityTheory.covariance (X 0) (X 1) μ"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"67a1ee00b006c2382e4ae98aee4efb2093d3487012e67ac0f0308e74a0c5ebca","prominence":"supporting","quote":{"exact":"This implies that the variance of the mean increases with the average"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of correlated variables","Sum of correlated variables with fixed sample size"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"This implies that the variance of the mean increases with the average of the correlations.","segments":[{"text":"This implies that the variance of the mean increases with the average of the correlations."}]},"unresolved":null},{"absence":null,"basis":"6fe5f01f1543219edcee5c4e09f4e8d0e73b72037b1f4871334ad79750d6cabd","coverage":null,"id":"enwiki-32344-1368633150::In-text #7e8c169e","item":"In-text #7e8c169e","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"medium","declaration":"TauCeti.Probability.Contractable.variance_blockAverage","end_line":107,"library":"tauceti","line":98,"location_key":"6fe5f01f1543219edcee5c4e09f4e8d0e73b72037b1f4871334ad79750d6cabd","module":"TauCeti.Probability.Exchangeability.L2.BlockAverages","note":"For standardized coordinates the common covariance is exactly the correlation rho, and the declaration's exchangeability hypothesis is more than the passage asks, which only fixes the average correlation.","pair_key":"1209315c778526514206d7dca2e2703c770fac2a789f2ef09a891aedec73a3a3","path":"TauCeti/Probability/Exchangeability/L2/BlockAverages.lean","proof_status":"proved","rank":1,"relation":"narrowMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.Contractable.variance_blockAverage {Ω : Type*} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {X : ℕ → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] : TauCeti.Probability.Contractable μ X → (∀ (n : ℕ), MeasureTheory.MemLp (X n) 2 μ) → ∀ {n : ℕ}, 0 < n → ∀ {k : Fin n → ℕ}, Function.Injective k → ProbabilityTheory.variance (TauCeti.Probability.blockAverage X k) μ = (ProbabilityTheory.variance (X 0) μ - ProbabilityTheory.covariance (X 0) (X 1) μ) / ↑n + ProbabilityTheory.covariance (X 0) (X 1) μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"76f9ccbdae0132633de5f96386b502c9c73e5a11dcb0ac7fa11681a7db15dc4b","prominence":"supporting","quote":{"exact":"if the variables have unit variance, for example if they are standardized,"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of correlated variables","Sum of correlated variables with fixed sample size"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"Moreover, ","segments":[{"text":"Moreover, "}]},"layer":"if the variables have unit variance, for example if they are standardized, then this simplifies to Var ⁡ ( X ¯ ) = 1 n + n − 1 n ρ . {\\displaystyle \\operatorname {Var} \\left({\\overline {X}}\\right)={\\frac {1}{n}}+{\\frac {n-1}{n}}\\rho .}","segments":[{"text":"if the variables have unit variance, for example if they are standardized, then this simplifies to "},{"display":true,"tex":"\\operatorname {Var} \\left({\\overline {X}}\\right)={\\frac {1}{n}}+{\\frac {n-1}{n}}\\rho ."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":2,"queries":4,"sha256":"b79182c16f421dd02327447b08ae0ceca86c212d9c404ee7a4aba6a0439f1da8"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #20ee3beb","item":"In-text #20ee3beb","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.Contractable.variance_blockAverage","end_line":107,"library":"tauceti","line":98,"location_key":"c3b6a2133e73cd77da3fcc4bd060286c0206a8a28a25d26b479563532461e585","module":"TauCeti.Probability.Exchangeability.L2.BlockAverages","note":"It is the closed form at each finite sample size, with no filter limit in its conclusion.","pair_key":"a3c9f24b49044024712964a31633c11163139592b83a6e317f9f635cb82a938f","path":"TauCeti/Probability/Exchangeability/L2/BlockAverages.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.Contractable.variance_blockAverage {Ω : Type*} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {X : ℕ → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] : TauCeti.Probability.Contractable μ X → (∀ (n : ℕ), MeasureTheory.MemLp (X n) 2 μ) → ∀ {n : ℕ}, 0 < n → ∀ {k : Fin n → ℕ}, Function.Injective k → ProbabilityTheory.variance (TauCeti.Probability.blockAverage X k) μ = (ProbabilityTheory.variance (X 0) μ - ProbabilityTheory.covariance (X 0) (X 1) μ) / ↑n + ProbabilityTheory.covariance (X 0) (X 1) μ"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"957b68cbaf2b38a807e1bcb11252786a9a567bae37ee0000a1e1ffacfcffcbc3","prominence":"supporting","quote":{"exact":"This converges to ρ if n goes to infinity, provided that the"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of correlated variables","Sum of correlated variables with fixed sample size"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"This converges to ρ if n goes to infinity, provided that the average correlation remains constant or converges too.","segments":[{"text":"This converges to ρ if n goes to infinity, provided that the average correlation remains constant or converges too."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":2,"queries":3,"sha256":"57d7704866310ff58aeeab3e27a5cfcb1f3eec3e72e326999c5c10ba2e6fd294"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #96d04957","item":"In-text #96d04957","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.Contractable.variance_blockAverage","end_line":107,"library":"tauceti","line":98,"location_key":"e8dc89dcd5ec7e0d7ccddca18cab31d8df74d4b6cdb54823e64d20938ce1cc57","module":"TauCeti.Probability.Exchangeability.L2.BlockAverages","note":"It computes the variance of the mean for each sample size and never takes the sample size to infinity.","pair_key":"72f6b1c0b1cc8ec3eb6d677d0ee52cb53b43aecbccc01a13370ce9af4d35c146","path":"TauCeti/Probability/Exchangeability/L2/BlockAverages.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.Contractable.variance_blockAverage {Ω : Type*} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {X : ℕ → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] : TauCeti.Probability.Contractable μ X → (∀ (n : ℕ), MeasureTheory.MemLp (X n) 2 μ) → ∀ {n : ℕ}, 0 < n → ∀ {k : Fin n → ℕ}, Function.Injective k → ProbabilityTheory.variance (TauCeti.Probability.blockAverage X k) μ = (ProbabilityTheory.variance (X 0) μ - ProbabilityTheory.covariance (X 0) (X 1) μ) / ↑n + ProbabilityTheory.covariance (X 0) (X 1) μ"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"7822a68644ed729f836e76ef6d01f7a04595dca12cd118d9d718e32728c8ce6a","prominence":"supporting","quote":{"exact":"for the variance of the mean of standardized variables with equal correlations"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of correlated variables","Sum of correlated variables with fixed sample size"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"So ","segments":[{"text":"So "}]},"layer":"for the variance of the mean of standardized variables with equal correlations or converging average correlation we have lim n → ∞ Var ⁡ ( X ¯ ) = ρ . {\\displaystyle \\lim _{n\\to \\infty }\\operatorname {Var} \\left({\\overline {X}}\\right)=\\rho .}","segments":[{"text":"for the variance of the mean of standardized variables with equal correlations or converging average correlation we have "},{"display":true,"tex":"\\lim _{n\\to \\infty }\\operatorname {Var} \\left({\\overline {X}}\\right)=\\rho ."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":1,"queries":4,"sha256":"792549eaf53ba65e11326b3cbf697ea255c8ab27c0ce84a64b6c8a7542d80006"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #f9020ac2","item":"In-text #f9020ac2","kind":"theorem","locations":[{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"medium","declaration":"TauCeti.Probability.Contractable.variance_blockAverage","end_line":107,"library":"tauceti","line":98,"location_key":"f96e5cd9dcd4cc4a5d4b8252f4fdf00745eb9e30849488b1cafaa9165febe797","module":"TauCeti.Probability.Exchangeability.L2.BlockAverages","note":"Its exact formula shows the gap from the correlation shrinks like one over the sample size, but no approximation claim is stated.","pair_key":"bcf61276e92109d85d8d18088c38fe524908aa134da6724735b968729ea7ae5d","path":"TauCeti/Probability/Exchangeability/L2/BlockAverages.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.Contractable.variance_blockAverage {Ω : Type*} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {X : ℕ → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] : TauCeti.Probability.Contractable μ X → (∀ (n : ℕ), MeasureTheory.MemLp (X n) 2 μ) → ∀ {n : ℕ}, 0 < n → ∀ {k : Fin n → ℕ}, Function.Injective k → ProbabilityTheory.variance (TauCeti.Probability.blockAverage X k) μ = (ProbabilityTheory.variance (X 0) μ - ProbabilityTheory.covariance (X 0) (X 1) μ) / ↑n + ProbabilityTheory.covariance (X 0) (X 1) μ"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"fe20b40f625498081741b1f4b0fe1c9129b7a1f3d3d159a964b20d63915768d6","prominence":"supporting","quote":{"exact":"Therefore, the variance of the mean of a large number of standardized"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of correlated variables","Sum of correlated variables with fixed sample size"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Therefore, the variance of the mean of a large number of standardized variables is approximately equal to their average correlation.","segments":[{"text":"Therefore, the variance of the mean of a large number of standardized variables is approximately equal to their average correlation."}]},"unresolved":null},{"absence":null,"basis":"112f319573002dee97cc73fdf6fd63e783facfdfb09c77a2858719b63ba4385d","coverage":null,"id":"enwiki-32344-1368633150::In-text #54cc4d80","item":"In-text #54cc4d80","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.strong_law_ae_real","end_line":631,"library":"mathlib","line":598,"location_key":"112f319573002dee97cc73fdf6fd63e783facfdfb09c77a2858719b63ba4385d","module":"Mathlib.Probability.StrongLaw","note":"It carries the independent half of the passage; the failure of convergence for correlated observations is not stated anywhere in the universe.","pair_key":"62e161629009b72d19191d0a70fc2c164b0ee6a8fb70a08b927327f1f9b72ae8","path":"Mathlib/Probability/StrongLaw.lean","proof_status":"proved","rank":1,"relation":"hasPart","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.strong_law_ae_real {Ω : Type*} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} (X : ℕ → Ω → ℝ) : MeasureTheory.Integrable (X 0) μ → Pairwise (Function.onFun (fun x1 x2 ↦ ProbabilityTheory.IndepFun x1 x2 μ) X) → (∀ (i : ℕ), ProbabilityTheory.IdentDistrib (X i) (X 0) μ μ) → ∀ᵐ (ω : Ω) ∂μ, Filter.Tendsto (fun n ↦ (∑ i ∈ Finset.range n, X i ω) / ↑n) Filter.atTop (𝓝 (∫ (x : Ω), X 0 x ∂μ))"},"statement":false},{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.strong_law_ae","end_line":818,"library":"mathlib","line":787,"location_key":"3649db55faa6878ebde9edacda7b7c7218d0592cdc69a48e72215e5049c5589f","module":"Mathlib.Probability.StrongLaw","note":"This is the version for values in a general Banach space, so it stands behind the real-valued statement the passage is about.","pair_key":"221f3aa6d5cfd24d2940a27c28240c9456c296e83c44f226a12685983ddac312","path":"Mathlib/Probability/StrongLaw.lean","proof_status":"proved","rank":2,"relation":"hasPart","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.strong_law_ae {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] [MeasurableSpace E] [BorelSpace E] (X : ℕ → Ω → E) : MeasureTheory.Integrable (X 0) μ → Pairwise (Function.onFun (fun x1 x2 ↦ ProbabilityTheory.IndepFun x1 x2 μ) X) → (∀ (i : ℕ), ProbabilityTheory.IdentDistrib (X i) (X 0) μ μ) → ∀ᵐ (ω : Ω) ∂μ, Filter.Tendsto (fun n ↦ (↑n)⁻¹ • ∑ i ∈ Finset.range n, X i ω) Filter.atTop (𝓝 (∫ (x : Ω), X 0 x ∂μ))"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"4aca19bdb3a60e623eb84e898e373d3b5621e0d7930142d2c313faae7e7814b5","prominence":"supporting","quote":{"exact":"This makes clear that the sample mean of correlated variables does not"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of correlated variables","Sum of correlated variables with fixed sample size"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"This makes clear that the sample mean of correlated variables does not generally converge to the population mean, even though the law of large numbers states that the sample mean will converge for independent variables.","segments":[{"text":"This makes clear that the sample mean of correlated variables does not generally converge to the population mean, even though the law of large numbers states that the sample mean will converge for independent variables."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":3,"queries":5,"sha256":"a64dda290b198a59c1dbd2a4a790f36c7bcb71522cc3094d63c40b13a13eb506"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #eaa7f11a","item":"In-text #eaa7f11a","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.integral_condVar_add_variance_condExp","end_line":147,"library":"mathlib","line":136,"location_key":"2e88ecbe50053a341cb6adb6b16e3d3dd9e1e34b268c275720eb4f5c0e043fee","module":"Mathlib.Probability.CondVar","note":"This is the decomposition of a variance through a sub-sigma-algebra that the article names as the ground of its formula.","pair_key":"6666f4383b27d71c233c2774eb8c3907f6a427652417f34d895ecb165ab657e5","path":"Mathlib/Probability/CondVar.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.integral_condVar_add_variance_condExp {Ω : Type*} {m₀ m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} : m ≤ m₀ → ∀ [MeasureTheory.IsProbabilityMeasure μ], MeasureTheory.MemLp X 2 μ → ∫ (x : Ω), ProbabilityTheory.condVar m X μ x ∂μ + ProbabilityTheory.variance μ[X | m] μ = ProbabilityTheory.variance X μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.IndepFun.variance_sum","end_line":447,"library":"mathlib","line":424,"location_key":"9b1426338a4753bb12a0e76dc9234a3ddcafecbcde7c9347033837f68b6dcc89","module":"Mathlib.Probability.Moments.Variance","note":"It sums over an index set fixed in advance, so the sample size never enters as a random quantity.","pair_key":"ad461df4363de5d738371104163c099a87f864840b1ef313705120f691646fbe","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} {s : Finset ι} : (∀ i ∈ s, MeasureTheory.MemLp (X i) 2 μ) → ((↑s).Pairwise fun i j ↦ ProbabilityTheory.IndepFun (X i) (X j) μ) → ProbabilityTheory.variance (∑ i ∈ s, X i) μ = ∑ i ∈ s, ProbabilityTheory.variance (X i) μ"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"05e056ea8e0baeb5c024883cc25f18d679108926a2332a5b3d319667e8481649","prominence":"central","quote":{"exact":"In such cases, the sample size N is a random variable whose"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of correlated variables","Sum of uncorrelated variables with random sample size"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"In such cases, the sample size N is a random variable whose variation adds to the variation of X, such that,[8] Var ⁡ ( ∑ i = 1 N X i ) = E ⁡ [ N ] Var ⁡ ( X ) + Var ⁡ ( N ) ( E ⁡ [ X ] ) 2 {\\displaystyle \\operatorname {Var} \\left(\\sum _{i=1}^{N}X_{i}\\right)=\\operatorname {E} \\left[N\\right]\\operatorname {Var} (X)+\\operatorname {Var} (N)(\\operatorname {E} \\left[X\\right])^{2}} which follows from the law of total variance.","segments":[{"text":"In such cases, the sample size N is a random variable whose variation adds to the variation of X, such that,"},{"ref":"[8]"},{"text":" "},{"display":true,"tex":"\\operatorname {Var} \\left(\\sum _{i=1}^{N}X_{i}\\right)=\\operatorname {E} \\left[N\\right]\\operatorname {Var} (X)+\\operatorname {Var} (N)(\\operatorname {E} \\left[X\\right])^{2}"},{"text":" which follows from the law of total variance."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":0,"queries":4,"sha256":"0bef27738e9da9c2014cb41aa33f75466b2a75bcfbd45915a2beb466280f8f60"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #62adbf39","item":"In-text #62adbf39","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.variance_of_hasLaw_map_cast_poissonMeasure","end_line":153,"library":"tauceti","line":149,"location_key":"1eb27b42533f29688b60ac0ad7a1c9548a99296af9ef7ff7c3d1e20a9cdbd4af","module":"TauCeti.Probability.Distributions.Poisson.Basic","note":null,"pair_key":"35fe53608301cb75d32d5cccc90740f3bc769e7c2ca2d97756a6f3a36785ac0b","path":"TauCeti/Probability/Distributions/Poisson/Basic.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.variance_of_hasLaw_map_cast_poissonMeasure {Ω : Type*} [MeasurableSpace Ω] {P : MeasureTheory.Measure Ω} {X : Ω → ℝ} {r : NNReal} : ProbabilityTheory.HasLaw X (MeasureTheory.Measure.map Nat.cast (ProbabilityTheory.poissonMeasure r)) P → ProbabilityTheory.variance X P = ↑r"},"statement":false},{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.integral_of_hasLaw_map_cast_poissonMeasure","end_line":146,"library":"tauceti","line":142,"location_key":"735dd957cd0ad821dd24a4c117ed2840feff8b05f75048d7ad426100a21ded25","module":"TauCeti.Probability.Distributions.Poisson.Basic","note":null,"pair_key":"1a83c8ff0f70a092c8381562e0e78a8810bc9c4955c9c6ccab716f8618d14a0e","path":"TauCeti/Probability/Distributions/Poisson/Basic.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.integral_of_hasLaw_map_cast_poissonMeasure {Ω : Type*} [MeasurableSpace Ω] {P : MeasureTheory.Measure Ω} {X : Ω → ℝ} {r : NNReal} : ProbabilityTheory.HasLaw X (MeasureTheory.Measure.map Nat.cast (ProbabilityTheory.poissonMeasure r)) P → ∫ (ω : Ω), X ω ∂P = ↑r"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"c43e651588ec3b316b04b6147c76745e3606aeeebf96d7df367a47425deef910","prominence":"supporting","quote":{"exact":"If N has a Poisson distribution, then E ⁡ [ N ]"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of correlated variables","Sum of uncorrelated variables with random sample size"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"If N has a Poisson distribution, then E ⁡ [ N ] = Var ⁡ ( N ) {\\displaystyle \\operatorname {E} [N]=\\operatorname {Var} (N)} with estimator n = N.","segments":[{"text":"If N has a Poisson distribution, then "},{"tex":"\\operatorname {E} [N]=\\operatorname {Var} (N)"},{"text":" with estimator n = N."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":0,"queries":4,"sha256":"1a12841e74f420a62c1cbff8c659f623a93cd357c9c40fd49f854e5a9f0ced71"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #ab6e0d0a","item":"In-text #ab6e0d0a","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"medium","declaration":"TauCeti.integral_norm_finiteMean_sub_sq_of_forall_eq","end_line":129,"library":"tauceti","line":121,"location_key":"4d3a9cf01acef31fce9557b00ea51fd39b6c4d10c54233a19d1b5a698fde8c47","module":"TauCeti.Probability.Moments.SampleMean","note":null,"pair_key":"72c5db18d031d259729778578a2d06cc514f18497b687a5c287a79dcc927b767","path":"TauCeti/Probability/Moments/SampleMean.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":true,"text":"theorem TauCeti.integral_norm_finiteMean_sub_sq_of_forall_eq {Ω : Type*} {ι : Type*} {E : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} […] {X : ι → Ω → E} {m : E} : (∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) → (∀ (i : ι), ∫ (x : Ω), X i x ∂μ = m) → (Pairwise fun i j ↦ ProbabilityTheory.IndepFun (X i) (X j) μ) → ∀ {γ : ℝ}, (∀ (i : ι), ∫ (ω : Ω), ‖X i ω - m‖ ^ 2 ∂μ = γ) → ∫ (ω : Ω), ‖(TauCeti.finiteMean ℝ fun x ↦ X x ω) - m‖ ^ 2 ∂μ = γ / ↑(Fintype.card ι)","type":"∀ {Ω : Type u_1} {ι : Type u_2} {E : Type u_3} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] [CompleteSpace E] [inst_3 : MeasurableSpace E] [BorelSpace E] [inst_5 : Fintype ι] [Nonempty ι] [MeasureTheory.IsProbabilityMeasure μ] {X : ι → Ω → E} {m : E}, (∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) → (∀ (i : ι), ∫ (x : Ω), X i x ∂μ = m) → (Pairwise fun i j ↦ ProbabilityTheory.IndepFun (X i) (X j) μ) → ∀ {γ : ℝ}, (∀ (i : ι), ∫ (ω : Ω), ‖X i ω - m‖ ^ 2 ∂μ = γ) → ∫ (ω : Ω), ‖(TauCeti.finiteMean ℝ fun x ↦ X x ω) - m‖ ^ 2 ∂μ = γ / ↑(Fintype.card ι)"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"17912119ee19bfe6c9dc879eef8b603379f344318ec8401e49b29e46c2c39f3f","prominence":"supporting","quote":{"exact":"the estimator of Var ⁡ ( ∑ i = 1 n X"},"quote_capped":true,"section":["Propagation","Sum of variables","Sum of correlated variables","Sum of uncorrelated variables with random sample size"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"If N has a Poisson distribution, then E ⁡ [ N ] = Var ⁡ ( N ) {\\displaystyle \\operatorname {E} [N]=\\operatorname {Var} (N)} with estimator n = N. So, ","segments":[{"text":"If N has a Poisson distribution, then "},{"tex":"\\operatorname {E} [N]=\\operatorname {Var} (N)"},{"text":" with estimator n = N. So, "}]},"layer":"the estimator of Var ⁡ ( ∑ i = 1 n X i ) {\\displaystyle \\textstyle \\operatorname {Var} \\left(\\sum _{i=1}^{n}X_{i}\\right)} becomes ⁠ n S x 2 + n X ¯ 2 {\\displaystyle \\textstyle n{S_{x}}^{2}+n{\\bar {X}}^{2}} ⁠, giving SE ⁡ ( X ¯ ) = ( S x 2 + X ¯ 2 ) / n {\\displaystyle \\textstyle \\operatorname {SE} ({\\bar {X}})={\\sqrt {{({S_{x}}^{2}+{\\bar {X}}^{2})}/{n}}}} (see Standard error § Standard error of the sample mean).","segments":[{"text":"the estimator of "},{"tex":"\\textstyle \\operatorname {Var} \\left(\\sum _{i=1}^{n}X_{i}\\right)"},{"text":" becomes ⁠ "},{"tex":"\\textstyle n{S_{x}}^{2}+n{\\bar {X}}^{2}"},{"text":" ⁠, giving "},{"tex":"\\textstyle \\operatorname {SE} ({\\bar {X}})={\\sqrt {{({S_{x}}^{2}+{\\bar {X}}^{2})}/{n}}}"},{"text":" (see Standard error § Standard error of the sample mean)."}]},"unresolved":null},{"absence":null,"basis":"509e5e339a7bf06ba16bb27f2c323d5d15abf2d934ed8de16b96694ca6c4a80f","coverage":null,"id":"enwiki-32344-1368633150::In-text #0bda9ef0","item":"In-text #0bda9ef0","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_add","end_line":270,"library":"mathlib","line":263,"location_key":"509e5e339a7bf06ba16bb27f2c323d5d15abf2d934ed8de16b96694ca6c4a80f","module":"Mathlib.Probability.Moments.Variance","note":null,"pair_key":"8b91b70a8f5b6d302f8c99d27a2341f77e216907250f11714294c65318618521","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_add {Ω : Type*} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] : MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.variance (X + Y) μ = ProbabilityTheory.variance X μ + 2 * ProbabilityTheory.covariance X Y μ + ProbabilityTheory.variance Y μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_sub","end_line":279,"library":"mathlib","line":276,"location_key":"c9cc1d585ba1def79acfb64b3da261befa28e9ef60d51fbca22e35d6c11662d2","module":"Mathlib.Probability.Moments.Variance","note":null,"pair_key":"238d47a87110db9c5a653485d9627ed0e424a39f7b6623a0d981e885929eccc2","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sub {Ω : Type*} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] : MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.variance (X - Y) μ = ProbabilityTheory.variance X μ - 2 * ProbabilityTheory.covariance X Y μ + ProbabilityTheory.variance Y μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_smul","end_line":218,"library":"mathlib","line":216,"location_key":"dfa44991221151b9465559812b1e898536a7feaa05fadb5b5379a02b31766812","module":"Mathlib.Probability.Moments.Variance","note":null,"pair_key":"4f6c008124933b781745672ed1a71d7290a5ab3ae62939c03811e9b1e8ec4615","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":3,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_smul {Ω : Type*} {mΩ : MeasurableSpace Ω} (c : ℝ) (X : Ω → ℝ) (μ : MeasureTheory.Measure Ω) : ProbabilityTheory.variance (c • X) μ = c ^ 2 * ProbabilityTheory.variance X μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"0245be1e845229026f3d09664b8ae5f88cf4bf41b9125a1da5ccb02c36ba733d","prominence":"central","quote":{"exact":"The scaling property and the Bienaymé formula, along with the property of"},"quote_capped":true,"section":["Propagation","Sum of variables","Weighted sum of variables"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The scaling property and the Bienaymé formula, along with the property of the covariance Cov(aX, bY) = ab Cov(X, Y) jointly imply that Var ⁡ ( a X ± b Y ) = a 2 Var ⁡ ( X ) + b 2 Var ⁡ ( Y ) ± 2 a b Cov ⁡ ( X , Y ) . {\\displaystyle \\operatorname {Var} (aX\\pm bY)=a^{2}\\operatorname {Var} (X)+b^{2}\\operatorname {Var} (Y)\\pm 2ab\\,\\operatorname {Cov} (X,Y).}","segments":[{"text":"The scaling property and the Bienaymé formula, along with the property of the covariance Cov(aX, bY) = ab Cov(X, Y) jointly imply that "},{"display":true,"tex":"\\operatorname {Var} (aX\\pm bY)=a^{2}\\operatorname {Var} (X)+b^{2}\\operatorname {Var} (Y)\\pm 2ab\\,\\operatorname {Cov} (X,Y)."}]},"unresolved":null},{"absence":null,"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #0120f913","item":"In-text #0120f913","kind":"theorem","locations":[],"outcome":"unresolved","passage_ends_in_suffix":false,"passage_key":"862246b06d9e393c1d199be061137bab516de82b9f19b9b1e683f9a581826cca","prominence":"supporting","quote":{"exact":"This implies that in a weighted sum of variables, the variable with"},"quote_capped":true,"section":["Propagation","Sum of variables","Weighted sum of variables"],"status":null,"subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"This implies that in a weighted sum of variables, the variable with the largest weight will have a disproportionally large weight in the variance of the total.","segments":[{"text":"This implies that in a weighted sum of variables, the variable with the largest weight will have a disproportionally large weight in the variance of the total."}]},"unresolved":{"challenge":"sampled_out"}},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":0,"queries":4,"sha256":"d4536c0f078b03a60a2bcb355ee2531e625817976a5f6eaa911d21fd84cd6461"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #8ded0ba3","item":"In-text #8ded0ba3","kind":"example","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_smul","end_line":218,"library":"mathlib","line":216,"location_key":"654653e4c5c3eb95841b4c5ef822368b92847eb3d99742bd15465d498b39179c","module":"Mathlib.Probability.Moments.Variance","note":null,"pair_key":"751028ae949a0a65b902f50d60adf315e2e38c04c1b82ef095746dc21e8a87f6","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_smul {Ω : Type*} {mΩ : MeasurableSpace Ω} (c : ℝ) (X : Ω → ℝ) (μ : MeasureTheory.Measure Ω) : ProbabilityTheory.variance (c • X) μ = c ^ 2 * ProbabilityTheory.variance X μ"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"f992fdc43653c07a8367e5b9d1abf8256a175b8d436873c914ba9a6ca9b021d7","prominence":"supporting","quote":{"exact":"For example, if X and Y are uncorrelated and the weight of"},"quote_capped":true,"section":["Propagation","Sum of variables","Weighted sum of variables"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"For example, if X and Y are uncorrelated and the weight of X is two times the weight of Y, then the weight of the variance of X will be four times the weight of the variance of Y.","segments":[{"text":"For example, if X and Y are uncorrelated and the weight of X is two times the weight of Y, then the weight of the variance of X will be four times the weight of the variance of Y."}]},"unresolved":null},{"absence":null,"basis":"d8d2b0eb2bbf9f7b73e9aa45ea0a2c190ce5d7bbacd1c6316b7c28614b315474","coverage":null,"id":"enwiki-32344-1368633150::In-text #743c37bc","item":"In-text #743c37bc","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_sum'","end_line":293,"library":"mathlib","line":287,"location_key":"d8d2b0eb2bbf9f7b73e9aa45ea0a2c190ce5d7bbacd1c6316b7c28614b315474","module":"Mathlib.Probability.Moments.Variance","note":null,"pair_key":"f1206e6fcc222453449d4a59c8f92baf45cfacf91de376c14b7ded34abd84f47","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sum' {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {s : Finset ι} {X : ι → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] : (∀ i ∈ s, MeasureTheory.MemLp (X i) 2 μ) → ProbabilityTheory.variance (∑ i ∈ s, X i) μ = ∑ i ∈ s, ∑ j ∈ s, ProbabilityTheory.covariance (X i) (X j) μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_sum","end_line":297,"library":"mathlib","line":295,"location_key":"d5d48ac6fe636f6f7898ee062b304534ae2ce956d2234be59f83ce7edf69904e","module":"Mathlib.Probability.Moments.Variance","note":null,"pair_key":"46e26ead9342d1cec88cea4b810b7b23d67fdf80abbc69be2d9c4eab54d72714","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} [MeasureTheory.IsFiniteMeasure μ] [Fintype ι] : (∀ (i : ι), MeasureTheory.MemLp (X i) 2 μ) → ProbabilityTheory.variance (∑ i, X i) μ = ∑ i, ∑ j, ProbabilityTheory.covariance (X i) (X j) μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.IndepFun.variance_sum","end_line":447,"library":"mathlib","line":424,"location_key":"6b15eaf83cef09244e7cc99f8d6d9dab0f9d87516b6eb8b002c449c0aaf40dc5","module":"Mathlib.Probability.Moments.Variance","note":null,"pair_key":"87f7abfc6bed0742702eb87c5d2e750dc145d73ca463ad12b666fd1648d09835","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":3,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.variance_sum {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type*} {X : ι → Ω → ℝ} {s : Finset ι} : (∀ i ∈ s, MeasureTheory.MemLp (X i) 2 μ) → ((↑s).Pairwise fun i j ↦ ProbabilityTheory.IndepFun (X i) (X j) μ) → ProbabilityTheory.variance (∑ i ∈ s, X i) μ = ∑ i ∈ s, ProbabilityTheory.variance (X i) μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"61092c2fe7af941ecc0d336d411d4cf56a8c0f8cf6a39f279737fe16a9e5a99f","prominence":"central","quote":{"exact":"The expression above can be extended to a weighted sum of multiple"},"quote_capped":true,"section":["Propagation","Sum of variables","Weighted sum of variables"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The expression above can be extended to a weighted sum of multiple variables: Var ⁡ ( ∑ i n a i X i ) = ∑ i = 1 n a i 2 Var ⁡ ( X i ) + 2 ∑ 1 ≤ i ∑ < j ≤ n a i a j Cov ⁡ ( X i , X j ) {\\displaystyle \\operatorname {Var} \\left(\\sum _{i}^{n}a_{i}X_{i}\\right)=\\sum _{i=1}^{n}a_{i}^{2}\\operatorname {Var} (X_{i})+2\\sum _{1\\leq i}\\sum _{<j\\leq n}a_{i}a_{j}\\operatorname {Cov} (X_{i},X_{j})}","segments":[{"text":"The expression above can be extended to a weighted sum of multiple variables: "},{"display":true,"tex":"\\operatorname {Var} \\left(\\sum _{i}^{n}a_{i}X_{i}\\right)=\\sum _{i=1}^{n}a_{i}^{2}\\operatorname {Var} (X_{i})+2\\sum _{1\\leq i}\\sum _{<j\\leq n}a_{i}a_{j}\\operatorname {Cov} (X_{i},X_{j})"}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":0,"queries":3,"sha256":"132f470193b7c1b733b2ca97d39ad21e7de200a8a925a16c06451d25f2c9264e"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #2e0a90b8","item":"In-text #2e0a90b8","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.IndepFun.integral_mul_eq_mul_integral","end_line":414,"library":"mathlib","line":411,"location_key":"4acdc0257ef1127418cbed0dd9fa6d97680e4bb4cf0a1f8fb4a0af7db4cb83c1","module":"Mathlib.Probability.Independence.Integration","note":null,"pair_key":"3fb2677d1fbaad4e421f1477c652ea77e1236506c6d5e5f651097ef47f43c5ef","path":"Mathlib/Probability/Independence/Integration.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.integral_mul_eq_mul_integral {Ω : Type*} {𝕜 : Type*} [RCLike 𝕜] {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X Y : Ω → 𝕜} : ProbabilityTheory.IndepFun X Y μ → MeasureTheory.AEStronglyMeasurable X μ → MeasureTheory.AEStronglyMeasurable Y μ → ∫ (x : Ω), (X * Y) x ∂μ = (∫ (x : Ω), X x ∂μ) * ∫ (x : Ω), Y x ∂μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_eq_sub","end_line":228,"library":"mathlib","line":226,"location_key":"5c2ee437bd13124ddd56bca61edd546d4c0c7f52d0fe77ec0c03e01dcbb61913","module":"Mathlib.Probability.Moments.Variance","note":null,"pair_key":"6250d544325936fb694a0990701910943a8197827cbedf63b95afc6ba3bc74f1","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_sub {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {X : Ω → ℝ} : MeasureTheory.MemLp X 2 μ → ProbabilityTheory.variance X μ = ∫ (x : Ω), (X ^ 2) x ∂μ - (∫ (x : Ω), X x ∂μ) ^ 2"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"84f2fd188fb4678221ea09e6ff108816f314a8e853f076bae70b083575a2eb8d","prominence":"central","quote":{"exact":"If two variables X and Y are independent, the variance of their"},"quote_capped":true,"section":["Propagation","Product of variables","Product of independent variables"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"If two variables X and Y are independent, the variance of their product is given by[9] Var ⁡ ( X Y ) = [ E ⁡ ( X ) ] 2 Var ⁡ ( Y ) + [ E ⁡ ( Y ) ] 2 Var ⁡ ( X ) + Var ⁡ ( X ) Var ⁡ ( Y ) . {\\displaystyle \\operatorname {Var} (XY)=[\\operatorname {E} (X)]^{2}\\operatorname {Var} (Y)+[\\operatorname {E} (Y)]^{2}\\operatorname {Var} (X)+\\operatorname {Var} (X)\\operatorname {Var} (Y).}","segments":[{"text":"If two variables X and Y are independent, the variance of their product is given by"},{"ref":"[9]"},{"text":" "},{"display":true,"tex":"\\operatorname {Var} (XY)=[\\operatorname {E} (X)]^{2}\\operatorname {Var} (Y)+[\\operatorname {E} (Y)]^{2}\\operatorname {Var} (X)+\\operatorname {Var} (X)\\operatorname {Var} (Y)."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":0,"queries":3,"sha256":"fe82f948113fbe81cd874382cfe8bee5b40ac5f7d0f94287cc9ed0c9807f345c"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #a4717b48","item":"In-text #a4717b48","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_eq_sub","end_line":228,"library":"mathlib","line":226,"location_key":"a8a5ca7a7a9264fe9fb5df2a5ae9ac526d69721be99b8df39b4c0580c3e3325c","module":"Mathlib.Probability.Moments.Variance","note":null,"pair_key":"ccc0da54fa0d8330a06e6e7f3fdb55c7acdbeba277d06cda5ca57ed070f6f474","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_sub {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {X : Ω → ℝ} : MeasureTheory.MemLp X 2 μ → ProbabilityTheory.variance X μ = ∫ (x : Ω), (X ^ 2) x ∂μ - (∫ (x : Ω), X x ∂μ) ^ 2"},"statement":false},{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.IndepFun.integral_fun_mul_eq_mul_integral","end_line":426,"library":"mathlib","line":423,"location_key":"7d264ecd202453ef5b1820c2a6748688974ab18c55306d2c5eae2618c1d4024e","module":"Mathlib.Probability.Independence.Integration","note":null,"pair_key":"78d082b668283575e19517050d5e047ad80c90d6fdd1527cebd5c81bd3d5967f","path":"Mathlib/Probability/Independence/Integration.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.integral_fun_mul_eq_mul_integral {Ω : Type*} {𝕜 : Type*} [RCLike 𝕜] {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X Y : Ω → 𝕜} : ProbabilityTheory.IndepFun X Y μ → MeasureTheory.AEStronglyMeasurable X μ → MeasureTheory.AEStronglyMeasurable Y μ → ∫ (ω : Ω), X ω * Y ω ∂μ = (∫ (x : Ω), X x ∂μ) * ∫ (x : Ω), Y x ∂μ"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"a9991c59834db1ed1e9e59548a57f91fd4d3f8dba6b3ace7d78a314af6d24057","prominence":"supporting","quote":{"exact":"Equivalently, using the basic properties of expectation, it is given by Var"},"quote_capped":true,"section":["Propagation","Product of variables","Product of independent variables"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Equivalently, using the basic properties of expectation, it is given by Var ⁡ ( X Y ) = E ⁡ ( X 2 ) E ⁡ ( Y 2 ) − [ E ⁡ ( X ) ] 2 [ E ⁡ ( Y ) ] 2 . {\\displaystyle \\operatorname {Var} (XY)=\\operatorname {E} \\left(X^{2}\\right)\\operatorname {E} \\left(Y^{2}\\right)-[\\operatorname {E} (X)]^{2}[\\operatorname {E} (Y)]^{2}.}","segments":[{"text":"Equivalently, using the basic properties of expectation, it is given by "},{"display":true,"tex":"\\operatorname {Var} (XY)=\\operatorname {E} \\left(X^{2}\\right)\\operatorname {E} \\left(Y^{2}\\right)-[\\operatorname {E} (X)]^{2}[\\operatorname {E} (Y)]^{2}."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":0,"queries":4,"sha256":"9eaf0862b57c95582ebcd70743fff20cfa48eaa1b050409102ab6534e6ee5dfa"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #be5c650d","item":"In-text #be5c650d","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_eq_sub","end_line":228,"library":"mathlib","line":226,"location_key":"d3b266e3e8a7be5cf96d4fa28c1d56c5a4973c3c8c3c0ed1f608014407992b24","module":"Mathlib.Probability.Moments.Variance","note":"Read at the product of the passage's two variables it yields the opening equality of the displayed chain, but the passage's end-to-end expression needs the covariance identity and the second-moment identities for each factor as further named lemmas, which PD8 counts as bridges.","pair_key":"439d48dfb36553e932844a4635387e35e7fde80ac9e0f11d0a4fdade7748f477","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_sub {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {X : Ω → ℝ} : MeasureTheory.MemLp X 2 μ → ProbabilityTheory.variance X μ = ∫ (x : Ω), (X ^ 2) x ∂μ - (∫ (x : Ω), X x ∂μ) ^ 2"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.covariance_eq_sub","end_line":66,"library":"mathlib","line":54,"location_key":"90f7d430c2382e429b7d26517b8e8e036fa4355f48e06eb137fea9df4e73f243","module":"Mathlib.Probability.Moments.Covariance","note":"It is one of the identities the article's algebra uses to turn second moments into covariances, so it sits on the route to the passage rather than asserting the passage's equation.","pair_key":"32dd2bf205713b73887cfdbe51d3ec469b632138bee684f2461c4b2fe471a74c","path":"Mathlib/Probability/Moments/Covariance.lean","proof_status":"proved","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.covariance_eq_sub {Ω : Type*} {mΩ : MeasurableSpace Ω} {X Y : Ω → ℝ} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] : MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.covariance X Y μ = ∫ (x : Ω), (X * Y) x ∂μ - (∫ (x : Ω), X x ∂μ) * ∫ (x : Ω), Y x ∂μ"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"ec59d1c4f167cec5cbff598ee5243271a51f53399236b47ad3ec27fe3f21f4b4","prominence":"central","quote":{"exact":"In general, if two variables are statistically dependent, then the variance of"},"quote_capped":true,"section":["Propagation","Product of variables","Product of statistically dependent variables"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"In general, if two variables are statistically dependent, then the variance of their product is given by: Var ⁡ ( X Y ) = E ⁡ [ X 2 Y 2 ] − [ E ⁡ ( X Y ) ] 2 = Cov ⁡ ( X 2 , Y 2 ) + E ⁡ ( X 2 ) E ⁡ ( Y 2 ) − [ E ⁡ ( X Y ) ] 2 = Cov ⁡ ( X 2 , Y 2 ) + ( Var ⁡ ( X ) + [ E ⁡ ( X ) ] 2 ) ( Var ⁡ ( Y ) + [ E ⁡ ( Y ) ] 2 ) − [ Cov ⁡ ( X , Y ) + E ⁡ ( X ) E ⁡ ( Y ) ] 2 {\\displaystyle {\\begin{aligned}\\operatorname {Var} (XY)={}&\\operatorname {E} \\left[X^{2}Y^{2}\\right]-[\\operatorname {E} (XY)]^{2}\\\\[5pt]={}&\\operatorname {Cov} \\left(X^{2},Y^{2}\\right)+\\operatorname {E} (X^{2})\\operatorname {E} \\left(Y^{2}\\right)-[\\operatorname {E} (XY)]^{2}\\\\[5pt]={}&\\operatorname {Cov} \\left(X^{2},Y^{2}\\right)+\\left(\\operatorname {Var} (X)+[\\operatorname {E} (X)]^{2}\\right)\\left(\\operatorname {Var} (Y)+[\\operatorname {E} (Y)]^{2}\\right)\\\\[5pt]&-[\\operatorname {Cov} (X,Y)+\\operatorname {E} (X)\\operatorname {E} (Y)]^{2}\\end{aligned}}}","segments":[{"text":"In general, if two variables are statistically dependent, then the variance of their product is given by: "},{"display":true,"tex":"\\begin{aligned}\\operatorname {Var} (XY)={}&\\operatorname {E} \\left[X^{2}Y^{2}\\right]-[\\operatorname {E} (XY)]^{2}\\\\[5pt]={}&\\operatorname {Cov} \\left(X^{2},Y^{2}\\right)+\\operatorname {E} (X^{2})\\operatorname {E} \\left(Y^{2}\\right)-[\\operatorname {E} (XY)]^{2}\\\\[5pt]={}&\\operatorname {Cov} \\left(X^{2},Y^{2}\\right)+\\left(\\operatorname {Var} (X)+[\\operatorname {E} (X)]^{2}\\right)\\left(\\operatorname {Var} (Y)+[\\operatorname {E} (Y)]^{2}\\right)\\\\[5pt]&-[\\operatorname {Cov} (X,Y)+\\operatorname {E} (X)\\operatorname {E} (Y)]^{2}\\end{aligned}"}]},"unresolved":null},{"absence":null,"basis":"a96337ee958e8c3f2139dbc3e36107acba261266725ee61f4c11c5acd1373e39","coverage":null,"id":"enwiki-32344-1368633150::In-text #b6f46922","item":"In-text #b6f46922","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"low","declaration":"ProbabilityTheory.variance_const_mul","end_line":210,"library":"mathlib","line":207,"location_key":"a96337ee958e8c3f2139dbc3e36107acba261266725ee61f4c11c5acd1373e39","module":"Mathlib.Probability.Moments.Variance","note":"The declaration covers maps that scale by a constant, where the derivative at the mean is that constant and the article's approximation becomes an equality; it says nothing about a curved function or about the size of the error the article leaves implicit.","pair_key":"3189ea397edc58a33d77a3ea10a4c5a47a7df9d7583b4eeb95ef5f90d91a53df","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_const_mul {Ω : Type*} {mΩ : MeasurableSpace Ω} (c : ℝ) (X : Ω → ℝ) (μ : MeasureTheory.Measure Ω) : ProbabilityTheory.variance (fun ω ↦ c * X ω) μ = c ^ 2 * ProbabilityTheory.variance X μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"ff7a3e9cda73ff17f73df111f48636605e094e6d0a88b2801e8e003914c78774","prominence":"central","quote":{"exact":"For example, the approximate variance of a function of one variable is"},"quote_capped":true,"section":["Propagation","Arbitrary functions"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"For example, the approximate variance of a function of one variable is given by Var ⁡ [ f ( X ) ] ≈ ( f ′ ( E ⁡ [ X ] ) ) 2 Var ⁡ [ X ] {\\displaystyle \\operatorname {Var} \\left[f(X)\\right]\\approx \\left(f'(\\operatorname {E} \\left[X\\right])\\right)^{2}\\operatorname {Var} \\left[X\\right]} provided that f is twice differentiable and that the mean and variance of X are finite.","segments":[{"text":"For example, the approximate variance of a function of one variable is given by "},{"display":true,"tex":"\\operatorname {Var} \\left[f(X)\\right]\\approx \\left(f'(\\operatorname {E} \\left[X\\right])\\right)^{2}\\operatorname {Var} \\left[X\\right]"},{"text":" provided that f is twice differentiable and that the mean and variance of X are finite."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":0,"queries":3,"sha256":"d88f8a24a54fd8399ea9de4316dc2ae97d448e08c8ae8ac00f09566463ed0e32"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #22b51929","item":"In-text #22b51929","kind":"definition","locations":[{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"medium","declaration":"TauCeti.Probability.samplePopulation","end_line":86,"library":"tauceti","line":82,"location_key":"051f763e407ecba4423de0230b46fd4a85de1e9661b6bd97d98aa85f423f29ba","module":"TauCeti.Probability.PopulationSampling.Basic","note":"It builds the law of a sample drawn from a population, which is the raw material the passage's notion is a function of, but it defines a measure rather than the notion of an estimator.","pair_key":"641f5a9f1ad81ce965c9f485c9dd2136390f3da2a09696dddafa66adab0aa583","path":"TauCeti/Probability/PopulationSampling/Basic.lean","proof_status":"definition","rank":1,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"def TauCeti.Probability.samplePopulation {α : Type*} [MeasurableSpace α] {ι : Type*} {κ : Type*} [Countable κ] [MeasurableSpace κ] [MeasurableSingletonClass κ] : MeasureTheory.Measure (ι → κ) → MeasureTheory.Measure (κ → α) → MeasureTheory.Measure (ι → α)"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"9a30e8684870c30d7977db945390978742e96d55da963dd72aa6351f11b21c68","prominence":"supporting","quote":{"exact":"The estimator is a function of the sample of n observations drawn"},"quote_capped":true,"section":["Population variance and sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The estimator is a function of the sample of n observations drawn without observational bias from the whole population of potential observations. In this example, the sample would be the set of actual measurements of yesterday's rainfall from available rain gauges within the geography of interest.","segments":[{"text":"The estimator is a function of the sample of n observations drawn without observational bias from the whole population of potential observations. In this example, the sample would be the set of actual measurements of yesterday's rainfall from available rain gauges within the geography of interest."}]},"unresolved":null},{"absence":null,"basis":"a6e814cf59291523640a36227c49831b513552c8abefa53b8bcaae9d359af97c","coverage":null,"id":"enwiki-32344-1368633150::In-text #de073607","item":"In-text #de073607","kind":"definition","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.strong_law_ae_real","end_line":631,"library":"mathlib","line":598,"location_key":"a6e814cf59291523640a36227c49831b513552c8abefa53b8bcaae9d359af97c","module":"Mathlib.Probability.StrongLaw","note":"The declaration speaks of the average of the observations only; the behaviour of the sample variance as the sample grows is not among the things it says.","pair_key":"4b3d13cb27dc7917f678ebdacc70923714b5e980854b07a4ab225486fa501576","path":"Mathlib/Probability/StrongLaw.lean","proof_status":"proved","rank":1,"relation":"hasPart","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.strong_law_ae_real {Ω : Type*} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} (X : ℕ → Ω → ℝ) : MeasureTheory.Integrable (X 0) μ → Pairwise (Function.onFun (fun x1 x2 ↦ ProbabilityTheory.IndepFun x1 x2 μ) X) → (∀ (i : ℕ), ProbabilityTheory.IdentDistrib (X i) (X 0) μ μ) → ∀ᵐ (ω : Ω) ∂μ, Filter.Tendsto (fun n ↦ (∑ i ∈ Finset.range n, X i ω) / ↑n) Filter.atTop (𝓝 (∫ (x : Ω), X 0 x ∂μ))"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"7f911922bb0eee2db35c29d0c07fcce011d23800a8d4271c9c4c9e61155ccfe4","prominence":"central","quote":{"exact":"The simplest estimators for population mean and population variance are simply the"},"quote_capped":true,"section":["Population variance and sample variance"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The simplest estimators for population mean and population variance are simply the mean and variance of the sample, the sample mean and (uncorrected) sample variance – these are consistent estimators (they converge to the value of the whole population as the number of samples increases) but can be improved.","segments":[{"text":"The simplest estimators for population mean and population variance are simply the mean and variance of the sample, the sample mean and (uncorrected) sample variance – these are consistent estimators (they converge to the value of the whole population as the number of samples increases) but can be improved."}]},"unresolved":null},{"absence":null,"basis":"ee437addacd34d26d23ccc344ac41c30d0b63acbdd4d510b4ad5e9bcd36507d9","coverage":null,"id":"enwiki-32344-1368633150::In-text #5700a0c5","item":"In-text #5700a0c5","kind":"definition","locations":[{"challenge":"survived","commit":"4453b52d2468f4c346a8711d728c0742e7483c9b","confidence":"medium","declaration":"Batteries.RunningStats.variance","end_line":61,"library":"batteries","line":60,"location_key":"ee437addacd34d26d23ccc344ac41c30d0b63acbdd4d510b4ad5e9bcd36507d9","module":"Batteries.Data.RunningStats","note":"Lean keeps the observations in a Welford accumulator of floating point numbers instead of a list of real numbers, and returns the accumulated squared deviations about the mean divided by the recorded count.","pair_key":"1b286a0c3c20070326b58dd561b7b513e1d0113e4793394d21e611348fda67bb","path":"Batteries/Data/RunningStats.lean","proof_status":"definition","rank":1,"relation":"closeMatch","repo":"https://github.com/leanprover-community/batteries","signature":{"elided":false,"text":"def Batteries.RunningStats.variance : Batteries.RunningStats → Float"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"5955ca09ab7f93596c9bcaad41e1c4ad1d6c4066a6cc73194e21e5ece1c5863a","prominence":"central","quote":{"exact":"Most simply, the sample variance is computed as the sum of squared"},"quote_capped":true,"section":["Population variance and sample variance"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Most simply, the sample variance is computed as the sum of squared deviations about the (sample) mean, divided by n as the number of samples. However, using values other than n improves the estimator in various ways.","segments":[{"text":"Most simply, the sample variance is computed as the sum of squared deviations about the (sample) mean, divided by n as the number of samples. However, using values other than n improves the estimator in various ways."}]},"unresolved":null},{"absence":null,"basis":"275b8bedde63f99cfc446b2db028867dfc32a6deb2ce58975f0b4e8ab8e1b418","coverage":null,"id":"enwiki-32344-1368633150::In-text #c1a490e5","item":"In-text #c1a490e5","kind":"theorem","locations":[{"challenge":"survived","commit":"4453b52d2468f4c346a8711d728c0742e7483c9b","confidence":"medium","declaration":"Batteries.RunningStats.variance","end_line":61,"library":"batteries","line":60,"location_key":"275b8bedde63f99cfc446b2db028867dfc32a6deb2ce58975f0b4e8ab8e1b418","module":"Batteries.Data.RunningStats","note":"Lean stores the sample in a Welford accumulator of floating point numbers and returns its squared-deviation field divided by the count, which the library documents as the variance of the data itself.","pair_key":"301e1cd12ecee8dc752d62447966584fc7291ccec2e097a6bda0258e13682131","path":"Batteries/Data/RunningStats.lean","proof_status":"definition","rank":1,"relation":"hasPart","repo":"https://github.com/leanprover-community/batteries","signature":{"elided":false,"text":"def Batteries.RunningStats.variance : Batteries.RunningStats → Float"},"statement":false},{"challenge":"survived","commit":"4453b52d2468f4c346a8711d728c0742e7483c9b","confidence":"medium","declaration":"Batteries.RunningStats.sampleVariance","end_line":66,"library":"batteries","line":65,"location_key":"e44542b1ed366f1d71882f280bb298497aa2f21ac1983f1e3e3d01f3f92d3e8a","module":"Batteries.Data.RunningStats","note":"It is the quotient with the second denominator and its docstring calls the result unbiased, but as a definition it does not assert the equality of the estimator's expectation with the population variance that this conjunct claims.","pair_key":"993fe5eaa9e3c8a93194169ba128f480b25a6fa5a817f4decbaa240f75586614","path":"Batteries/Data/RunningStats.lean","proof_status":"definition","rank":2,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/batteries","signature":{"elided":false,"text":"def Batteries.RunningStats.sampleVariance : Batteries.RunningStats → Float"},"statement":false},{"challenge":"survived","commit":"64c2773ffad3e5453b9f40c62e693b3669ade83f","confidence":"medium","declaration":"MetaMathlibExt.initialSegmentSampleVariance","library":"atlas","line":41,"location_key":"aa0dd7be164152979b7bc32f39175441c6b5583168cf31fe4daec85b7afccbbb","module":"MathlibExt.Analysis.Asymptotics.TaylorInitialSampleVariance","note":"It defines the quotient with the second denominator for a sequence of natural-number observations without asserting any property of its expectation, so the unbiasedness this conjunct claims is not among the things it says.","pair_key":"4ea7a7d3db599f801324aba023925770ab5fb45ddb475fec6c2226076a19ef32","path":"MathlibExt/Analysis/Asymptotics/TaylorInitialSampleVariance.lean","proof_status":"definition","rank":3,"relation":"relatedMatch","repo":"https://github.com/facebookresearch/atlas-lean","signature":{"elided":false,"text":"def MetaMathlibExt.initialSegmentSampleVariance : (ℕ → ℕ) → ℕ → ℝ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"0936acef43239b1ce7fc0710cc63caedbf22ef5025ebdee3b781a6bf1a1de17f","prominence":"central","quote":{"exact":"Four common values for the denominator are n, n − 1, n"},"quote_capped":true,"section":["Population variance and sample variance"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Four common values for the denominator are n, n − 1, n + 1, and n − 1.5: n is the simplest (the variance of the sample), n − 1 eliminates bias,[10] n + 1 minimizes mean squared error for the normal distribution,[11] and n − 1.5 mostly eliminates bias in unbiased estimation of standard deviation for the normal distribution.","segments":[{"text":"Four common values for the denominator are n, n − 1, n + 1, and n − 1.5: n is the simplest (the variance of the sample), n − 1 eliminates bias,"},{"ref":"[10]"},{"text":" n + 1 minimizes mean squared error for the normal distribution,"},{"ref":"[11]"},{"text":" and n − 1.5 mostly eliminates bias in unbiased estimation of standard deviation for the normal distribution."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":0,"queries":3,"sha256":"7a5bf8f834c65a27857342ca2d2ed39040b6398d8fe731af53d811abf864710b"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #e6e1317d","item":"In-text #e6e1317d","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"f05c839a38e20f8e456b6bfe668886a3372b32fd26a360bfa07a46c4f31f26c4","prominence":"central","quote":{"exact":"Firstly, if the true population mean is unknown, then the sample variance"},"quote_capped":true,"section":["Population variance and sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":"; correcting this factor, resulting in the sum of squared deviations about the sample mean divided by n − 1 instead of n, is called Bessel's correction.","segments":[{"text":"; correcting this factor, resulting in the sum of squared deviations about the sample mean divided by n − 1 instead of n, is called Bessel's correction."}]},"layer":"Firstly, if the true population mean is unknown, then the sample variance (which uses the sample mean in place of the true mean) is a biased estimator: it underestimates the variance by a factor of (n − 1) / n","segments":[{"text":"Firstly, if the true population mean is unknown, then the sample variance (which uses the sample mean in place of the true mean) is a biased estimator: it underestimates the variance by a factor of (n − 1) / n"}]},"unresolved":null},{"absence":null,"basis":"badea17a16ce3b108e445ef0764409b2258c1660dadfefcdf0189817a82052e0","coverage":null,"id":"enwiki-32344-1368633150::In-text #338a4705","item":"In-text #338a4705","kind":"definition","locations":[{"challenge":"survived","commit":"4453b52d2468f4c346a8711d728c0742e7483c9b","confidence":"medium","declaration":"Batteries.RunningStats.sampleVariance","end_line":66,"library":"batteries","line":65,"location_key":"badea17a16ce3b108e445ef0764409b2258c1660dadfefcdf0189817a82052e0","module":"Batteries.Data.RunningStats","note":"Lean holds the sample in a Welford accumulator of floating point numbers and returns its squared-deviation field divided by the count less one, which the library documents as the unbiased variance of the stream.","pair_key":"072f1e80e74f57f4cb36df1e37b197e6fc7bea5355109681a84fb1bd3dbd5fab","path":"Batteries/Data/RunningStats.lean","proof_status":"definition","rank":1,"relation":"closeMatch","repo":"https://github.com/leanprover-community/batteries","signature":{"elided":false,"text":"def Batteries.RunningStats.sampleVariance : Batteries.RunningStats → Float"},"statement":false},{"challenge":"survived","commit":"64c2773ffad3e5453b9f40c62e693b3669ade83f","confidence":"medium","declaration":"MetaMathlibExt.initialSegmentSampleVariance","library":"atlas","line":41,"location_key":"a2712c518bcf757f987e68b1bd5dbd71ad8cb2a5dae21e13c8756c0c62b1754a","module":"MathlibExt.Analysis.Asymptotics.TaylorInitialSampleVariance","note":"The declaration fixes observations valued in the natural numbers and indexed from one, where the article's data are arbitrary measurements, and it inlines the sample mean into the formula.","pair_key":"9e9cb90ba3498652617253261a2585ea6b3e44cc0e4bd25152eaefbdf9bf42ad","path":"MathlibExt/Analysis/Asymptotics/TaylorInitialSampleVariance.lean","proof_status":"definition","rank":2,"relation":"narrowMatch","repo":"https://github.com/facebookresearch/atlas-lean","signature":{"elided":false,"text":"def MetaMathlibExt.initialSegmentSampleVariance : (ℕ → ℕ) → ℕ → ℝ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"261b459348d040c6eb1e9b3b88c99d3fabbf95b40d5b94b9a0bbf0123adbeb00","prominence":"central","quote":{"exact":"correcting this factor, resulting in the sum of squared deviations about the"},"quote_capped":true,"section":["Population variance and sample variance"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"Firstly, if the true population mean is unknown, then the sample variance (which uses the sample mean in place of the true mean) is a biased estimator: it underestimates the variance by a factor of (n − 1) / n; ","segments":[{"text":"Firstly, if the true population mean is unknown, then the sample variance (which uses the sample mean in place of the true mean) is a biased estimator: it underestimates the variance by a factor of (n − 1) / n; "}]},"layer":"correcting this factor, resulting in the sum of squared deviations about the sample mean divided by n − 1 instead of n, is called Bessel's correction.[10]","segments":[{"text":"correcting this factor, resulting in the sum of squared deviations about the sample mean divided by n − 1 instead of n, is called Bessel's correction."},{"ref":"[10]"}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":0,"queries":3,"sha256":"ae6d607e246c6f195a4a3d8f0bce4640312a17b26b27fdcb38dc7e6f9ff898a3"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #a88110fe","item":"In-text #a88110fe","kind":"definition","locations":[{"challenge":"downgraded","commit":"64c2773ffad3e5453b9f40c62e693b3669ade83f","confidence":"medium","declaration":"MetaMathlibExt.initialSegmentSampleVariance","library":"atlas","line":41,"location_key":"34343f3dbccbd79d2e203f3abd49b610e4b4abc04ffd5bc50422d06f06c88d5c","module":"MathlibExt.Analysis.Asymptotics.TaylorInitialSampleVariance","note":"The declaration fixes the observations to a sequence of natural numbers indexed from 1, and it carries the estimator alone, with nothing said about its expectation.","pair_key":"27f41c602b0bf26e2670d36e1191c0d859a7afbe5e6e62653b4f2276c6f37853","path":"MathlibExt/Analysis/Asymptotics/TaylorInitialSampleVariance.lean","proof_status":"definition","rank":1,"relation":"relatedMatch","repo":"https://github.com/facebookresearch/atlas-lean","signature":{"elided":false,"text":"def MetaMathlibExt.initialSegmentSampleVariance : (ℕ → ℕ) → ℕ → ℝ"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"c9be44f7d15c05ec342e2cf9192951ec3deb7850b8ca4a1d5573624e18ebc602","prominence":"central","quote":{"exact":"The resulting estimator is unbiased and is called the (corrected) sample variance"},"quote_capped":true,"section":["Population variance and sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The resulting estimator is unbiased and is called the (corrected) sample variance or unbiased sample variance.","segments":[{"text":"The resulting estimator is unbiased and is called the (corrected) sample variance or unbiased sample variance."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":2,"queries":4,"sha256":"c717dbaa6682aeabe8572541f9d454ed08be1bae24f4754a02a1f5df5c305e14"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #995d4394","item":"In-text #995d4394","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"2ad0e8104fcc0daf407f1791ab5aefa553e719c9ba2429a5831ae23984ac150c","prominence":"supporting","quote":{"exact":"If the mean is determined in some other way than from the"},"quote_capped":true,"section":["Population variance and sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"If the mean is determined in some other way than from the same samples used to estimate the variance, then this bias does not arise, and the variance can safely be estimated as that of the samples about the (independently known) mean.","segments":[{"text":"If the mean is determined in some other way than from the same samples used to estimate the variance, then this bias does not arise, and the variance can safely be estimated as that of the samples about the (independently known) mean."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":2,"queries":3,"sha256":"79e479058770d82706a1d495b1ceb8e23130b6e83b295357ed102ce012df8f02"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #25ee24ef","item":"In-text #25ee24ef","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"ccca9680948b5dc2ac86f2f1df15c510312f76892a41abae78132ad79098819a","prominence":"central","quote":{"exact":"Secondly, the sample variance does not generally minimize mean squared error between"},"quote_capped":true,"section":["Population variance and sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Secondly, the sample variance does not generally minimize mean squared error between sample variance and population variance.","segments":[{"text":"Secondly, the sample variance does not generally minimize mean squared error between sample variance and population variance."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":1,"queries":3,"sha256":"6fa864ef3b76efffffcbb91817de540c9c1e727e43f7fec7f2a81220982549ff"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #23df333c","item":"In-text #23df333c","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"cf510d06d28742df71c19f00f389046d2a6dc71291e594dfbd1cac38e0b7bdd9","prominence":"supporting","quote":{"exact":"Correcting for bias often makes this worse: one can always choose a"},"quote_capped":true,"section":["Population variance and sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Correcting for bias often makes this worse: one can always choose a scale factor that performs better than the corrected sample variance, though the optimal scale factor depends on the excess kurtosis of the population (see Mean squared error § Variance) and introduces bias.","segments":[{"text":"Correcting for bias often makes this worse: one can always choose a scale factor that performs better than the corrected sample variance, though the optimal scale factor depends on the excess kurtosis of the population (see Mean squared error § Variance) and introduces bias."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":1,"queries":3,"sha256":"d0e08f012dbf0a38cb74930234adae9961e0c3fee57fcdc1e7c8d397ce45cd5d"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #163e33b8","item":"In-text #163e33b8","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"8f9105e8f9fb8eb74109dfa3ff494e23c250c51c3532d5ab037483f75f380dee","prominence":"supporting","quote":{"exact":"This always consists of scaling down the unbiased estimator (dividing by a"},"quote_capped":true,"section":["Population variance and sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"This always consists of scaling down the unbiased estimator (dividing by a number larger than n − 1) and is a simple example of a shrinkage estimator: one \"shrinks\" the unbiased estimator towards zero.","segments":[{"text":"This always consists of scaling down the unbiased estimator (dividing by a number larger than n − 1) and is a simple example of a shrinkage estimator: one \"shrinks\" the unbiased estimator towards zero."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":1,"queries":3,"sha256":"bdf454fc34b1ad7c59816ff8fa19831ecc03d8e74182d3907d79da8de71bc73d"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #7f1bbfd7","item":"In-text #7f1bbfd7","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"a7ea7900aeca13e8c51799bd37a8dc90e9fc42da064644372c65730a4e1d5e1c","prominence":"central","quote":{"exact":"For the normal distribution, dividing by n + 1 (instead of n"},"quote_capped":true,"section":["Population variance and sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"For the normal distribution, dividing by n + 1 (instead of n − 1 or n) minimizes mean squared error.[11]","segments":[{"text":"For the normal distribution, dividing by n + 1 (instead of n − 1 or n) minimizes mean squared error."},{"ref":"[11]"}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":2,"queries":3,"sha256":"8ce78da3260e18812ec85e90aca17fdc72fff8a9534d50efdeab96a20c7d82f6"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #72d59879","item":"In-text #72d59879","kind":"definition","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"66560185ec99fda29bfc0dd834457416ff62c3585fecd53c965ca4a0ee7d81e9","prominence":"supporting","quote":{"exact":"The resulting estimator is biased, however, and is known as the biased"},"quote_capped":true,"section":["Population variance and sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The resulting estimator is biased, however, and is known as the biased sample variation.","segments":[{"text":"The resulting estimator is biased, however, and is known as the biased sample variation."}]},"unresolved":null},{"absence":null,"basis":"2eb6542c955047808f7996cc4556428c1ec65b8a3be053af4c4038f1be64d686","coverage":null,"id":"enwiki-32344-1368633150::In-text #21e8de5c","item":"In-text #21e8de5c","kind":"definition","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance","end_line":64,"library":"mathlib","line":64,"location_key":"2eb6542c955047808f7996cc4556428c1ec65b8a3be053af4c4038f1be64d686","module":"Mathlib.Probability.Moments.Variance","note":"Lean takes the variance against an arbitrary measure, and the passage is its reading when each of the N entries carries the same weight.","pair_key":"856513fe1ad7c844203f84698a5d397b3987ed7f861482aa0260228c88ac2ffe","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"definition","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def ProbabilityTheory.variance {Ω : Type*} {mΩ : MeasurableSpace Ω} : (Ω → ℝ) → MeasureTheory.Measure Ω → ℝ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_eq_sub","end_line":228,"library":"mathlib","line":226,"location_key":"46b9042cc8a8dedde553b469851499bfa0cfec384cd867f920540ad765c89cce","module":"Mathlib.Probability.Moments.Variance","note":"Lean states the identity for any probability measure with a square-integrable variable, where the passage's mean is that variable's integral.","pair_key":"18ebf6f39fb7dae1bba0fb683436036c9349dfa7f52e1fa49e3c3b7b41a41490","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_sub {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {X : Ω → ℝ} : MeasureTheory.MemLp X 2 μ → ProbabilityTheory.variance X μ = ∫ (x : Ω), (X ^ 2) x ∂μ - (∫ (x : Ω), X x ∂μ) ^ 2"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_eq_integral","end_line":159,"library":"mathlib","line":157,"location_key":"f68064d9b6580eee280a28cab0feae06113fb9daaccb0906fc52e1cdadbbd037","module":"Mathlib.Probability.Moments.Variance","note":"Lean gives the variance as the integral of the squared deviation from the mean against any measure, and equal weights on N entries turn that integral into the passage's average.","pair_key":"20b393eacc026a00a0097b5fd8b4ffc85c5d3cf593f747c367fd9097a1f9c1fe","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":3,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_integral {Ω : Type*} {mΩ : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} : AEMeasurable X μ → ProbabilityTheory.variance X μ = ∫ (ω : Ω), (X ω - ∫ (x : Ω), X x ∂μ) ^ 2 ∂μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"e3cd71511165f612589dfdcd1fdf9817446be8a0575fe7b3557b83a84fdb8f15","prominence":"central","quote":{"exact":"In general, the population variance of a finite population of size ⁠"},"quote_capped":true,"section":["Population variance and sample variance","Population variance"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"In general, the population variance of a finite population of size ⁠ N {\\displaystyle N} ⁠ with values xi is given by σ 2 = 1 N ∑ i = 1 N ( x i − μ ) 2 = 1 N ∑ i = 1 N ( x i 2 − 2 μ x i + μ 2 ) = ( 1 N ∑ i = 1 N x i 2 ) − 2 μ ( 1 N ∑ i = 1 N x i ) + μ 2 = E ⁡ [ x i 2 ] − μ 2 , {\\displaystyle {\\begin{aligned}\\sigma ^{2}&={\\frac {1}{N}}\\sum _{i=1}^{N}{\\left(x_{i}-\\mu \\right)}^{2}={\\frac {1}{N}}\\sum _{i=1}^{N}\\left(x_{i}^{2}-2\\mu x_{i}+\\mu ^{2}\\right)\\\\[5pt]&=\\left({\\frac {1}{N}}\\sum _{i=1}^{N}x_{i}^{2}\\right)-2\\mu \\left({\\frac {1}{N}}\\sum _{i=1}^{N}x_{i}\\right)+\\mu ^{2}\\\\[5pt]&=\\operatorname {E} [x_{i}^{2}]-\\mu ^{2},\\end{aligned}}} where the population mean is μ = E ⁡ [ x i ] = 1 N ∑ i = 1 N x i {\\textstyle \\mu =\\operatorname {E} [x_{i}]={\\frac {1}{N}}\\sum _{i=1}^{N}x_{i}} and ⁠ E ⁡ [ x i 2 ] = ( 1 N ∑ i = 1 N x i 2 ) {\\displaystyle \\textstyle \\operatorname {E} [x_{i}^{2}]=\\left({\\frac {1}{N}}\\sum _{i=1}^{N}x_{i}^{2}\\right)} ⁠, where E {\\textstyle \\operatorname {E} } is the expectation value operator.","segments":[{"text":"In general, the population variance of a finite population of size ⁠ "},{"tex":"N"},{"text":" ⁠ with values xi is given by "},{"display":true,"tex":"\\begin{aligned}\\sigma ^{2}&={\\frac {1}{N}}\\sum _{i=1}^{N}{\\left(x_{i}-\\mu \\right)}^{2}={\\frac {1}{N}}\\sum _{i=1}^{N}\\left(x_{i}^{2}-2\\mu x_{i}+\\mu ^{2}\\right)\\\\[5pt]&=\\left({\\frac {1}{N}}\\sum _{i=1}^{N}x_{i}^{2}\\right)-2\\mu \\left({\\frac {1}{N}}\\sum _{i=1}^{N}x_{i}\\right)+\\mu ^{2}\\\\[5pt]&=\\operatorname {E} [x_{i}^{2}]-\\mu ^{2},\\end{aligned}"},{"text":" where the population mean is "},{"tex":"\\textstyle \\mu =\\operatorname {E} [x_{i}]={\\frac {1}{N}}\\sum _{i=1}^{N}x_{i}"},{"text":" and ⁠ "},{"tex":"\\textstyle \\operatorname {E} [x_{i}^{2}]=\\left({\\frac {1}{N}}\\sum _{i=1}^{N}x_{i}^{2}\\right)"},{"text":" ⁠, where "},{"tex":"\\textstyle \\operatorname {E}"},{"text":" is the expectation value operator."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":3,"queries":4,"sha256":"7e2797c5dd36240dcd6f431006f0eddcb94e576aee1da00d3acab5090d977c51"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #837e4fcc","item":"In-text #837e4fcc","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"e54b0a299489837bed90a78377a6ac882b22a0bf5c1571e4188a20e1aa07bb75","prominence":"supporting","quote":{"exact":"The population variance can also be computed using[13] σ 2 = 1"},"quote_capped":true,"section":["Population variance and sample variance","Population variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The population variance can also be computed using[13] σ 2 = 1 N 2 ∑ i < j ( x i − x j ) 2 = 1 2 N 2 ∑ i , j = 1 N ( x i − x j ) 2 . {\\displaystyle \\sigma ^{2}={\\frac {1}{N^{2}}}\\sum _{i<j}\\left(x_{i}-x_{j}\\right)^{2}={\\frac {1}{2N^{2}}}\\sum _{i,j=1}^{N}\\left(x_{i}-x_{j}\\right)^{2}.}","segments":[{"text":"The population variance can also be computed using"},{"ref":"[13]"},{"text":" "},{"display":true,"tex":"\\sigma ^{2}={\\frac {1}{N^{2}}}\\sum _{i<j}\\left(x_{i}-x_{j}\\right)^{2}={\\frac {1}{2N^{2}}}\\sum _{i,j=1}^{N}\\left(x_{i}-x_{j}\\right)^{2}."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":3,"queries":4,"sha256":"a579b47c6fc8eedd1b4424b2f92f2d6921fc428c0fd58a5321daa1d7723cb620"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #8156da5d","item":"In-text #8156da5d","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"36bfe9126bf5d66d9f508ab541a93c8b2a0cbfdb4da5d418a514ecbbcdd02d47","prominence":"supporting","quote":{"exact":"This is true because 1 2 N 2 ∑ i , j"},"quote_capped":true,"section":["Population variance and sample variance","Population variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"(The right side has duplicate terms in the sum while the middle side has only unique terms to sum.) ","segments":[{"text":"(The right side has duplicate terms in the sum while the middle side has only unique terms to sum.) "}]},"layer":"This is true because 1 2 N 2 ∑ i , j = 1 N ( x i − x j ) 2 = 1 2 N 2 ∑ i , j = 1 N ( x i 2 − 2 x i x j + x j 2 ) = 1 2 N ∑ j = 1 N ( 1 N ∑ i = 1 N x i 2 ) − ( 1 N ∑ i = 1 N x i ) ( 1 N ∑ j = 1 N x j ) + 1 2 N ∑ i = 1 N ( 1 N ∑ j = 1 N x j 2 ) = 1 2 ( σ 2 + μ 2 ) − μ 2 + 1 2 ( σ 2 + μ 2 ) = σ 2 . {\\displaystyle {\\begin{aligned}&{\\frac {1}{2N^{2}}}\\sum _{i,j=1}^{N}{\\left(x_{i}-x_{j}\\right)}^{2}\\\\[5pt]={}&{\\frac {1}{2N^{2}}}\\sum _{i,j=1}^{N}\\left(x_{i}^{2}-2x_{i}x_{j}+x_{j}^{2}\\right)\\\\[5pt]={}&{\\frac {1}{2N}}\\sum _{j=1}^{N}\\left({\\frac {1}{N}}\\sum _{i=1}^{N}x_{i}^{2}\\right)-\\left({\\frac {1}{N}}\\sum _{i=1}^{N}x_{i}\\right)\\left({\\frac {1}{N}}\\sum _{j=1}^{N}x_{j}\\right)+{\\frac {1}{2N}}\\sum _{i=1}^{N}\\left({\\frac {1}{N}}\\sum _{j=1}^{N}x_{j}^{2}\\right)\\\\[5pt]={}&{\\frac {1}{2}}\\left(\\sigma ^{2}+\\mu ^{2}\\right)-\\mu ^{2}+{\\frac {1}{2}}\\left(\\sigma ^{2}+\\mu ^{2}\\right)\\\\[5pt]={}&\\sigma ^{2}.\\end{aligned}}}","segments":[{"text":"This is true because "},{"display":true,"tex":"\\begin{aligned}&{\\frac {1}{2N^{2}}}\\sum _{i,j=1}^{N}{\\left(x_{i}-x_{j}\\right)}^{2}\\\\[5pt]={}&{\\frac {1}{2N^{2}}}\\sum _{i,j=1}^{N}\\left(x_{i}^{2}-2x_{i}x_{j}+x_{j}^{2}\\right)\\\\[5pt]={}&{\\frac {1}{2N}}\\sum _{j=1}^{N}\\left({\\frac {1}{N}}\\sum _{i=1}^{N}x_{i}^{2}\\right)-\\left({\\frac {1}{N}}\\sum _{i=1}^{N}x_{i}\\right)\\left({\\frac {1}{N}}\\sum _{j=1}^{N}x_{j}\\right)+{\\frac {1}{2N}}\\sum _{i=1}^{N}\\left({\\frac {1}{N}}\\sum _{j=1}^{N}x_{j}^{2}\\right)\\\\[5pt]={}&{\\frac {1}{2}}\\left(\\sigma ^{2}+\\mu ^{2}\\right)-\\mu ^{2}+{\\frac {1}{2}}\\left(\\sigma ^{2}+\\mu ^{2}\\right)\\\\[5pt]={}&\\sigma ^{2}.\\end{aligned}"}]},"unresolved":null},{"absence":null,"basis":"5fed0466373dc23bc2d59ccaee28605e7285158b5e07218dd97ec12a4ae22612","coverage":null,"id":"enwiki-32344-1368633150::In-text #bba4b785","item":"In-text #bba4b785","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.HasLaw.variance_eq","end_line":205,"library":"mathlib","line":203,"location_key":"5fed0466373dc23bc2d59ccaee28605e7285158b5e07218dd97ec12a4ae22612","module":"Mathlib.Probability.HasLaw","note":"The declaration is stated for an arbitrary real random variable on an arbitrary measure space, so it reaches well beyond the finite population the passage treats.","pair_key":"b49ce312c721ca15cb807efd7b66e888699dbbef886f6e344884bbea82f261b1","path":"Mathlib/Probability/HasLaw.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.HasLaw.variance_eq {Ω : Type*} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {μ : MeasureTheory.Measure ℝ} {X : Ω → ℝ} : ProbabilityTheory.HasLaw X μ P → ProbabilityTheory.variance X P = ProbabilityTheory.variance id μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_id_map","end_line":339,"library":"mathlib","line":338,"location_key":"0dff05111f45eb70a040579279b4dda97b893184182fdb2314d06884053c8a3c","module":"Mathlib.Probability.Moments.Variance","note":"It is stated for any measure and any real random variable, where the passage has one finite population with equal weights.","pair_key":"792d1a53fbaa77ec45a10c7a4a8c77796115c5dce41ff69f638a2a6503b8162e","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_id_map {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X : Ω → ℝ} : AEMeasurable X μ → ProbabilityTheory.variance id (MeasureTheory.Measure.map X μ) = ProbabilityTheory.variance X μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"6a153268a4821feeb5660ce7279d2d5d0fec6dc52d425acce293a7d0d42100bf","prominence":"supporting","quote":{"exact":"The population variance matches the variance of the generating probability distribution."},"quote_capped":false,"section":["Population variance and sample variance","Population variance"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The population variance matches the variance of the generating probability distribution.","segments":[{"text":"The population variance matches the variance of the generating probability distribution."}]},"unresolved":null},{"absence":null,"basis":"b59e2ec823db6fe7c3b7145824e90dcb20ba3b327556c5fbbcee3dd279997f06","coverage":null,"id":"enwiki-32344-1368633150::In-text #ec2c9d72","item":"In-text #ec2c9d72","kind":"definition","locations":[{"challenge":"survived","commit":"4453b52d2468f4c346a8711d728c0742e7483c9b","confidence":"medium","declaration":"Batteries.RunningStats.sampleVariance","end_line":66,"library":"batteries","line":65,"location_key":"b59e2ec823db6fe7c3b7145824e90dcb20ba3b327556c5fbbcee3dd279997f06","module":"Batteries.Data.RunningStats","note":"The library pins one representation, floating-point observations held in an accumulator, and one divisor for the collected sample.","pair_key":"1bb8c71d82ad93113c4c731f3ffb5d4486dfbee68d39b1cb11e16c96efc81f00","path":"Batteries/Data/RunningStats.lean","proof_status":"definition","rank":1,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/batteries","signature":{"elided":false,"text":"def Batteries.RunningStats.sampleVariance : Batteries.RunningStats → Float"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"267f188933f2a96c72c96a9663e4c9ca351d90eaf3a7f320d8ba561e50b45ac4","prominence":"central","quote":{"exact":"This is generally referred to as sample variance or empirical variance."},"quote_capped":false,"section":["Population variance and sample variance","Sample variance","Biased sample variance"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"This is generally referred to as sample variance or empirical variance.","segments":[{"text":"This is generally referred to as sample variance or empirical variance."}]},"unresolved":null},{"absence":null,"basis":"6e1843bda8c245d5b5dc9fd9a7f566ebcc2ec7da10a2e577283b01874b0a4789","coverage":null,"id":"enwiki-32344-1368633150::In-text #ac225af2","item":"In-text #ac225af2","kind":"definition","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_eq_sub","end_line":228,"library":"mathlib","line":226,"location_key":"1ac510d7963018785a0d52093c711b0bdef020970e2dd9dec452c8ee1c2d0aa2","module":"Mathlib.Probability.Moments.Variance","note":"It is stated against an arbitrary probability measure, of which the uniform measure on the n draws is one choice, and rewriting its integrals as averages over those draws is only a change of encoding.","pair_key":"733157251e78035778a06441b84e838785ba390e773c95a189fb950d5c7f49a9","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_sub {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {X : Ω → ℝ} : MeasureTheory.MemLp X 2 μ → ProbabilityTheory.variance X μ = ∫ (x : Ω), (X ^ 2) x ∂μ - (∫ (x : Ω), X x ∂μ) ^ 2"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance","end_line":64,"library":"mathlib","line":64,"location_key":"6e1843bda8c245d5b5dc9fd9a7f566ebcc2ec7da10a2e577283b01874b0a4789","module":"Mathlib.Probability.Moments.Variance","note":"The library defines the variance against an arbitrary measure on an arbitrary space, where the passage fixes the uniform measure on n draws.","pair_key":"085509a16405ecef5c9286ff7df06da286e97ad57bf6fdc205d5878999441e96","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"definition","rank":2,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def ProbabilityTheory.variance {Ω : Type*} {mΩ : MeasurableSpace Ω} : (Ω → ℝ) → MeasureTheory.Measure Ω → ℝ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance_eq_integral","end_line":159,"library":"mathlib","line":157,"location_key":"bf1b64e4cf8c5d9582432d719332dcfa302f67f224f6e8fb6175d7e78a8b5516","module":"Mathlib.Probability.Moments.Variance","note":"It gives the average of the squared deviations, the middle expression the passage passes through, rather than the equation it asserts end to end.","pair_key":"186934b45b9a83de9601534d674ab263ac737477bbc30d1f703c33bfdeb27406","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":3,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_integral {Ω : Type*} {mΩ : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} : AEMeasurable X μ → ProbabilityTheory.variance X μ = ∫ (ω : Ω), (X ω - ∫ (x : Ω), X x ∂μ) ^ 2 ∂μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"60a0efa89adf130e65fcac2ef466dcacbcf4ac73b8f91e70ce22d81271811a02","prominence":"central","quote":{"exact":"We take a sample with replacement of ⁠ n {\\displaystyle n} ⁠"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Biased sample variance"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":" Here, Y ¯ {\\displaystyle {\\overline {Y}}} denotes the sample mean: Y ¯ = 1 n ∑ i = 1 n Y i . {\\displaystyle {\\overline {Y}}={\\frac {1}{n}}\\sum _{i=1}^{n}Y_{i}.}","segments":[{"text":" Here, "},{"tex":"\\overline {Y}"},{"text":" denotes the sample mean: "},{"display":true,"tex":"{\\overline {Y}}={\\frac {1}{n}}\\sum _{i=1}^{n}Y_{i}."}]},"layer":"We take a sample with replacement of ⁠ n {\\displaystyle n} ⁠ values Y1, ..., Yn from the population of size ⁠ N {\\displaystyle N} ⁠, where n < N, and estimate the variance on the basis of this sample.[15] Directly taking the variance of the sample data gives the average of the squared deviations:[16] S ~ Y 2 = 1 n ∑ i = 1 n ( Y i − Y ¯ ) 2 = ( 1 n ∑ i = 1 n Y i 2 ) − Y ¯ 2 = 1 n 2 ∑ i , j : i < j ( Y i − Y j ) 2 . {\\displaystyle {\\tilde {S}}_{Y}^{2}={\\frac {1}{n}}\\sum _{i=1}^{n}\\left(Y_{i}-{\\overline {Y}}\\right)^{2}=\\left({\\frac {1}{n}}\\sum _{i=1}^{n}Y_{i}^{2}\\right)-{\\overline {Y}}^{2}={\\frac {1}{n^{2}}}\\sum _{i,j\\,:\\,i<j}\\left(Y_{i}-Y_{j}\\right)^{2}.} (See the section § Population variance for the derivation of this formula.)","segments":[{"text":"We take a sample with replacement of ⁠ "},{"tex":"n"},{"text":" ⁠ values Y1, ..., Yn from the population of size ⁠ "},{"tex":"N"},{"text":" ⁠, where n < N, and estimate the variance on the basis of this sample."},{"ref":"[15]"},{"text":" Directly taking the variance of the sample data gives the average of the squared deviations:"},{"ref":"[16]"},{"text":" "},{"display":true,"tex":"{\\tilde {S}}_{Y}^{2}={\\frac {1}{n}}\\sum _{i=1}^{n}\\left(Y_{i}-{\\overline {Y}}\\right)^{2}=\\left({\\frac {1}{n}}\\sum _{i=1}^{n}Y_{i}^{2}\\right)-{\\overline {Y}}^{2}={\\frac {1}{n^{2}}}\\sum _{i,j\\,:\\,i<j}\\left(Y_{i}-Y_{j}\\right)^{2}."},{"text":" (See the section § Population variance for the derivation of this formula.)"}]},"unresolved":null},{"absence":null,"basis":"4cce67d7686c36a1a6be54a1a3388f6221662b50519f2cad4ceea08bc02c3e05","coverage":null,"id":"enwiki-32344-1368633150::In-text #af26a02a","item":"In-text #af26a02a","kind":"notation","locations":[{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"Fintype.expect_eq_sum_div_card","end_line":372,"library":"mathlib","line":371,"location_key":"34dbb0ab082a651037ad12aa10d9c640b146c5fbfbecf24faa935a0baee972dd","module":"Mathlib.Algebra.BigOperators.Expect","note":"It is stated over any characteristic-zero semifield where the passage has the real observations of one sample.","pair_key":"57fb6fdc4d4c2980756cb41ae7571c0f508b61390b144035cbd37edcf5bd0303","path":"Mathlib/Algebra/BigOperators/Expect.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem Fintype.expect_eq_sum_div_card {ι : Type*} {K : Type*} [Semifield K] [CharZero K] [Fintype ι] (f : ι → K) : (Finset.univ.expect fun i ↦ f i) = (∑ i, f i) / ↑(Fintype.card ι)"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"Finset.expect","end_line":61,"library":"mathlib","line":60,"location_key":"4cce67d7686c36a1a6be54a1a3388f6221662b50519f2cad4ceea08bc02c3e05","module":"Mathlib.Algebra.BigOperators.Expect","note":"The library defines the average over an arbitrary finset of a module over the nonnegative rationals, which includes the passage's real sample.","pair_key":"dc54fb0e33b2370d77cfca76b080b49b3c3bf1bfb5f84ae632da2131bcb8f038","path":"Mathlib/Algebra/BigOperators/Expect.lean","proof_status":"definition","rank":2,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def Finset.expect {ι : Type*} {M : Type*} [AddCommMonoid M] [_root_.Module ℚ≥0 M] : Finset ι → (ι → M) → M"},"statement":false},{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.finiteMean_eq_inv_smul_sum","end_line":58,"library":"tauceti","line":56,"location_key":"9d44fa3c609eedd95be1155e4a62ae5511ec6ef52cb46c903356e6a30a667f85","module":"TauCeti.Analysis.Convex.FiniteMean","note":"The declaration is stated for a family of vectors in any module over any field, where the passage has n real observations.","pair_key":"6e250bef9fc3486e3a9d91f3983b4a0f2bd57cf487b9f15c4727a970dc237862","path":"TauCeti/Analysis/Convex/FiniteMean.lean","proof_status":"proved","rank":3,"relation":"broadMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.finiteMean_eq_inv_smul_sum {R : Type*} {E : Type*} {ι : Type*} [Field R] [AddCommGroup E] [_root_.Module R E] [Fintype ι] (z : ι → E) : TauCeti.finiteMean R z = (↑(Fintype.card ι))⁻¹ • ∑ i, z i"},"statement":false},{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.finiteMean","end_line":51,"library":"tauceti","line":50,"location_key":"5eb945411a8096876f83868e4a1687a011e4e1dc3252c06cbce1bca1a44c9d2a","module":"TauCeti.Analysis.Convex.FiniteMean","note":"It defines the equal-weight mean of a finite family of vectors over any field, which covers the passage's real sample.","pair_key":"a3bf1dd5d452be1da05edbde5fe2c38a698dad8bfc4d2a4ea8d57c529ec768bc","path":"TauCeti/Analysis/Convex/FiniteMean.lean","proof_status":"definition","rank":4,"relation":"broadMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"def TauCeti.finiteMean (R : Type*) {E : Type*} {ι : Type*} [Field R] [AddCommGroup E] [_root_.Module R E] [Fintype ι] : (ι → E) → E"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"0d695a076b27cbe6395f4af62314b8b238b69cfb48f90a2bc5b6988176d6cc82","prominence":"supporting","quote":{"exact":"Here, Y ¯ {\\displaystyle {\\overline {Y}}} denotes the sample mean: Y ¯"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Biased sample variance"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"S ~ Y 2 = 1 n ∑ i = 1 n ( Y i − Y ¯ ) 2 = ( 1 n ∑ i = 1 n Y i 2 ) − Y ¯ 2 = 1 n 2 ∑ i , j : i < j ( Y i − Y j ) 2 . {\\displaystyle {\\tilde {S}}_{Y}^{2}={\\frac {1}{n}}\\sum _{i=1}^{n}\\left(Y_{i}-{\\overline {Y}}\\right)^{2}=\\left({\\frac {1}{n}}\\sum _{i=1}^{n}Y_{i}^{2}\\right)-{\\overline {Y}}^{2}={\\frac {1}{n^{2}}}\\sum _{i,j\\,:\\,i<j}\\left(Y_{i}-Y_{j}\\right)^{2}.} (See the section § Population variance for the derivation of this formula.) ","segments":[{"display":true,"tex":"{\\tilde {S}}_{Y}^{2}={\\frac {1}{n}}\\sum _{i=1}^{n}\\left(Y_{i}-{\\overline {Y}}\\right)^{2}=\\left({\\frac {1}{n}}\\sum _{i=1}^{n}Y_{i}^{2}\\right)-{\\overline {Y}}^{2}={\\frac {1}{n^{2}}}\\sum _{i,j\\,:\\,i<j}\\left(Y_{i}-Y_{j}\\right)^{2}."},{"text":" (See the section § Population variance for the derivation of this formula.) "}],"trimmed":true},"layer":"Here, Y ¯ {\\displaystyle {\\overline {Y}}} denotes the sample mean: Y ¯ = 1 n ∑ i = 1 n Y i . {\\displaystyle {\\overline {Y}}={\\frac {1}{n}}\\sum _{i=1}^{n}Y_{i}.}","segments":[{"text":"Here, "},{"tex":"\\overline {Y}"},{"text":" denotes the sample mean: "},{"display":true,"tex":"{\\overline {Y}}={\\frac {1}{n}}\\sum _{i=1}^{n}Y_{i}."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":3,"queries":3,"sha256":"36af7d0539ecddf734502a324ac5ae09c063048092cbfb576d2f7360b7e15296"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #fe689ab2","item":"In-text #fe689ab2","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"2e373b8fdaee5443e716b6f731b9b1c1bd15d7954f919867d00d58c69477be8e","prominence":"supporting","quote":{"exact":"both Y ¯ {\\displaystyle {\\overline {Y}}} and S ~ Y 2 {\\displaystyle"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Biased sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"Since the Yi are selected randomly, ","segments":[{"text":"Since the Yi are selected randomly, "}]},"layer":"both Y ¯ {\\displaystyle {\\overline {Y}}} and S ~ Y 2 {\\displaystyle {\\tilde {S}}_{Y}^{2}} are random variables.","segments":[{"text":"both "},{"tex":"\\overline {Y}"},{"text":" and "},{"tex":"{\\tilde {S}}_{Y}^{2}"},{"text":" are random variables."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":4,"queries":4,"sha256":"c0dde8ebc63bd9cdcdb118d7cc134b43e46ebd739b915842d8a08f2711694010"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #6c362615","item":"In-text #6c362615","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"2d13e16d5fe1cbdf226c762621ea6b70274ec11ae5bc15bbc93184865d8c29db","prominence":"central","quote":{"exact":"Their expected values can be evaluated by averaging over the ensemble of"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Biased sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Their expected values can be evaluated by averaging over the ensemble of all possible samples {Yi} of size ⁠ n {\\displaystyle n} ⁠ from the population. For S ~ Y 2 {\\displaystyle {\\tilde {S}}_{Y}^{2}} this gives: E ⁡ [ S ~ Y 2 ] = E ⁡ [ 1 n ∑ i = 1 n ( Y i − 1 n ∑ j = 1 n Y j ) 2 ] = 1 n ∑ i = 1 n E ⁡ [ Y i 2 − 2 n Y i ∑ j = 1 n Y j + 1 n 2 ∑ j = 1 n Y j ∑ k = 1 n Y k ] = 1 n ∑ i = 1 n ( E ⁡ [ Y i 2 ] − 2 n ( ∑ j ≠ i E ⁡ [ Y i Y j ] + E ⁡ [ Y i 2 ] ) + 1 n 2 ∑ j = 1 n ∑ k ≠ j n E ⁡ [ Y j Y k ] + 1 n 2 ∑ j = 1 n E ⁡ [ Y j 2 ] ) = 1 n ∑ i = 1 n ( n − 2 n E ⁡ [ Y i 2 ] − 2 n ∑ j ≠ i E ⁡ [ Y i Y j ] + 1 n 2 ∑ j = 1 n ∑ k ≠ j n E ⁡ [ Y j Y k ] + 1 n 2 ∑ j = 1 n E ⁡ [ Y j 2 ] ) = 1 n ∑ i = 1 n [ n − 2 n ( σ 2 + μ 2 ) − 2 n ( n − 1 ) μ 2 + 1 n 2 n ( n − 1 ) μ 2 + 1 n ( σ 2 + μ 2 ) ] = n − 1 n σ 2 . {\\displaystyle {\\begin{aligned}\\operatorname {E} [{\\tilde {S}}_{Y}^{2}]&=\\operatorname {E} \\left[{\\frac {1}{n}}\\sum _{i=1}^{n}{\\left(Y_{i}-{\\frac {1}{n}}\\sum _{j=1}^{n}Y_{j}\\right)}^{2}\\right]\\\\[5pt]&={\\frac {1}{n}}\\sum _{i=1}^{n}\\operatorname {E} \\left[Y_{i}^{2}-{\\frac {2}{n}}Y_{i}\\sum _{j=1}^{n}Y_{j}+{\\frac {1}{n^{2}}}\\sum _{j=1}^{n}Y_{j}\\sum _{k=1}^{n}Y_{k}\\right]\\\\[5pt]&={\\frac {1}{n}}\\sum _{i=1}^{n}\\left(\\operatorname {E} \\left[Y_{i}^{2}\\right]-{\\frac {2}{n}}\\left(\\sum _{j\\neq i}\\operatorname {E} \\left[Y_{i}Y_{j}\\right]+\\operatorname {E} \\left[Y_{i}^{2}\\right]\\right)+{\\frac {1}{n^{2}}}\\sum _{j=1}^{n}\\sum _{k\\neq j}^{n}\\operatorname {E} \\left[Y_{j}Y_{k}\\right]+{\\frac {1}{n^{2}}}\\sum _{j=1}^{n}\\operatorname {E} \\left[Y_{j}^{2}\\right]\\right)\\\\[5pt]&={\\frac {1}{n}}\\sum _{i=1}^{n}\\left({\\frac {n-2}{n}}\\operatorname {E} \\left[Y_{i}^{2}\\right]-{\\frac {2}{n}}\\sum _{j\\neq i}\\operatorname {E} \\left[Y_{i}Y_{j}\\right]+{\\frac {1}{n^{2}}}\\sum _{j=1}^{n}\\sum _{k\\neq j}^{n}\\operatorname {E} \\left[Y_{j}Y_{k}\\right]+{\\frac {1}{n^{2}}}\\sum _{j=1}^{n}\\operatorname {E} \\left[Y_{j}^{2}\\right]\\right)\\\\[5pt]&={\\frac {1}{n}}\\sum _{i=1}^{n}\\left[{\\frac {n-2}{n}}\\left(\\sigma ^{2}+\\mu ^{2}\\right)-{\\frac {2}{n}}(n-1)\\mu ^{2}+{\\frac {1}{n^{2}}}n(n-1)\\mu ^{2}+{\\frac {1}{n}}\\left(\\sigma ^{2}+\\mu ^{2}\\right)\\right]\\\\[5pt]&={\\frac {n-1}{n}}\\sigma ^{2}.\\end{aligned}}}","segments":[{"text":"Their expected values can be evaluated by averaging over the ensemble of all possible samples {Yi} of size ⁠ "},{"tex":"n"},{"text":" ⁠ from the population. For "},{"tex":"{\\tilde {S}}_{Y}^{2}"},{"text":" this gives: "},{"display":true,"tex":"\\begin{aligned}\\operatorname {E} [{\\tilde {S}}_{Y}^{2}]&=\\operatorname {E} \\left[{\\frac {1}{n}}\\sum _{i=1}^{n}{\\left(Y_{i}-{\\frac {1}{n}}\\sum _{j=1}^{n}Y_{j}\\right)}^{2}\\right]\\\\[5pt]&={\\frac {1}{n}}\\sum _{i=1}^{n}\\operatorname {E} \\left[Y_{i}^{2}-{\\frac {2}{n}}Y_{i}\\sum _{j=1}^{n}Y_{j}+{\\frac {1}{n^{2}}}\\sum _{j=1}^{n}Y_{j}\\sum _{k=1}^{n}Y_{k}\\right]\\\\[5pt]&={\\frac {1}{n}}\\sum _{i=1}^{n}\\left(\\operatorname {E} \\left[Y_{i}^{2}\\right]-{\\frac {2}{n}}\\left(\\sum _{j\\neq i}\\operatorname {E} \\left[Y_{i}Y_{j}\\right]+\\operatorname {E} \\left[Y_{i}^{2}\\right]\\right)+{\\frac {1}{n^{2}}}\\sum _{j=1}^{n}\\sum _{k\\neq j}^{n}\\operatorname {E} \\left[Y_{j}Y_{k}\\right]+{\\frac {1}{n^{2}}}\\sum _{j=1}^{n}\\operatorname {E} \\left[Y_{j}^{2}\\right]\\right)\\\\[5pt]&={\\frac {1}{n}}\\sum _{i=1}^{n}\\left({\\frac {n-2}{n}}\\operatorname {E} \\left[Y_{i}^{2}\\right]-{\\frac {2}{n}}\\sum _{j\\neq i}\\operatorname {E} \\left[Y_{i}Y_{j}\\right]+{\\frac {1}{n^{2}}}\\sum _{j=1}^{n}\\sum _{k\\neq j}^{n}\\operatorname {E} \\left[Y_{j}Y_{k}\\right]+{\\frac {1}{n^{2}}}\\sum _{j=1}^{n}\\operatorname {E} \\left[Y_{j}^{2}\\right]\\right)\\\\[5pt]&={\\frac {1}{n}}\\sum _{i=1}^{n}\\left[{\\frac {n-2}{n}}\\left(\\sigma ^{2}+\\mu ^{2}\\right)-{\\frac {2}{n}}(n-1)\\mu ^{2}+{\\frac {1}{n^{2}}}n(n-1)\\mu ^{2}+{\\frac {1}{n}}\\left(\\sigma ^{2}+\\mu ^{2}\\right)\\right]\\\\[5pt]&={\\frac {n-1}{n}}\\sigma ^{2}.\\end{aligned}"}]},"unresolved":null},{"absence":null,"basis":null,"coverage":{"basis":true,"bundle_key":"e06963188330d4b4f27835a171537bb5865c47b4c5d7b319288b3edc48244d44","challenge":"survived","complete":true,"conjuncts":[{"id":"c1","part":"87164c945c094605efb25e1cd6492581d467a76364fe4efda19c8434f3d5c674","text":"the population variance is the second moment of Y_i minus the square of the mean"},{"id":"c2","part":"a9ddb9e6c9606499e2bc86f416ff0bd2569a036958116047d21183893a5690a6","text":"for independent Y_i and Y_j the expectation of their product is the product of their means, which is mu squared"}],"parts":["87164c945c094605efb25e1cd6492581d467a76364fe4efda19c8434f3d5c674","a9ddb9e6c9606499e2bc86f416ff0bd2569a036958116047d21183893a5690a6"],"relation":"broadMatch","status":"formalized"},"id":"enwiki-32344-1368633150::In-text #95f72ef0","item":"In-text #95f72ef0","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.variance_eq_sub","end_line":228,"library":"mathlib","line":226,"location_key":"87164c945c094605efb25e1cd6492581d467a76364fe4efda19c8434f3d5c674","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib states this for any real random variable on a probability space and writes both expectations as integrals against the measure.","pair_key":"6c9619962039001c739f397a93f04d92a3a57af6a01f1926b730b1f973974a39","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"hasPart","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.variance_eq_sub {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {X : Ω → ℝ} : MeasureTheory.MemLp X 2 μ → ProbabilityTheory.variance X μ = ∫ (x : Ω), (X ^ 2) x ∂μ - (∫ (x : Ω), X x ∂μ) ^ 2"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"ProbabilityTheory.IndepFun.integral_fun_mul_eq_mul_integral","end_line":426,"library":"mathlib","line":423,"location_key":"a9ddb9e6c9606499e2bc86f416ff0bd2569a036958116047d21183893a5690a6","module":"Mathlib.Probability.Independence.Integration","note":"Mathlib states it for functions into any field satisfying RCLike, with the expectation written as an integral.","pair_key":"acfa13b8e51579688452addcde8a64f648eac5e8606c64fa1b9ed5950c85a785","path":"Mathlib/Probability/Independence/Integration.lean","proof_status":"proved","rank":2,"relation":"hasPart","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.integral_fun_mul_eq_mul_integral {Ω : Type*} {𝕜 : Type*} [RCLike 𝕜] {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X Y : Ω → 𝕜} : ProbabilityTheory.IndepFun X Y μ → MeasureTheory.AEStronglyMeasurable X μ → MeasureTheory.AEStronglyMeasurable Y μ → ∫ (ω : Ω), X ω * Y ω ∂μ = (∫ (x : Ω), X x ∂μ) * ∫ (x : Ω), Y x ∂μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"4fe52d9527c8dc2780b802983ce38b36269843af080ec6a737bf2c24df996e8f","prominence":"supporting","quote":{"exact":"Here σ 2 = E ⁡ [ Y i 2 ] −"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Biased sample variance"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Here σ 2 = E ⁡ [ Y i 2 ] − μ 2 {\\textstyle \\sigma ^{2}=\\operatorname {E} [Y_{i}^{2}]-\\mu ^{2}} derived in the section is population variance and E ⁡ [ Y i Y j ] = E ⁡ [ Y i ] E ⁡ [ Y j ] = μ 2 {\\textstyle \\operatorname {E} [Y_{i}Y_{j}]=\\operatorname {E} [Y_{i}]\\operatorname {E} [Y_{j}]=\\mu ^{2}} due to independency of Y i {\\displaystyle Y_{i}} and ⁠ Y j {\\displaystyle Y_{j}} ⁠.","segments":[{"text":"Here "},{"tex":"\\textstyle \\sigma ^{2}=\\operatorname {E} [Y_{i}^{2}]-\\mu ^{2}"},{"text":" derived in the section is population variance and "},{"tex":"\\textstyle \\operatorname {E} [Y_{i}Y_{j}]=\\operatorname {E} [Y_{i}]\\operatorname {E} [Y_{j}]=\\mu ^{2}"},{"text":" due to independency of "},{"tex":"Y_{i}"},{"text":" and ⁠ "},{"tex":"Y_{j}"},{"text":" ⁠."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":2,"queries":4,"sha256":"82e8cc6f150ff0e7e330352aa49a78da07505da24b409ee57ec45d268b3337ee"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #6b10ae8f","item":"In-text #6b10ae8f","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"15a08e0a4f3337e0dc3b6d8b47a0ea3b543a452de6270c7f649d494034dcf79c","prominence":"central","quote":{"exact":"Hence S ~ Y 2 {\\textstyle {\\tilde {S}}_{Y}^{2}} gives an estimate of"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Biased sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":" because the expectation value of S ~ Y 2 {\\textstyle {\\tilde {S}}_{Y}^{2}} is smaller than the population variance (true variance) by that factor.","segments":[{"text":" because the expectation value of "},{"tex":"\\textstyle {\\tilde {S}}_{Y}^{2}"},{"text":" is smaller than the population variance (true variance) by that factor."}]},"layer":"Hence S ~ Y 2 {\\textstyle {\\tilde {S}}_{Y}^{2}} gives an estimate of the population variance σ 2 {\\textstyle \\sigma ^{2}} that is biased by a factor of n − 1 n {\\textstyle {\\frac {n-1}{n}}}","segments":[{"text":"Hence "},{"tex":"\\textstyle {\\tilde {S}}_{Y}^{2}"},{"text":" gives an estimate of the population variance "},{"tex":"\\textstyle \\sigma ^{2}"},{"text":" that is biased by a factor of "},{"tex":"\\textstyle {\\frac {n-1}{n}}"}]},"unresolved":null},{"absence":null,"basis":"78bc788d364a7fb1f85c2b3a87e240753cefaf0cff7475368363063feb6b5279","coverage":null,"id":"enwiki-32344-1368633150::In-text #0d53d627","item":"In-text #0d53d627","kind":"definition","locations":[{"challenge":"survived","commit":"4453b52d2468f4c346a8711d728c0742e7483c9b","confidence":"medium","declaration":"Batteries.RunningStats.variance","end_line":61,"library":"batteries","line":60,"location_key":"78bc788d364a7fb1f85c2b3a87e240753cefaf0cff7475368363063feb6b5279","module":"Batteries.Data.RunningStats","note":"Batteries carries the sample as Float values in a running accumulator of count, mean and accumulated squared deviations, and divides the accumulated sum by the count.","pair_key":"ccc7aa83e87a773954c030d7c02c7b5489fcbb4a700ae0a5570c9f65a62c7431","path":"Batteries/Data/RunningStats.lean","proof_status":"definition","rank":1,"relation":"closeMatch","repo":"https://github.com/leanprover-community/batteries","signature":{"elided":false,"text":"def Batteries.RunningStats.variance : Batteries.RunningStats → Float"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"e0d8549327e9ed99d222e9ac02d1deb4dcd123a40770ae7eb54de86cec4f0915","prominence":"central","quote":{"exact":"For this reason, S ~ Y 2 {\\textstyle {\\tilde {S}}_{Y}^{2}} is referred"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Biased sample variance"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"For this reason, S ~ Y 2 {\\textstyle {\\tilde {S}}_{Y}^{2}} is referred to as the biased sample variance.","segments":[{"text":"For this reason, "},{"tex":"\\textstyle {\\tilde {S}}_{Y}^{2}"},{"text":" is referred to as the biased sample variance."}]},"unresolved":null},{"absence":null,"basis":"eea33060c3d2a611e6ddb4887188817caadc0fff6a1ed27babbaea0204c46e3c","coverage":null,"id":"enwiki-32344-1368633150::In-text #5f6585ac","item":"In-text #5f6585ac","kind":"definition","locations":[{"challenge":"survived","commit":"4453b52d2468f4c346a8711d728c0742e7483c9b","confidence":"medium","declaration":"Batteries.RunningStats.sampleVariance","end_line":66,"library":"batteries","line":65,"location_key":"eea33060c3d2a611e6ddb4887188817caadc0fff6a1ed27babbaea0204c46e3c","module":"Batteries.Data.RunningStats","note":"Batteries carries the sample as Float values in a running accumulator and divides the accumulated squared deviations by one less than the count, which is the same quantity as the scaled estimator of the passage.","pair_key":"4aa354425f0312cd96fcfbc6610e2deea172dbea8c67ec980d248a92635a34ed","path":"Batteries/Data/RunningStats.lean","proof_status":"definition","rank":1,"relation":"closeMatch","repo":"https://github.com/leanprover-community/batteries","signature":{"elided":false,"text":"def Batteries.RunningStats.sampleVariance : Batteries.RunningStats → Float"},"statement":false},{"challenge":"survived","commit":"64c2773ffad3e5453b9f40c62e693b3669ade83f","confidence":"medium","declaration":"MetaMathlibExt.initialSegmentSampleVariance","library":"atlas","line":41,"location_key":"f45f80d4407c83742b9283de8bb44727deefa45ef959bb0b33fa603407f38c48","module":"MathlibExt.Analysis.Asymptotics.TaylorInitialSampleVariance","note":"Atlas defines it only for sequences of natural numbers, so it is the passage's estimator at samples whose values are whole numbers.","pair_key":"0bdc08734942c94f2a496923a3c796556f9cabdc568bb2137c0cee481698fc0e","path":"MathlibExt/Analysis/Asymptotics/TaylorInitialSampleVariance.lean","proof_status":"definition","rank":2,"relation":"narrowMatch","repo":"https://github.com/facebookresearch/atlas-lean","signature":{"elided":false,"text":"def MetaMathlibExt.initialSegmentSampleVariance : (ℕ → ℕ) → ℕ → ℝ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"bc26d590dc04c7ff1628a19b4b37d253cabdeb4d2fa9d51975caf4f4a1412749","prominence":"central","quote":{"exact":"Correcting for this bias yields the unbiased sample variance, denoted ⁠ S"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Unbiased sample variance"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Correcting for this bias yields the unbiased sample variance, denoted ⁠ S 2 {\\displaystyle S^{2}} ⁠: S 2 = n n − 1 S ~ Y 2 = n n − 1 [ 1 n ∑ i = 1 n ( Y i − Y ¯ ) 2 ] = 1 n − 1 ∑ i = 1 n ( Y i − Y ¯ ) 2 {\\displaystyle S^{2}={\\frac {n}{n-1}}{\\tilde {S}}_{Y}^{2}={\\frac {n}{n-1}}\\left[{\\frac {1}{n}}\\sum _{i=1}^{n}\\left(Y_{i}-{\\overline {Y}}\\right)^{2}\\right]={\\frac {1}{n-1}}\\sum _{i=1}^{n}\\left(Y_{i}-{\\overline {Y}}\\right)^{2}}","segments":[{"text":"Correcting for this bias yields the unbiased sample variance, denoted ⁠ "},{"tex":"S^{2}"},{"text":" ⁠: "},{"display":true,"tex":"S^{2}={\\frac {n}{n-1}}{\\tilde {S}}_{Y}^{2}={\\frac {n}{n-1}}\\left[{\\frac {1}{n}}\\sum _{i=1}^{n}\\left(Y_{i}-{\\overline {Y}}\\right)^{2}\\right]={\\frac {1}{n-1}}\\sum _{i=1}^{n}\\left(Y_{i}-{\\overline {Y}}\\right)^{2}"}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":0,"queries":3,"sha256":"cc2c5556ccb257e8096ffb9afa86e9868d47a68d2eac54e4a3aa2ec4796bea45"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #bf19907d","item":"In-text #bf19907d","kind":"definition","locations":[{"challenge":"sampled_out","commit":"4453b52d2468f4c346a8711d728c0742e7483c9b","confidence":"medium","declaration":"Batteries.RunningStats.sampleVariance","end_line":66,"library":"batteries","line":65,"location_key":"e17d15325b1a94541095f7225f7fe0fb1354b7b82d22345f84f50eb7266b3191","module":"Batteries.Data.RunningStats","note":"It divides by one less than the count, but it attaches no name to that replacement of the denominator.","pair_key":"5752e754f30631692191d50c2fbeb1b174708893018d81a199b524c23b284542","path":"Batteries/Data/RunningStats.lean","proof_status":"definition","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/batteries","signature":{"elided":false,"text":"def Batteries.RunningStats.sampleVariance : Batteries.RunningStats → Float"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"74ae04d2fc940a6c0a81d5df6a488a61c64913d17e1f29d0efeac31bad5aaac1","prominence":"supporting","quote":{"exact":"The use of the term n − 1 is called Bessel's correction,"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Unbiased sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The use of the term n − 1 is called Bessel's correction, and it is also used in sample covariance and the sample standard deviation (the square root of variance).","segments":[{"text":"The use of the term n − 1 is called Bessel's correction, and it is also used in sample covariance and the sample standard deviation (the square root of variance)."}]},"unresolved":null},{"absence":null,"basis":"3b39393bff292ea5ded3e01aed938336134915001d342ab7b25fed1a02cc31b6","coverage":null,"id":"enwiki-32344-1368633150::In-text #0a12803a","item":"In-text #0a12803a","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"high","declaration":"Real.strictConcaveOn_sqrt","end_line":92,"library":"mathlib","line":90,"location_key":"3b39393bff292ea5ded3e01aed938336134915001d342ab7b25fed1a02cc31b6","module":"Mathlib.Analysis.Convex.SpecificFunctions.Pow","note":"Mathlib records strict concavity of the square root on the nonnegative half-line, with the domain written as the set of reals at least zero.","pair_key":"259420b924ae4ccac6a77e2eed465af796a27d1528cda3263c87206e9dbae3cc","path":"Mathlib/Analysis/Convex/SpecificFunctions/Pow.lean","proof_status":"proved","rank":1,"relation":"hasPart","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem Real.strictConcaveOn_sqrt : StrictConcaveOn ℝ (Set.Ici 0) fun x ↦ √x"},"statement":false},{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ConcaveOn.le_map_integral","end_line":208,"library":"mathlib","line":205,"location_key":"7b07724bf6639e4b5b8f6f7cbb43c37721d5e60a8b21a6b5895028004815ddb7","module":"Mathlib.Analysis.Convex.Integral","note":"Mathlib states Jensen's inequality for a concave real-valued map on a closed set, leaving the size of the gap unquantified as the passage does.","pair_key":"2f2187538c5b8e6528833359e28eaa887490c86254dd05d29dc416e2f9d2ac77","path":"Mathlib/Analysis/Convex/Integral.lean","proof_status":"proved","rank":2,"relation":"hasPart","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ConcaveOn.le_map_integral {α : Type*} {E : Type*} {m0 : MeasurableSpace α} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] {μ : MeasureTheory.Measure α} {s : Set E} {f : α → E} {g : E → ℝ} [MeasureTheory.IsProbabilityMeasure μ] : ConcaveOn ℝ s g → ContinuousOn g s → IsClosed s → (∀ᵐ (x : α) ∂μ, f x ∈ s) → MeasureTheory.Integrable f μ → MeasureTheory.Integrable (g ∘ f) μ → ∫ (x : α), g (f x) ∂μ ≤ g (∫ (x : α), f x ∂μ)"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"5ddc4ec3d2e348bcda3943ed2cea1a5e739e155d0595cc26f3db2151512d1067","prominence":"supporting","quote":{"exact":"The square root is a concave function and thus introduces negative bias"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Unbiased sample variance"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":", and thus the corrected sample standard deviation (using Bessel's correction) is biased.","segments":[{"text":", and thus the corrected sample standard deviation (using Bessel's correction) is biased."}]},"layer":"The square root is a concave function and thus introduces negative bias (by Jensen's inequality), which depends on the distribution","segments":[{"text":"The square root is a concave function and thus introduces negative bias (by Jensen's inequality), which depends on the distribution"}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":1,"queries":4,"sha256":"63af6d1c82f59630be47f0d195b97a62b3ef1ac21ea29169cb75a6f0edb155b1"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #f72e1efb","item":"In-text #f72e1efb","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ConcaveOn.le_map_integral","end_line":208,"library":"mathlib","line":205,"location_key":"458e13206d7e9c6a7ed65b74db55d7d84eb54de0912fc4f42cbe831bb80d83de","module":"Mathlib.Analysis.Convex.Integral","note":"It bounds the mean of a concave transform by the transform of the mean, which is the reason the passage gives, not the claim about the estimator.","pair_key":"22c7b3e49dccb7dd8fa7dd597abad536515d9d4d8ef465c77b3ea8d91524bd72","path":"Mathlib/Analysis/Convex/Integral.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ConcaveOn.le_map_integral {α : Type*} {E : Type*} {m0 : MeasurableSpace α} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] {μ : MeasureTheory.Measure α} {s : Set E} {f : α → E} {g : E → ℝ} [MeasureTheory.IsProbabilityMeasure μ] : ConcaveOn ℝ s g → ContinuousOn g s → IsClosed s → (∀ᵐ (x : α) ∂μ, f x ∈ s) → MeasureTheory.Integrable f μ → MeasureTheory.Integrable (g ∘ f) μ → ∫ (x : α), g (f x) ∂μ ≤ g (∫ (x : α), f x ∂μ)"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"1e91d747c71bf619c147a4365548d2a484ee5f2ff46dace1bc687e68e3f03e78","prominence":"supporting","quote":{"exact":"thus the corrected sample standard deviation (using Bessel's correction) is biased."},"quote_capped":false,"section":["Population variance and sample variance","Sample variance","Unbiased sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"The square root is a concave function and thus introduces negative bias (by Jensen's inequality), which depends on the distribution, and ","segments":[{"text":"The square root is a concave function and thus introduces negative bias (by Jensen's inequality), which depends on the distribution, and "}]},"layer":"thus the corrected sample standard deviation (using Bessel's correction) is biased.","segments":[{"text":"thus the corrected sample standard deviation (using Bessel's correction) is biased."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":1,"queries":4,"sha256":"c01a0c6f8814911171050023b0d1ed83c8e42c1653ca202578147ec77961b93a"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #ee00a16c","item":"In-text #ee00a16c","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"30ac432946017b6ed9259549f2456d449c15994a94d9adf89385d6071ad5349b","prominence":"supporting","quote":{"exact":"The unbiased estimation of standard deviation is a technically involved problem, though"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Unbiased sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The unbiased estimation of standard deviation is a technically involved problem, though for the normal distribution using the term n − 1.5 yields an almost unbiased estimator.","segments":[{"text":"The unbiased estimation of standard deviation is a technically involved problem, though for the normal distribution using the term n − 1.5 yields an almost unbiased estimator."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":3,"queries":4,"sha256":"772c63d315d0bdff8c40f33c2c815269cb281fc4ab989db7f0e142cbf3580a19"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #d7a686d1","item":"In-text #d7a686d1","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"bde9b059f903a22b0a2c6eb1099e23719b54b6634b4146e3a04fe1d3c121c1a2","prominence":"supporting","quote":{"exact":"The unbiased sample variance is a U-statistic for the function f(y1, y2)"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Unbiased sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The unbiased sample variance is a U-statistic for the function f(y1, y2) = (y1 − y2)2/2, meaning that it is obtained by averaging a 2-sample statistic over 2-element subsets of the population.","segments":[{"text":"The unbiased sample variance is a U-statistic for the function f(y1, y2) = (y1 − y2)2/2, meaning that it is obtained by averaging a 2-sample statistic over 2-element subsets of the population."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":2,"queries":4,"sha256":"75e4b1133359f9c1636939f959a79eeb3beb878c1284a4600e1a0c57be1197de"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #6b1c2e05","item":"In-text #6b1c2e05","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"7f11cba0132d5d3ae4dedb72094e14c3fb8a2eef21d9076b0af18eb268d94bd3","prominence":"supporting","quote":{"exact":"For a set of numbers {10, 15, 30, 45, 57, 52, 63,"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Unbiased sample variance","Example"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"For a set of numbers {10, 15, 30, 45, 57, 52, 63, 72, 81, 93, 102, 105}, if this set is the whole data population for some measurement, then variance is the population variance 932.743 as the sum of the squared deviations about the mean of this set, divided by 12 as the number of the set members.","segments":[{"text":"For a set of numbers {10, 15, 30, 45, 57, 52, 63, 72, 81, 93, 102, 105}, if this set is the whole data population for some measurement, then variance is the population variance 932.743 as the sum of the squared deviations about the mean of this set, divided by 12 as the number of the set members."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":2,"queries":4,"sha256":"0995bfd6f951d3777b6e32def7025730aa51051444b883b4cd6c82965d51b069"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #b81802ee","item":"In-text #b81802ee","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"86e80c186f22fcb2cb076d2ae92b44b0de43ec0376ae14a99edb8f66360f130f","prominence":"supporting","quote":{"exact":"If the set is a sample from the whole population, then the"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Unbiased sample variance","Example"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"If the set is a sample from the whole population, then the unbiased sample variance can be calculated as 1017.538 that is the sum of the squared deviations about the mean of the sample, divided by 11 instead of 12.","segments":[{"text":"If the set is a sample from the whole population, then the unbiased sample variance can be calculated as 1017.538 that is the sum of the squared deviations about the mean of the sample, divided by 11 instead of 12."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":1,"queries":3,"sha256":"2e3d8d55159fdfcbdf4f09c4adcfb24f4e607d5c6452f45e1112d024e6141b91"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #d4d9cadf","item":"In-text #d4d9cadf","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"5467c395edcec3b17926791d7d5e09ea90f414806610d7258ed6692fc80b7f9a","prominence":"supporting","quote":{"exact":"Being a function of random variables, the sample variance is itself a"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Distribution of the sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":", and it is natural to study its distribution.","segments":[{"text":", and it is natural to study its distribution."}]},"layer":"Being a function of random variables, the sample variance is itself a random variable","segments":[{"text":"Being a function of random variables, the sample variance is itself a random variable"}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":3,"queries":3,"sha256":"33345b9801231b269107e6221da3c1e716f68f3cd7b4dc7edc67b4f914e83600"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #e3c6292f","item":"In-text #e3c6292f","kind":"theorem","locations":[{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.iIndepFun.hasLaw_sum_sq_gaussian","end_line":179,"library":"tauceti","line":167,"location_key":"6aac52623cb0a424d22b7f3f004fc67e20f70bb75c9ba5bff62103b81c6a61f2","module":"TauCeti.Probability.Distributions.Gaussian.ChiSquared","note":"It is the law of an uncentred sum of squares, with as many degrees of freedom as summands and no sample mean subtracted anywhere.","pair_key":"bc8c43a245dfd4150718a762ee69a7c2ec856a407d44baa8c792006adf408c50","path":"TauCeti/Probability/Distributions/Gaussian/ChiSquared.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.iIndepFun.hasLaw_sum_sq_gaussian {Omega : Type*} {iota : Type*} [MeasurableSpace Omega] [Fintype iota] {P : MeasureTheory.Measure Omega} {X : iota → Omega → ℝ} : ProbabilityTheory.iIndepFun X P → (∀ (i : iota), ProbabilityTheory.HasLaw (X i) (ProbabilityTheory.gaussianReal 0 1) P) → ProbabilityTheory.HasLaw (fun omega ↦ ∑ i, X i omega ^ 2) (TauCeti.Probability.chiSquaredMeasure ↑(Fintype.card iota)) P"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"29ed408129fde74d94dafa672e2a39dfae4830deb1b621ff7d04cfc862300bc3","prominence":"central","quote":{"exact":"In the case that Yi are independent observations from a normal distribution,"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Distribution of the sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"In the case that Yi are independent observations from a normal distribution, Cochran's theorem shows that the unbiased sample variance S2 follows a scaled chi-squared distribution (see also: asymptotic properties and an elementary proof):[17] ( n − 1 ) S 2 σ 2 ∼ χ n − 1 2 , {\\displaystyle (n-1){\\frac {S^{2}}{\\sigma ^{2}}}\\sim \\chi _{n-1}^{2},} where σ2 is the population variance.","segments":[{"text":"In the case that Yi are independent observations from a normal distribution, Cochran's theorem shows that the unbiased sample variance S2 follows a scaled chi-squared distribution (see also: asymptotic properties and an elementary proof):"},{"ref":"[17]"},{"text":" "},{"display":true,"tex":"(n-1){\\frac {S^{2}}{\\sigma ^{2}}}\\sim \\chi _{n-1}^{2},"},{"text":" where σ2 is the population variance."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":2,"queries":3,"sha256":"96e3cdce1077098518a4cc26c543cb50a4c4f2247e8f170940ef2cf381336b4f"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #4e97fa69","item":"In-text #4e97fa69","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"9e25bee11a4ef9fc64b1fc68818b0659f7b7280f1226b064dc2adc18427af113","prominence":"supporting","quote":{"exact":"As a direct consequence, it follows that E ⁡ ( S 2"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Distribution of the sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":" Var ⁡ [ S 2 ] = Var ⁡ ( σ 2 n − 1 χ n − 1 2 ) = σ 4 ( n − 1 ) 2 Var ⁡ ( χ n − 1 2 ) = 2 σ 4 n − 1 . {\\displaystyle \\operatorname {Var} \\left[S^{2}\\right]=\\operatorname {Var} \\left({\\frac {\\sigma ^{2}}{n-1}}\\chi _{n-1}^{2}\\right)={\\frac {\\sigma ^{4}}{{\\left(n-1\\right)}^{2}}}\\operatorname {Var} \\left(\\chi _{n-1}^{2}\\right)={\\frac {2\\sigma ^{4}}{n-1}}.}","segments":[{"text":" "},{"display":true,"tex":"\\operatorname {Var} \\left[S^{2}\\right]=\\operatorname {Var} \\left({\\frac {\\sigma ^{2}}{n-1}}\\chi _{n-1}^{2}\\right)={\\frac {\\sigma ^{4}}{{\\left(n-1\\right)}^{2}}}\\operatorname {Var} \\left(\\chi _{n-1}^{2}\\right)={\\frac {2\\sigma ^{4}}{n-1}}."}],"trimmed":true},"layer":"As a direct consequence, it follows that E ⁡ ( S 2 ) = E ⁡ ( σ 2 n − 1 χ n − 1 2 ) = σ 2 , {\\displaystyle \\operatorname {E} \\left(S^{2}\\right)=\\operatorname {E} \\left({\\frac {\\sigma ^{2}}{n-1}}\\chi _{n-1}^{2}\\right)=\\sigma ^{2},} and[18]","segments":[{"text":"As a direct consequence, it follows that "},{"display":true,"tex":"\\operatorname {E} \\left(S^{2}\\right)=\\operatorname {E} \\left({\\frac {\\sigma ^{2}}{n-1}}\\chi _{n-1}^{2}\\right)=\\sigma ^{2},"},{"text":" and"},{"ref":"[18]"}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":2,"queries":3,"sha256":"3ca0a1efbfe3557d80d3dd08bfbd31c3e706c784c60900ce00098c5ece6dccd9"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #b5aea6ce","item":"In-text #b5aea6ce","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.Probability.variance_id_chiSquaredMeasure","end_line":308,"library":"tauceti","line":302,"location_key":"60c4ef24f8ea8636b8f5dc998b9b0626ca874eb6ff9e3ced2fd1c27e17ca9d6a","module":"TauCeti.Probability.Distributions.ChiSquared","note":"It states the variance of the chi-squared law under the identity map, with no scaling factor and no sample statistic in sight.","pair_key":"162819ca3750223d0b1f4e9c3711b6264b569e4fe9867f5d7fc6ea4b7e1c6bd1","path":"TauCeti/Probability/Distributions/ChiSquared.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.Probability.variance_id_chiSquaredMeasure {k : ℝ} : 0 ≤ k → ProbabilityTheory.variance id (TauCeti.Probability.chiSquaredMeasure k) = 2 * k"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"eac9166c94a69fd6eefde6f32ecae16c74d348011117cd09d0f71780d8016350","prominence":"supporting","quote":{"exact":"Var ⁡ [ S 2 ] = Var ⁡ ( σ 2"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Distribution of the sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"As a direct consequence, it follows that E ⁡ ( S 2 ) = E ⁡ ( σ 2 n − 1 χ n − 1 2 ) = σ 2 , {\\displaystyle \\operatorname {E} \\left(S^{2}\\right)=\\operatorname {E} \\left({\\frac {\\sigma ^{2}}{n-1}}\\chi _{n-1}^{2}\\right)=\\sigma ^{2},} and[18] ","segments":[{"text":"As a direct consequence, it follows that "},{"display":true,"tex":"\\operatorname {E} \\left(S^{2}\\right)=\\operatorname {E} \\left({\\frac {\\sigma ^{2}}{n-1}}\\chi _{n-1}^{2}\\right)=\\sigma ^{2},"},{"text":" and"},{"ref":"[18]"},{"text":" "}]},"layer":"Var ⁡ [ S 2 ] = Var ⁡ ( σ 2 n − 1 χ n − 1 2 ) = σ 4 ( n − 1 ) 2 Var ⁡ ( χ n − 1 2 ) = 2 σ 4 n − 1 . {\\displaystyle \\operatorname {Var} \\left[S^{2}\\right]=\\operatorname {Var} \\left({\\frac {\\sigma ^{2}}{n-1}}\\chi _{n-1}^{2}\\right)={\\frac {\\sigma ^{4}}{{\\left(n-1\\right)}^{2}}}\\operatorname {Var} \\left(\\chi _{n-1}^{2}\\right)={\\frac {2\\sigma ^{4}}{n-1}}.}","segments":[{"display":true,"tex":"\\operatorname {Var} \\left[S^{2}\\right]=\\operatorname {Var} \\left({\\frac {\\sigma ^{2}}{n-1}}\\chi _{n-1}^{2}\\right)={\\frac {\\sigma ^{4}}{{\\left(n-1\\right)}^{2}}}\\operatorname {Var} \\left(\\chi _{n-1}^{2}\\right)={\\frac {2\\sigma ^{4}}{n-1}}."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":3,"queries":4,"sha256":"a1b06c9c8fc93083b80653ac8b09be7fd2843d118fc329600398744a4ae65809"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #738700aa","item":"In-text #738700aa","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"4c19e6248f78e584ff949c9c3d7cef303b33bdfdbd4404ce7750da85f11f5912","prominence":"central","quote":{"exact":"If Yi are independent and identically distributed, but not necessarily normally distributed,"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Distribution of the sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"If Yi are independent and identically distributed, but not necessarily normally distributed, then[19] E ⁡ [ S 2 ] = σ 2 ; Var ⁡ [ S 2 ] = σ 4 n ( κ − 1 + 2 n − 1 ) = 1 n ( μ 4 − n − 3 n − 1 σ 4 ) , {\\displaystyle \\operatorname {E} \\left[S^{2}\\right]=\\sigma ^{2};\\quad \\operatorname {Var} \\left[S^{2}\\right]={\\frac {\\sigma ^{4}}{n}}\\left(\\kappa -1+{\\frac {2}{n-1}}\\right)={\\frac {1}{n}}\\left(\\mu _{4}-{\\frac {n-3}{n-1}}\\sigma ^{4}\\right),} where κ is the kurtosis of the distribution and μ4 is the fourth central moment.","segments":[{"text":"If Yi are independent and identically distributed, but not necessarily normally distributed, then"},{"ref":"[19]"},{"text":" "},{"display":true,"tex":"\\operatorname {E} \\left[S^{2}\\right]=\\sigma ^{2};\\quad \\operatorname {Var} \\left[S^{2}\\right]={\\frac {\\sigma ^{4}}{n}}\\left(\\kappa -1+{\\frac {2}{n-1}}\\right)={\\frac {1}{n}}\\left(\\mu _{4}-{\\frac {n-3}{n-1}}\\sigma ^{4}\\right),"},{"text":" where κ is the kurtosis of the distribution and μ4 is the fourth central moment."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":3,"queries":3,"sha256":"0b5a0cc6339c0ffd1689fafb3b031025e32227f0f9163c918d7f333b0b0a50a8"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #958a1b8b","item":"In-text #958a1b8b","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"da95159e2157d37f759fc00539ff7a46b174c0d5403b2bb5c67dcd0414fc3bc3","prominence":"central","quote":{"exact":"If the conditions of the law of large numbers hold for the"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Distribution of the sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"If the conditions of the law of large numbers hold for the squared observations, S2 is a consistent estimator of σ2.","segments":[{"text":"If the conditions of the law of large numbers hold for the squared observations, S2 is a consistent estimator of σ2."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":3,"queries":3,"sha256":"c6f94c48a5add88ce60fbd5c65f75c17ade7ff255434243ca6cec185cabe8e21"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #ce2a2cde","item":"In-text #ce2a2cde","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"564845658b582a466f398fab50a03da257938ca6f07f9a85f463b687cf6b3355","prominence":"supporting","quote":{"exact":"One can see indeed that the variance of the estimator tends asymptotically"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Distribution of the sample variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"One can see indeed that the variance of the estimator tends asymptotically to zero.","segments":[{"text":"One can see indeed that the variance of the estimator tends asymptotically to zero."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":3,"queries":3,"sha256":"878e1679a06005e0ce6be63e3f74aab7aae93dac653ee70489bfd9b0036c383b"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #0c141dc0","item":"In-text #0c141dc0","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"9d64a9bf846c8abc261164168f312eb59ee20467e0eb3e4b069139073cb25b08","prominence":"central","quote":{"exact":"Values must lie within the limits ⁠ y ¯ ± σ Y"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Samuelson's inequality"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Values must lie within the limits ⁠ y ¯ ± σ Y ( n − 1 ) 1 / 2 {\\displaystyle {\\bar {y}}\\pm \\sigma _{Y}(n-1)^{1/2}} ⁠.","segments":[{"text":"Values must lie within the limits ⁠ "},{"tex":"{\\bar {y}}\\pm \\sigma _{Y}(n-1)^{1/2}"},{"text":" ⁠."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":3,"queries":3,"sha256":"4b1f70d61e0f435e38854c296641733d1ced480169ec33e76a3ddb5e09759c5d"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #4b575353","item":"In-text #4b575353","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"cb04d46318c2f08b24ec9c8efbdc1ff0ce0f21b417991cd7ddc8d29dc2c30015","prominence":"central","quote":{"exact":"When a single new observation x n + 1 {\\displaystyle x_{n+1}} is"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Effect of adding one observation on variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"When a single new observation x n + 1 {\\displaystyle x_{n+1}} is added to a set of n {\\displaystyle n} observations with mean x ¯ n {\\displaystyle {\\bar {x}}_{n}} and variance s n 2 {\\displaystyle s_{n}^{2}} , the new variance s n + 1 2 {\\displaystyle s_{n+1}^{2}} can be expressed using a recursive updating formula. Based on the identity for the sum of squares provided by Chan et al. (1983):[24] n s n + 1 2 = ( n − 1 ) s n 2 + n n + 1 ( x n + 1 − x ¯ n ) 2 {\\displaystyle ns_{n+1}^{2}=(n-1)s_{n}^{2}+{\\frac {n}{n+1}}(x_{n+1}-{\\bar {x}}_{n})^{2}}","segments":[{"text":"When a single new observation "},{"tex":"x_{n+1}"},{"text":" is added to a set of "},{"tex":"n"},{"text":" observations with mean "},{"tex":"{\\bar {x}}_{n}"},{"text":" and variance "},{"tex":"s_{n}^{2}"},{"text":" , the new variance "},{"tex":"s_{n+1}^{2}"},{"text":" can be expressed using a recursive updating formula. Based on the identity for the sum of squares provided by Chan et al. (1983):"},{"ref":"[24]"},{"text":" "},{"tex":"ns_{n+1}^{2}=(n-1)s_{n}^{2}+{\\frac {n}{n+1}}(x_{n+1}-{\\bar {x}}_{n})^{2}"}]},"unresolved":null},{"absence":null,"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #7e17a118","item":"In-text #7e17a118","kind":"theorem","locations":[],"outcome":"unresolved","passage_ends_in_suffix":false,"passage_key":"265f34e19a969695bbacb9b6ea966988c3c3d2152271fd1282b1d50e5c2536d2","prominence":"supporting","quote":{"exact":"From this relationship, the impact of the new observation on the variance"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Effect of adding one observation on variance"],"status":null,"subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"From this relationship, the impact of the new observation on the variance depends on its distance from the current mean.","segments":[{"text":"From this relationship, the impact of the new observation on the variance depends on its distance from the current mean."}]},"unresolved":{"challenge":"sampled_out"}},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":3,"queries":3,"sha256":"4ab81d30413f92fbe22750450b425cf5f19bc7596dbe2ff5b8bd214d5095d1ce"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #ce6737fc","item":"In-text #ce6737fc","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"97e863f7a0227f59bdc2bc968cea47676bc6a088f2454ac068ee21c5cd0679e2","prominence":"central","quote":{"exact":"If x n + 1 = x ¯ n ± s n"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Effect of adding one observation on variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"If x n + 1 = x ¯ n ± s n n + 1 n {\\displaystyle x_{n+1}={\\bar {x}}_{n}\\pm s_{n}{\\sqrt {\\frac {n+1}{n}}}} , then the variance will remain unchanged.","segments":[{"text":"If "},{"tex":"x_{n+1}={\\bar {x}}_{n}\\pm s_{n}{\\sqrt {\\frac {n+1}{n}}}"},{"text":" , then the variance will remain unchanged."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":3,"queries":3,"sha256":"a5946bece73f2e8e39498efcc3f8bb4653d85c4a822276a1f291e03ffddbf7e0"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #9b350e89","item":"In-text #9b350e89","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"e712545e09f8c04d9245de939e50020eb75c89ae3d8965ee0bdc0ab563fad9ff","prominence":"central","quote":{"exact":"Accordingly, if the new observation is closer to the mean ( |"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Effect of adding one observation on variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Accordingly, if the new observation is closer to the mean ( | x n + 1 | < x ¯ n + s n n + 1 n {\\displaystyle |x_{n+1}|<{\\bar {x}}_{n}+s_{n}{\\sqrt {\\frac {n+1}{n}}}} ), then the variance will decrease - and if is further from the mean ( | x n + 1 | > x ¯ n + s n n + 1 n {\\displaystyle |x_{n+1}|>{\\bar {x}}_{n}+s_{n}{\\sqrt {\\frac {n+1}{n}}}} ), then the variance will increase.","segments":[{"text":"Accordingly, if the new observation is closer to the mean ( "},{"tex":"|x_{n+1}|<{\\bar {x}}_{n}+s_{n}{\\sqrt {\\frac {n+1}{n}}}"},{"text":" ), then the variance will decrease - and if is further from the mean ( "},{"tex":"|x_{n+1}|>{\\bar {x}}_{n}+s_{n}{\\sqrt {\\frac {n+1}{n}}}"},{"text":" ), then the variance will increase."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":3,"queries":3,"sha256":"183954c48da2cd18c003b225cc170fa9cc49a69e05edf7f582a5e025b49a31de"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #ca432d51","item":"In-text #ca432d51","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"49f6b8bb82d98176f875d537537b68bb98d281d9ce374d044afd2c2d005c69f3","prominence":"supporting","quote":{"exact":"Using the updating formula for the sum of squares ( S S"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Effect of adding one observation on variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Using the updating formula for the sum of squares ( S S {\\displaystyle SS} ): S S n + 1 = S S n + n n + 1 ( x n + 1 − x ¯ n ) 2 {\\displaystyle SS_{n+1}=SS_{n}+{\\frac {n}{n+1}}(x_{n+1}-{\\bar {x}}_{n})^{2}}","segments":[{"text":"Using the updating formula for the sum of squares ( "},{"tex":"SS"},{"text":" ): "},{"tex":"SS_{n+1}=SS_{n}+{\\frac {n}{n+1}}(x_{n+1}-{\\bar {x}}_{n})^{2}"}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":3,"queries":4,"sha256":"70db8555ecb64645791c04dc8749d7e299e923dc6352dcaf399243d7f4433e45"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #f031b68c","item":"In-text #f031b68c","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"8da6a83f62e5bc3fcd1c518bb8e2d525b09ec08e938197bcb9ae34598692bc5c","prominence":"supporting","quote":{"exact":"Substituting the relationship for sample variance ( S S = ( n"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Effect of adding one observation on variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Substituting the relationship for sample variance ( S S = ( n − 1 ) s 2 {\\displaystyle SS=(n-1)s^{2}} ): n s n + 1 2 = ( n − 1 ) s n 2 + n n + 1 ( x n + 1 − x ¯ n ) 2 {\\displaystyle ns_{n+1}^{2}=(n-1)s_{n}^{2}+{\\frac {n}{n+1}}(x_{n+1}-{\\bar {x}}_{n})^{2}}","segments":[{"text":"Substituting the relationship for sample variance ( "},{"tex":"SS=(n-1)s^{2}"},{"text":" ): "},{"tex":"ns_{n+1}^{2}=(n-1)s_{n}^{2}+{\\frac {n}{n+1}}(x_{n+1}-{\\bar {x}}_{n})^{2}"}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":2,"queries":4,"sha256":"e9a61e226c89c92920c0eed1fe9db55b41e86596b710f9ebb367aeb4b8762ff2"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #c92f6bda","item":"In-text #c92f6bda","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"07aff97add8d870696376d28df8db2bffa8d0e5b162a1a0c2a25178e5ae695cc","prominence":"supporting","quote":{"exact":"Setting s n + 1 2 = s n 2 {\\displaystyle s_{n+1}^{2}=s_{n}^{2}}"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Effect of adding one observation on variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Setting s n + 1 2 = s n 2 {\\displaystyle s_{n+1}^{2}=s_{n}^{2}} : n s n 2 = ( n − 1 ) s n 2 + n n + 1 ( x n + 1 − x ¯ n ) 2 {\\displaystyle ns_{n}^{2}=(n-1)s_{n}^{2}+{\\frac {n}{n+1}}(x_{n+1}-{\\bar {x}}_{n})^{2}}","segments":[{"text":"Setting "},{"tex":"s_{n+1}^{2}=s_{n}^{2}"},{"text":" : "},{"tex":"ns_{n}^{2}=(n-1)s_{n}^{2}+{\\frac {n}{n+1}}(x_{n+1}-{\\bar {x}}_{n})^{2}"}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":2,"queries":4,"sha256":"994474f7b7ba9d8ff685587a3db58030f116f7b3eccc1f9701d43c1398448074"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #d5785368","item":"In-text #d5785368","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"6118502c44b5af48528c6cf6be45536ace09d5f5026b90a35a7dc846d57d07e7","prominence":"supporting","quote":{"exact":"s n 2 = n n + 1 ( x n +"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Effect of adding one observation on variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"n s n 2 = ( n − 1 ) s n 2 + n n + 1 ( x n + 1 − x ¯ n ) 2 {\\displaystyle ns_{n}^{2}=(n-1)s_{n}^{2}+{\\frac {n}{n+1}}(x_{n+1}-{\\bar {x}}_{n})^{2}} ","lead_in":true,"segments":[{"tex":"ns_{n}^{2}=(n-1)s_{n}^{2}+{\\frac {n}{n+1}}(x_{n+1}-{\\bar {x}}_{n})^{2}"},{"text":" "}]},"layer":"s n 2 = n n + 1 ( x n + 1 − x ¯ n ) 2 {\\displaystyle s_{n}^{2}={\\frac {n}{n+1}}(x_{n+1}-{\\bar {x}}_{n})^{2}}","segments":[{"tex":"s_{n}^{2}={\\frac {n}{n+1}}(x_{n+1}-{\\bar {x}}_{n})^{2}"}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":2,"queries":4,"sha256":"b0a37b0a873a76d0ce9d04e8634aa7e5bc6c2c4b861f902707382678cdf59051"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #c4163dfd","item":"In-text #c4163dfd","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"78c47eda504e59a5fbd7467a94e7627a74a90b5a2dd2be41715facbb7647ea70","prominence":"supporting","quote":{"exact":"Solving for x n + 1 {\\displaystyle x_{n+1}} yields: x n +","suffix":" 1 = x"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Effect of adding one observation on variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Solving for x n + 1 {\\displaystyle x_{n+1}} yields: x n + 1 = x ¯ n ± s n n + 1 n {\\displaystyle x_{n+1}={\\bar {x}}_{n}\\pm s_{n}{\\sqrt {\\frac {n+1}{n}}}}","segments":[{"text":"Solving for "},{"tex":"x_{n+1}"},{"text":" yields: "},{"tex":"x_{n+1}={\\bar {x}}_{n}\\pm s_{n}{\\sqrt {\\frac {n+1}{n}}}"}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":2,"queries":4,"sha256":"8b7cc8b7910b18c6dfaacf709b86e293b2bd1fbd2ffee874b0b52c4dfda45d61"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #e2250892","item":"In-text #e2250892","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"0570db8d447c5352605e42dbf76836cb8e0a7a4ac2597012ef8624fc9753ce70","prominence":"supporting","quote":{"exact":"For population variance ( σ 2 = S S n {\\displaystyle \\sigma"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Effect of adding one observation on variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"For population variance ( σ 2 = S S n {\\displaystyle \\sigma ^{2}={\\frac {SS}{n}}} ), the updating formula is: ( n + 1 ) σ n + 1 2 = n σ n 2 + n n + 1 ( x n + 1 − μ n ) 2 {\\displaystyle (n+1)\\sigma _{n+1}^{2}=n\\sigma _{n}^{2}+{\\frac {n}{n+1}}(x_{n+1}-\\mu _{n})^{2}}","segments":[{"text":"For population variance ( "},{"tex":"\\sigma ^{2}={\\frac {SS}{n}}"},{"text":" ), the updating formula is: "},{"tex":"(n+1)\\sigma _{n+1}^{2}=n\\sigma _{n}^{2}+{\\frac {n}{n+1}}(x_{n+1}-\\mu _{n})^{2}"}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":2,"queries":4,"sha256":"d34921506689b6fd66035b025c8160cd7724c78734ee01510d668dddc63edc74"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #57c59e67","item":"In-text #57c59e67","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"e12030e04e70c88f848acebca1f3beb0d1a24bed56c8b135779f923626b25bf7","prominence":"supporting","quote":{"exact":"Setting σ n + 1 2 = σ n 2 {\\displaystyle \\sigma"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Effect of adding one observation on variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Setting σ n + 1 2 = σ n 2 {\\displaystyle \\sigma _{n+1}^{2}=\\sigma _{n}^{2}} : ( n + 1 ) σ n 2 = n σ n 2 + n n + 1 ( x n + 1 − μ n ) 2 {\\displaystyle (n+1)\\sigma _{n}^{2}=n\\sigma _{n}^{2}+{\\frac {n}{n+1}}(x_{n+1}-\\mu _{n})^{2}}","segments":[{"text":"Setting "},{"tex":"\\sigma _{n+1}^{2}=\\sigma _{n}^{2}"},{"text":" : "},{"tex":"(n+1)\\sigma _{n}^{2}=n\\sigma _{n}^{2}+{\\frac {n}{n+1}}(x_{n+1}-\\mu _{n})^{2}"}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":2,"queries":4,"sha256":"45c74cba827bd19e084eef32613845af1faa2ccd189b097a4e721c528a650c0e"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #80d663ef","item":"In-text #80d663ef","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"0ef7b89ebac18dbb2d64f7b9728583ebe5b08d15d73840b168e83d52160d5f37","prominence":"supporting","quote":{"exact":"σ n 2 = n n + 1 ( x n +"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Effect of adding one observation on variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"( n + 1 ) σ n 2 = n σ n 2 + n n + 1 ( x n + 1 − μ n ) 2 {\\displaystyle (n+1)\\sigma _{n}^{2}=n\\sigma _{n}^{2}+{\\frac {n}{n+1}}(x_{n+1}-\\mu _{n})^{2}} ","lead_in":true,"segments":[{"tex":"(n+1)\\sigma _{n}^{2}=n\\sigma _{n}^{2}+{\\frac {n}{n+1}}(x_{n+1}-\\mu _{n})^{2}"},{"text":" "}]},"layer":"σ n 2 = n n + 1 ( x n + 1 − μ n ) 2 {\\displaystyle \\sigma _{n}^{2}={\\frac {n}{n+1}}(x_{n+1}-\\mu _{n})^{2}}","segments":[{"tex":"\\sigma _{n}^{2}={\\frac {n}{n+1}}(x_{n+1}-\\mu _{n})^{2}"}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":2,"queries":4,"sha256":"b147cdeae858e67106f6f67dbb1fc7c6a0ff68213bdfa88a46fbd081a99795f0"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #a9cd0506","item":"In-text #a9cd0506","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"ab64ed41a4a4e1b349bdcbf844ee1d2e69e2578e10abb51bca85c4a926ba20ae","prominence":"supporting","quote":{"exact":"Solving for x n + 1 {\\displaystyle x_{n+1}} yields: x n +","suffix":" 1 = μ"},"quote_capped":true,"section":["Population variance and sample variance","Sample variance","Effect of adding one observation on variance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Solving for x n + 1 {\\displaystyle x_{n+1}} yields: x n + 1 = μ n ± σ n n + 1 n {\\displaystyle x_{n+1}=\\mu _{n}\\pm \\sigma _{n}{\\sqrt {\\frac {n+1}{n}}}}","segments":[{"text":"Solving for "},{"tex":"x_{n+1}"},{"text":" yields: "},{"tex":"x_{n+1}=\\mu _{n}\\pm \\sigma _{n}{\\sqrt {\\frac {n+1}{n}}}"}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":3,"queries":4,"sha256":"0a1186c388dc6909e1f77515e77294e59dfa390835473a4dee154cf86947647a"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #977e85bd","item":"In-text #977e85bd","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"f549bc9c70a9a316644f57e37552557e9ad88a6f0600324798ceacc483865ade","prominence":"central","quote":{"exact":"It has been shown[25] that for a sample {yi} of positive real"},"quote_capped":true,"section":["Population variance and sample variance","Relations with the harmonic and arithmetic means"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"It has been shown[25] that for a sample {yi} of positive real numbers, σ y 2 ≤ 2 y max ( A − H ) , {\\displaystyle \\sigma _{y}^{2}\\leq 2y_{\\max }(A-H),} where ymax is the maximum of the sample, ⁠ A {\\displaystyle A} ⁠ is the arithmetic mean, ⁠ H {\\displaystyle H} ⁠ is the harmonic mean of the sample and σ y 2 {\\displaystyle \\sigma _{y}^{2}} is the (biased) variance of the sample.","segments":[{"text":"It has been shown"},{"ref":"[25]"},{"text":" that for a sample {yi} of positive real numbers, "},{"display":true,"tex":"\\sigma _{y}^{2}\\leq 2y_{\\max }(A-H),"},{"text":" where ymax is the maximum of the sample, ⁠ "},{"tex":"A"},{"text":" ⁠ is the arithmetic mean, ⁠ "},{"tex":"H"},{"text":" ⁠ is the harmonic mean of the sample and "},{"tex":"\\sigma _{y}^{2}"},{"text":" is the (biased) variance of the sample."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":3,"queries":4,"sha256":"da4386e13eb75cec8a9f7ae2259ca4bcfd6d3548fb00f94847a8da0313ada5e0"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #1b264477","item":"In-text #1b264477","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"3c85e411a7f1c35c8392b77f626d8580d1a77af2e6bfdb75ee0bc855a258160a","prominence":"central","quote":{"exact":"it is known that variance is bounded by σ y 2 ≤"},"quote_capped":true,"section":["Population variance and sample variance","Relations with the harmonic and arithmetic means"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"This bound has been improved, and ","segments":[{"text":"This bound has been improved, and "}]},"layer":"it is known that variance is bounded by σ y 2 ≤ y max ( A − H ) ( y max − A ) y max − H , σ y 2 ≥ y min ( A − H ) ( A − y min ) H − y min , {\\displaystyle {\\begin{aligned}\\sigma _{y}^{2}&\\leq {\\frac {y_{\\max }(A-H)(y_{\\max }-A)}{y_{\\max }-H}},\\\\[1ex]\\sigma _{y}^{2}&\\geq {\\frac {y_{\\min }(A-H)(A-y_{\\min })}{H-y_{\\min }}},\\end{aligned}}} where ymin is the minimum of the sample.","segments":[{"text":"it is known that variance is bounded by "},{"display":true,"tex":"\\begin{aligned}\\sigma _{y}^{2}&\\leq {\\frac {y_{\\max }(A-H)(y_{\\max }-A)}{y_{\\max }-H}},\\\\[1ex]\\sigma _{y}^{2}&\\geq {\\frac {y_{\\min }(A-H)(A-y_{\\min })}{H-y_{\\min }}},\\end{aligned}"},{"text":" where ymin is the minimum of the sample."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":3,"queries":3,"sha256":"b35bed5ff187dc9b926ab4545fcb78f7b251a5cda3b1ec631db6765ff001614d"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #aa035e4d","item":"In-text #aa035e4d","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"e10e2ab2a7ea91a4f8fd515c4b2fff808f6a2ac1f664320514f4993f60dd118b","prominence":"supporting","quote":{"exact":"The moment of inertia of a cloud of n points with a"},"quote_capped":true,"section":["Moment of inertia"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The moment of inertia of a cloud of n points with a covariance matrix of Σ {\\displaystyle \\Sigma } is given by[citation needed] I = n ( 1 3 × 3 tr ⁡ ( Σ ) − Σ ) . {\\displaystyle I=n\\left(\\mathbf {1} _{3\\times 3}\\operatorname {tr} (\\Sigma )-\\Sigma \\right).}","segments":[{"text":"The moment of inertia of a cloud of n points with a covariance matrix of "},{"tex":"\\Sigma"},{"text":" is given by[citation needed] "},{"display":true,"tex":"I=n\\left(\\mathbf {1} _{3\\times 3}\\operatorname {tr} (\\Sigma )-\\Sigma \\right)."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":2,"queries":3,"sha256":"b521a1b9fd7862643103186127f189d1b1bc7544f421aec799caa1363ec23c29"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #d1fde7e3","item":"In-text #d1fde7e3","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"57c39be1e261e989202ab2a48bde964f1439c33dc4fa46aa0f7700dbc361de33","prominence":"supporting","quote":{"exact":"That is, there is the most variance in the x direction. Physicists"},"quote_capped":true,"section":["Moment of inertia"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"That is, there is the most variance in the x direction. Physicists would consider this to have a low moment about the x axis so the moment-of-inertia tensor is I = n [ 0.2 0 0 0 10.1 0 0 0 10.1 ] . {\\displaystyle I=n{\\begin{bmatrix}0.2&0&0\\\\0&10.1&0\\\\0&0&10.1\\end{bmatrix}}.}","segments":[{"text":"That is, there is the most variance in the x direction. Physicists would consider this to have a low moment about the x axis so the moment-of-inertia tensor is "},{"display":true,"tex":"I=n{\\begin{bmatrix}0.2&0&0\\\\0&10.1&0\\\\0&0&10.1\\end{bmatrix}}."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":2,"queries":3,"sha256":"9e3491d6aa277d20690f9300b701ab2edffe1bce3086e10e7fcb6f0c466be582"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #f36d2294","item":"In-text #f36d2294","kind":"definition","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"ea412684b6ddd3386f31e0841449d9bfceff362b453474d36717debd516fe0b2","prominence":"central","quote":{"exact":"The semivariance is calculated in the same manner as the variance but"},"quote_capped":true,"section":["Semivariance"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":" It is also described as a specific measure in different fields of application.","segments":[{"text":" It is also described as a specific measure in different fields of application."}]},"layer":"The semivariance is calculated in the same manner as the variance but only those observations that fall below the mean are included in the calculation: Semivariance = 1 n ∑ i : x i < μ ( x i − μ ) 2 {\\displaystyle {\\text{Semivariance}}={\\frac {1}{n}}\\sum _{i:x_{i}<\\mu }{\\left(x_{i}-\\mu \\right)}^{2}}","segments":[{"text":"The semivariance is calculated in the same manner as the variance but only those observations that fall below the mean are included in the calculation: "},{"display":true,"tex":"{\\text{Semivariance}}={\\frac {1}{n}}\\sum _{i:x_{i}<\\mu }{\\left(x_{i}-\\mu \\right)}^{2}"}]},"unresolved":null},{"absence":null,"basis":"b1d3523999b2a442125c5047c028a0314e491abf25a61928ad789d14484832d2","coverage":null,"id":"enwiki-32344-1368633150::In-text #2913bcbf","item":"In-text #2913bcbf","kind":"theorem","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.IndepFun.variance_add","end_line":415,"library":"mathlib","line":408,"location_key":"b1d3523999b2a442125c5047c028a0314e491abf25a61928ad789d14484832d2","module":"Mathlib.Probability.Moments.Variance","note":"Lean measures the dispersion of each cause by its variance where the quote measures the same dispersion by its square root, and states the additivity in that encoding.","pair_key":"4a8c30111836e23499ff9e18b2a1ea58e5bedfe8732de771f178fbb0aa31dd5d","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":1,"relation":"closeMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.variance_add {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X Y : Ω → ℝ} : MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.IndepFun X Y μ → ProbabilityTheory.variance (X + Y) μ = ProbabilityTheory.variance X μ + ProbabilityTheory.variance Y μ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.IndepFun.variance_fun_add","end_line":420,"library":"mathlib","line":418,"location_key":"1b28eca679a3a486f626d4299559cee6f79e891e8fbe72bbbd665056bc80ffbb","module":"Mathlib.Probability.Moments.Variance","note":"This is the pointwise form of the same additivity, again recording each spread as a variance rather than as its square root.","pair_key":"b1a4c9dba41f9c17a87d3a9b446f9a11cc49d747a030b89a45f976bf5eef42ec","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"proved","rank":2,"relation":"closeMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.IndepFun.variance_fun_add {Ω : Type*} {mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X Y : Ω → ℝ} : MeasureTheory.MemLp X 2 μ → MeasureTheory.MemLp Y 2 μ → ProbabilityTheory.IndepFun X Y μ → ProbabilityTheory.variance (fun ω ↦ X ω + Y ω) μ = ProbabilityTheory.variance X μ + ProbabilityTheory.variance Y μ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"cdc21d6aef7a169a10a15e1a64eb757bc7771ab97fae052f4211e094313f604f","prominence":"supporting","quote":{"exact":"When there are two independent causes of variability capable of producing in"},"quote_capped":true,"section":["Etymology"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"When there are two independent causes of variability capable of producing in an otherwise uniform population distributions with standard deviations σ 1 {\\displaystyle \\sigma _{1}} and σ 2 {\\displaystyle \\sigma _{2}} , it is found that the distribution, when both causes act together, has a standard deviation σ 1 2 + σ 2 2 {\\displaystyle {\\sqrt {\\sigma _{1}^{2}+\\sigma _{2}^{2}}}} .","segments":[{"text":"When there are two independent causes of variability capable of producing in an otherwise uniform population distributions with standard deviations "},{"tex":"\\sigma _{1}"},{"text":" and "},{"tex":"\\sigma _{2}"},{"text":" , it is found that the distribution, when both causes act together, has a standard deviation "},{"tex":"\\sqrt {\\sigma _{1}^{2}+\\sigma _{2}^{2}}"},{"text":" ."}]},"unresolved":null},{"absence":null,"basis":"1afa00dc5c317f1e45ddd86e9193d01a833fb6a56c7742cd37baf9b39dcdc2a3","coverage":null,"id":"enwiki-32344-1368633150::In-text #9bebbfd4","item":"In-text #9bebbfd4","kind":"definition","locations":[{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.variance","end_line":64,"library":"mathlib","line":64,"location_key":"1afa00dc5c317f1e45ddd86e9193d01a833fb6a56c7742cd37baf9b39dcdc2a3","module":"Mathlib.Probability.Moments.Variance","note":"Mathlib introduces this quantity only for random variables with real values, the case of the quote in which the conjugated factor coincides with the first factor.","pair_key":"7ab82a8a7137e2d2aadecf4a55327f74854803e0e00dc4542fc37ef895e23f65","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"definition","rank":1,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def ProbabilityTheory.variance {Ω : Type*} {mΩ : MeasurableSpace Ω} : (Ω → ℝ) → MeasureTheory.Measure Ω → ℝ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"low","declaration":"ProbabilityTheory.evariance","end_line":58,"library":"mathlib","line":58,"location_key":"07936add6fefc240cd3d6be63b87f34f6337ca03808cb7a0b1826287e2ac5079","module":"Mathlib.Probability.Moments.Variance","note":"This is the extended-nonnegative-real form of the same construction, again only for random variables with real values.","pair_key":"d72f1a564601058ba9c959fa45a15caf0dac9ec844b2242a07f895e5c61b39da","path":"Mathlib/Probability/Moments/Variance.lean","proof_status":"definition","rank":2,"relation":"narrowMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def ProbabilityTheory.evariance {Ω : Type*} {mΩ : MeasurableSpace Ω} : (Ω → ℝ) → MeasureTheory.Measure Ω → ENNReal"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"6c0ae998443535d390286ec955863507c28b6b1a55806ac5edf9d9f784ef06e8","prominence":"central","quote":{"exact":"If x {\\displaystyle x} is a scalar complex-valued random variable, with values"},"quote_capped":true,"section":["Generalizations","For complex variables"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"If x {\\displaystyle x} is a scalar complex-valued random variable, with values in ⁠ C {\\displaystyle \\mathbb {C} } ⁠, then its variance is ⁠ E ⁡ [ ( x − μ ) ( x − μ ) ∗ ] {\\displaystyle \\operatorname {E} \\left[(x-\\mu )(x-\\mu )^{*}\\right]} ⁠, where x ∗ {\\displaystyle x^{*}} is the complex conjugate of ⁠ x {\\displaystyle x} ⁠.","segments":[{"text":"If "},{"tex":"x"},{"text":" is a scalar complex-valued random variable, with values in ⁠ "},{"tex":"\\mathbb {C}"},{"text":" ⁠, then its variance is ⁠ "},{"tex":"\\operatorname {E} \\left[(x-\\mu )(x-\\mu )^{*}\\right]"},{"text":" ⁠, where "},{"tex":"x^{*}"},{"text":" is the complex conjugate of ⁠ "},{"tex":"x"},{"text":" ⁠."}]},"unresolved":null},{"absence":{"challenge":"sampled_out","libraries":48,"receipt":{"candidates":3,"queries":3,"sha256":"9030ce7531104a4856778532a1a4545056a0d168fda6fb41d877e3ac086c7159"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #6ce46f95","item":"In-text #6ce46f95","kind":"theorem","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"dcee35b0f0d4610eaacb19c2ff3213d7e58a3278a495659061f03cdb80319393","prominence":"supporting","quote":{"exact":"This variance is a real scalar."},"quote_capped":false,"section":["Generalizations","For complex variables"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"This variance is a real scalar.","segments":[{"text":"This variance is a real scalar."}]},"unresolved":null},{"absence":null,"basis":"5b7471cc37cb10559657f79ae779432d8a87bf611f4ca93196336eea2cb858de","coverage":null,"id":"enwiki-32344-1368633150::In-text #c9f53e96","item":"In-text #c9f53e96","kind":"definition","locations":[{"challenge":"survived","commit":"64c2773ffad3e5453b9f40c62e693b3669ade83f","confidence":"medium","declaration":"MathlibExt.Probability.IsotropicConstant.covarianceMatrix","library":"atlas","line":35,"location_key":"5b7471cc37cb10559657f79ae779432d8a87bf611f4ca93196336eea2cb858de","module":"MathlibExt.Probability.Geometry.IsotropicConstant","note":"The library feeds the construction the law of the vector as a measure and reads the matrix off the covariances of the coordinate variables instead of writing one expectation of an outer product.","pair_key":"b0baef5183efe330b46b0fd5652ce8a7347ff480c9bff18c9d8c27089d0bda70","path":"MathlibExt/Probability/Geometry/IsotropicConstant.lean","proof_status":"definition","rank":1,"relation":"closeMatch","repo":"https://github.com/facebookresearch/atlas-lean","signature":{"elided":false,"text":"def MathlibExt.Probability.IsotropicConstant.covarianceMatrix {n : ℕ} : MeasureTheory.Measure (EuclideanSpace ℝ (Fin n)) → Matrix (Fin n) (Fin n) ℝ"},"statement":false},{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.covMatrix","end_line":53,"library":"tauceti","line":52,"location_key":"43e9c0e24a66b453cf52affdcc67d2fec8b8843ea8718620656221013d35cbbe","module":"TauCeti.Probability.Moments.Covariance","note":"The library builds the matrix for an arbitrary index type, so it also covers index sets that are not finite, and it takes the law of the vector as its input.","pair_key":"a34dde8b0819305aac64abe5616d4fb87ef46d784a17617339773f68859f55dc","path":"TauCeti/Probability/Moments/Covariance.lean","proof_status":"definition","rank":2,"relation":"broadMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"def TauCeti.covMatrix {ι : Type*} : MeasureTheory.Measure (EuclideanSpace ℝ ι) → Matrix ι ι ℝ"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.covarianceBilin","end_line":53,"library":"mathlib","line":51,"location_key":"02207002e11dca641752028aa3b5810f6c89b0ff3917948019e4ec72d5dfe88f","module":"Mathlib.Probability.Moments.CovarianceBilin","note":"Mathlib records the covariance of a measure as a continuous bilinear form on any real inner product space, including spaces of infinite dimension, rather than as a matrix.","pair_key":"4331c0c32c36a7fbed2b02c0c943794bd0cee52ef6a5a583bb525133d78f63a9","path":"Mathlib/Probability/Moments/CovarianceBilin.lean","proof_status":"definition","rank":3,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"def ProbabilityTheory.covarianceBilin {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [MeasurableSpace E] [BorelSpace E] : MeasureTheory.Measure E → E →L[ℝ] E →L[ℝ] ℝ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"85e1b431fc386b24b0b34182def07db1f5e9f39b7b97f28b0216e28ab814a6e6","prominence":"central","quote":{"exact":"If X {\\displaystyle X} is a vector-valued random variable, with values in"},"quote_capped":true,"section":["Generalizations","For vector-valued random variables","As a matrix"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"If X {\\displaystyle X} is a vector-valued random variable, with values in R n , {\\displaystyle \\mathbb {R} ^{n},} and thought of as a column vector, then a natural generalization of variance is E ⁡ [ ( X − μ ) ( X − μ ) T ] , {\\displaystyle \\operatorname {E} \\left[(X-\\mu ){(X-\\mu )}^{\\mathsf {T}}\\right],} where μ = E ⁡ ( X ) {\\displaystyle \\mu =\\operatorname {E} (X)} and X T {\\displaystyle X^{\\mathsf {T}}} is the transpose of ⁠ X {\\displaystyle X} ⁠, and so is a row vector.","segments":[{"text":"If "},{"tex":"X"},{"text":" is a vector-valued random variable, with values in "},{"tex":"\\mathbb {R} ^{n},"},{"text":" and thought of as a column vector, then a natural generalization of variance is "},{"tex":"\\operatorname {E} \\left[(X-\\mu ){(X-\\mu )}^{\\mathsf {T}}\\right],"},{"text":" where "},{"tex":"\\mu =\\operatorname {E} (X)"},{"text":" and "},{"tex":"X^{\\mathsf {T}}"},{"text":" is the transpose of ⁠ "},{"tex":"X"},{"text":" ⁠, and so is a row vector."}]},"unresolved":null},{"absence":null,"basis":"da4415d4179dd04838bd6eb4d126c0c3e40255e38b1cceda087371e65b3606e1","coverage":null,"id":"enwiki-32344-1368633150::In-text #edb3b39e","item":"In-text #edb3b39e","kind":"theorem","locations":[{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.posSemidef_covMatrix","end_line":107,"library":"tauceti","line":99,"location_key":"da4415d4179dd04838bd6eb4d126c0c3e40255e38b1cceda087371e65b3606e1","module":"TauCeti.Probability.Moments.Covariance","note":"The statement is made for an arbitrary finite index type, and squareness is carried by the Lean type of the matrix rather than proved.","pair_key":"9c528e6d7b332204edd00e38c55b3e7c1fd888b208bc92be52a4e1a8662ccb90","path":"TauCeti/Probability/Moments/Covariance.lean","proof_status":"proved","rank":1,"relation":"broadMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.posSemidef_covMatrix {ι : Type*} [Fintype ι] (μ : MeasureTheory.Measure (EuclideanSpace ℝ ι)) [MeasureTheory.IsFiniteMeasure μ] : MeasureTheory.MemLp id 2 μ → (TauCeti.covMatrix μ).PosSemidef"},"statement":false},{"challenge":"survived","commit":"3dfb8e22b67042b31fac228dee0e1169a1a7820f","confidence":"medium","declaration":"ProbabilityTheory.isPosSemidef_covarianceBilin","end_line":109,"library":"mathlib","line":106,"location_key":"abe521219652e70c04828f4026897319629028b003c5f738373bf0fc68d69ea8","module":"Mathlib.Probability.Moments.CovarianceBilin","note":"Mathlib phrases the covariance of a measure as a bilinear form on any real inner product space and calls that form positive semidefinite; the matrix shape is the coordinate reading of the same form.","pair_key":"2f97973acdc8cd443391f4b507a31c0c90ab843ea050f9362ed5e353db7f6e5b","path":"Mathlib/Probability/Moments/CovarianceBilin.lean","proof_status":"proved","rank":2,"relation":"broadMatch","repo":"https://github.com/leanprover-community/mathlib4","signature":{"elided":false,"text":"theorem ProbabilityTheory.isPosSemidef_covarianceBilin {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [MeasurableSpace E] [BorelSpace E] {μ : MeasureTheory.Measure E} : (ProbabilityTheory.covarianceBilin μ).toBilinForm.IsPosSemidef"},"statement":false},{"challenge":"survived","commit":"64c2773ffad3e5453b9f40c62e693b3669ade83f","confidence":"medium","declaration":"MathlibExt.Probability.IsotropicConstant.covarianceMatrix_posSemidef","library":"atlas","line":66,"location_key":"d4f3aeb282564ea5314c56c03de4f7b5621019a306ee0149db5ee9b3affe76ef","module":"MathlibExt.Probability.Geometry.IsotropicConstant","note":"Log-concavity of the law is assumed, and some of the passage's vectors (Gaussian or uniform on a convex body) meet it.","pair_key":"c472ff50433c129fb094f7a12c66cd2ce03cd1a8294140547a098ad24654e297","path":"MathlibExt/Probability/Geometry/IsotropicConstant.lean","proof_status":"proved","rank":3,"relation":"narrowMatch","repo":"https://github.com/facebookresearch/atlas-lean","signature":{"elided":false,"text":"theorem MathlibExt.Probability.IsotropicConstant.covarianceMatrix_posSemidef {n : ℕ} (μ : MathlibExt.Probability.IsotropicConstant.LogConcaveLaw n) : (MathlibExt.Probability.IsotropicConstant.covarianceMatrix μ.law).PosSemidef"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"43354ff5e39f2f5b37839a0a07501eddd589767fe2fad70fe2bcfb80a32a1571","prominence":"central","quote":{"exact":"The result is a positive semi-definite square matrix, commonly referred to as"},"quote_capped":true,"section":["Generalizations","For vector-valued random variables","As a matrix"],"status":"formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"The result is a positive semi-definite square matrix, commonly referred to as the variance-covariance matrix (or simply as the covariance matrix).","segments":[{"text":"The result is a positive semi-definite square matrix, commonly referred to as the variance-covariance matrix (or simply as the covariance matrix)."}]},"unresolved":null},{"absence":null,"basis":"259adf1d8f1241d429c5f12e5576dab6e2697640ce9bf75e51621bdb9f97b6a8","coverage":null,"id":"enwiki-32344-1368633150::In-text #c36834ec","item":"In-text #c36834ec","kind":"definition","locations":[{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"medium","declaration":"TauCeti.covMatrix","end_line":53,"library":"tauceti","line":52,"location_key":"259adf1d8f1241d429c5f12e5576dab6e2697640ce9bf75e51621bdb9f97b6a8","module":"TauCeti.Probability.Moments.Covariance","note":"The library only treats vectors with real coordinates, where the matrix is real; the genuinely complex case, with the conjugate transpose acting, is not covered.","pair_key":"c5bf58fa8b0cb70c3e10d46fc71b8fb8cc723584f857d4314fe24424abf700a9","path":"TauCeti/Probability/Moments/Covariance.lean","proof_status":"definition","rank":1,"relation":"narrowMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"def TauCeti.covMatrix {ι : Type*} : MeasureTheory.Measure (EuclideanSpace ℝ ι) → Matrix ι ι ℝ"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"d3b55d938e40e061da5c38144dd30a622a0f19527f86a5fc0badfbb124d36054","prominence":"central","quote":{"exact":"If X {\\displaystyle X} is a vector- and complex-valued random variable, with"},"quote_capped":true,"section":["Generalizations","For vector-valued random variables","As a matrix"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"after":{"layer":" This matrix is also positive semi-definite and square.","segments":[{"text":" This matrix is also positive semi-definite and square."}]},"layer":"If X {\\displaystyle X} is a vector- and complex-valued random variable, with values in ⁠ C n {\\displaystyle \\mathbb {C} ^{n}} ⁠, then the covariance matrix is ⁠ E ⁡ [ ( X − μ ) ( X − μ ) † ] {\\displaystyle \\operatorname {E} \\left[(X-\\mu ){(X-\\mu )}^{\\dagger }\\right]} ⁠, where X † {\\displaystyle X^{\\dagger }} is the conjugate transpose of ⁠ X {\\displaystyle X} ⁠.[citation needed]","segments":[{"text":"If "},{"tex":"X"},{"text":" is a vector- and complex-valued random variable, with values in ⁠ "},{"tex":"\\mathbb {C} ^{n}"},{"text":" ⁠, then the covariance matrix is ⁠ "},{"tex":"\\operatorname {E} \\left[(X-\\mu ){(X-\\mu )}^{\\dagger }\\right]"},{"text":" ⁠, where "},{"tex":"X^{\\dagger }"},{"text":" is the conjugate transpose of ⁠ "},{"tex":"X"},{"text":" ⁠.[citation needed]"}]},"unresolved":null},{"absence":null,"basis":"7b425b6da7ce45f0820b368b2ef9ad811bcc58349cb2792183af4b8f27ea8ffe","coverage":null,"id":"enwiki-32344-1368633150::In-text #6d5e95f1","item":"In-text #6d5e95f1","kind":"theorem","locations":[{"challenge":"sampled_out","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"medium","declaration":"TauCeti.posSemidef_covMatrix","end_line":107,"library":"tauceti","line":99,"location_key":"7b425b6da7ce45f0820b368b2ef9ad811bcc58349cb2792183af4b8f27ea8ffe","module":"TauCeti.Probability.Moments.Covariance","note":"Only the real-coordinate vectors are covered, and square-integrability of the law is assumed.","pair_key":"1d884d786b814d1cad91c6af8c042e12e576f235278d4ca06064dcfcb4b72389","path":"TauCeti/Probability/Moments/Covariance.lean","proof_status":"proved","rank":1,"relation":"narrowMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.posSemidef_covMatrix {ι : Type*} [Fintype ι] (μ : MeasureTheory.Measure (EuclideanSpace ℝ ι)) [MeasureTheory.IsFiniteMeasure μ] : MeasureTheory.MemLp id 2 μ → (TauCeti.covMatrix μ).PosSemidef"},"statement":false}],"outcome":"located","passage_ends_in_suffix":false,"passage_key":"2d9effd3470514df2a31b25a931ed40d16f843dd278805806c5170998919f998","prominence":"supporting","quote":{"exact":"This matrix is also positive semi-definite and square."},"quote_capped":false,"section":["Generalizations","For vector-valued random variables","As a matrix"],"status":"partial","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"before":{"layer":"with values in ⁠ C n {\\displaystyle \\mathbb {C} ^{n}} ⁠, then the covariance matrix is ⁠ E ⁡ [ ( X − μ ) ( X − μ ) † ] {\\displaystyle \\operatorname {E} \\left[(X-\\mu ){(X-\\mu )}^{\\dagger }\\right]} ⁠, where X † {\\displaystyle X^{\\dagger }} is the conjugate transpose of ⁠ X {\\displaystyle X} ⁠.[citation needed] ","segments":[{"text":"with values in ⁠ "},{"tex":"\\mathbb {C} ^{n}"},{"text":" ⁠, then the covariance matrix is ⁠ "},{"tex":"\\operatorname {E} \\left[(X-\\mu ){(X-\\mu )}^{\\dagger }\\right]"},{"text":" ⁠, where "},{"tex":"X^{\\dagger }"},{"text":" is the conjugate transpose of ⁠ "},{"tex":"X"},{"text":" ⁠.[citation needed] "}],"trimmed":true},"layer":"This matrix is also positive semi-definite and square.","segments":[{"text":"This matrix is also positive semi-definite and square."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":4,"queries":4,"sha256":"b3aba428e26d41ab6e3f73aa7e33d08142264200b0d528cc24fa7dc68b46800d"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #5c027dde","item":"In-text #5c027dde","kind":"definition","locations":[],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"2269f09df2777f084c3708033d8197a31f61fd2c3d9bf0350433497de05b5193","prominence":"central","quote":{"exact":"Another generalization of variance for vector-valued random variables X , {\\displaystyle X,}"},"quote_capped":true,"section":["Generalizations","For vector-valued random variables","As a scalar"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"Another generalization of variance for vector-valued random variables X , {\\displaystyle X,} which results in a scalar value rather than in a matrix, is the generalized variance ⁠ det ( C ) {\\displaystyle \\det(C)} ⁠, the determinant of the covariance matrix.","segments":[{"text":"Another generalization of variance for vector-valued random variables "},{"tex":"X,"},{"text":" which results in a scalar value rather than in a matrix, is the generalized variance ⁠ "},{"tex":"\\det(C)"},{"text":" ⁠, the determinant of the covariance matrix."}]},"unresolved":null},{"absence":{"challenge":"survived","libraries":48,"receipt":{"candidates":4,"queries":4,"sha256":"60401b5ce5a12c95dcabfd2cd328b05ea72286a0963ff454b07b7ba5fb99dfd5"},"universe":"u1","universe_sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"basis":null,"coverage":null,"id":"enwiki-32344-1368633150::In-text #d4ddb654","item":"In-text #d4ddb654","kind":"theorem","locations":[{"challenge":"survived","commit":"83245abb3e4a4377e8d779ac045363a90c7e3a86","confidence":"high","declaration":"TauCeti.integral_norm_sq_eq_norm_integral_sq_add_trace_covMatrix","end_line":133,"library":"tauceti","line":111,"location_key":"041a5683f14589a25e32f1e3881a86f2ae9dacadbbe8231ec952b0b24c7942d3","module":"TauCeti.Probability.Moments.Covariance","note":"It decomposes the second moment of the uncentred vector into the squared norm of the mean plus the trace, so getting the passage's centred identity from it still needs the expansion of the squared norm of a difference.","pair_key":"391f99e5c41ba74bca9d4e166c0c10dcdb77c094adb83de60a52b8feba30c194","path":"TauCeti/Probability/Moments/Covariance.lean","proof_status":"proved","rank":1,"relation":"relatedMatch","repo":"https://github.com/TauCetiProject/TauCeti","signature":{"elided":false,"text":"theorem TauCeti.integral_norm_sq_eq_norm_integral_sq_add_trace_covMatrix {ι : Type*} [Fintype ι] (μ : MeasureTheory.Measure (EuclideanSpace ℝ ι)) [MeasureTheory.IsProbabilityMeasure μ] : MeasureTheory.MemLp id 2 μ → ∫ (x : EuclideanSpace ℝ ι), ‖x‖ ^ 2 ∂μ = ‖∫ (x : EuclideanSpace ℝ ι), x ∂μ‖ ^ 2 + (TauCeti.covMatrix μ).trace"},"statement":false}],"outcome":"absent","passage_ends_in_suffix":false,"passage_key":"5ea5a3541137ae9fd7c40fc1850576891a46797d3d331b28a8b569da07a56445","prominence":"central","quote":{"exact":"This results in E ⁡ [ ( X − μ ) T"},"quote_capped":true,"section":["Generalizations","For vector-valued random variables","As a scalar"],"status":"not_formalized","subject_uri":"https://en.wikipedia.org/w/index.php?curid=32344&oldid=1368633150","text":{"layer":"This results in E ⁡ [ ( X − μ ) T ( X − μ ) ] = tr ⁡ ( C ) , {\\displaystyle \\operatorname {E} \\left[(X-\\mu )^{\\mathsf {T}}(X-\\mu )\\right]=\\operatorname {tr} (C),} which is the trace of the covariance matrix.","segments":[{"text":"This results in "},{"tex":"\\operatorname {E} \\left[(X-\\mu )^{\\mathsf {T}}(X-\\mu )\\right]=\\operatorname {tr} (C),"},{"text":" which is the trace of the covariance matrix."}]},"unresolved":null}],"provenance":{"challenge":{"harvested":"2026-11-01T14:25:17Z","mode":"locate-challenge","model":"claude-opus-5","model_name":"Claude Opus 5","operator":"jack","reviewer_model":"claude-opus-5","reviewer_model_name":"Claude Opus 5","run_id":"chal-tierA-b1","sampling":{"absence_sample_rate":0.25,"sample_rate":0.2,"seed":0,"strong_sample_rate":0.5},"skill_commit":"d85385aa4eb2818373e9b6b8b41b765ffaf53750","started":"2026-11-01T03:19:32Z"},"inventory":{"harvested":"2026-10-30T20:00:47Z","mode":"locate-inventory","model":"claude-opus-5","model_name":"Claude Opus 5","operator":"jack","reviewer_model":"claude-opus-5","reviewer_model_name":"Claude Opus 5","run_id":"inv-tierA-b1r","skill_commit":"d85385aa4eb2818373e9b6b8b41b765ffaf53750","started":"2026-10-30T07:23:03Z"},"locate":{"harvested":"2026-11-01T03:06:57Z","mode":"locate","model":"claude-opus-5","model_name":"Claude Opus 5","operator":"jack","reviewer_model":"claude-opus-5","reviewer_model_name":"Claude Opus 5","run_id":"loc-tierA-b1b","skill_commit":"d85385aa4eb2818373e9b6b8b41b765ffaf53750","started":"2026-10-31T04:59:09Z"}},"reader":{"bytes":695098,"images":[{"author":"JRBrown","file":"Comparison_standard_deviations.svg","licence":"Public domain","licence_url":null,"project":"commons"},{"author":"Headbomb","file":"Lock-gray-alt-2.svg","licence":"CC0","licence_url":"https://creativecommons.org/publicdomain/zero/1.0/deed.en","project":"commons"},{"author":"User:Trappist the monk","file":"Lock-green.svg","licence":"CC0","licence_url":"https://creativecommons.org/publicdomain/zero/1.0/deed.en","project":"commons"},{"author":"VulpesVulpes42, Headbomb","file":"Lock-red-alt-2.svg","licence":"CC0","licence_url":"https://creativecommons.org/publicdomain/zero/1.0/deed.en","project":"commons"},{"author":"Loglogisticpdf.svg: Qwfp (talk) Original uploader was Qwfp at en.wikipedia derivative work: Nils von Barth (nbarth) (talk)","file":"Loglogisticpdf_no-labels.svg","licence":"CC BY-SA 3.0","licence_url":"https://creativecommons.org/licenses/by-sa/3.0","project":"commons"},{"author":"https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/AUTHORS.txt","file":"OOjs_UI_icon_edit-ltr-progressive.svg","licence":"PD","licence_url":null,"project":"en"},{"author":"OpenClipart","file":"People_icon.svg","licence":"CC0","licence_url":"https://creativecommons.org/publicdomain/zero/1.0/deed.en","project":"commons"},{"author":"Jheald","file":"Scaled_chi_squared.svg","licence":"CC0","licence_url":"https://creativecommons.org/publicdomain/zero/1.0/deed.en","project":"commons"},{"author":"Jheald","file":"Scaled_chi_squared_cdf.svg","licence":"CC0","licence_url":"https://creativecommons.org/publicdomain/zero/1.0/deed.en","project":"commons"},{"author":"Newbzy","file":"Square_root_of_x.svg","licence":"GPL","licence_url":"https://www.gnu.org/licenses/gpl.html","project":"commons"},{"author":"PC78, based on work by Julian Herzog, Zscout370, Ed g2s and Erin Silversmith","file":"Symbol_category_class.svg","licence":"PD","licence_url":null,"project":"en"},{"author":"Future Perfect at Sunrise","file":"Symbol_template_class_pink.svg","licence":"Public domain","licence_url":null,"project":"commons"},{"author":"Cmglee","file":"Variance_visualisation.svg","licence":"CC BY-SA 3.0","licence_url":"https://creativecommons.org/licenses/by-sa/3.0","project":"commons"}],"marks":1195,"passages":171,"sha256":"f93b1c987939dc9af3a00b4397e3617b3efcda937c74d1f8ef4a82de551297ae","unplaced":["enwiki-32344-1368633150::In-text #60e424be","enwiki-32344-1368633150::In-text #0120f913","enwiki-32344-1368633150::In-text #7e17a118"]},"record_set":"23710337d053e8212378a9e580805628bcdfda61a6fc431e65f24a4a16c9e602","records_sha256":"2f8d451c1460a791241f4818c6676118c3ba23c0f0dba45a4a11dc9d1ebf1fb2","revision":1368633150,"schema":"wikilean.articles.article/1","seal":{"created":"2026-11-01T14:25:17Z","schema":"cf-locate-recordset/2","set_id":"tierA-b1b","skill_commit":"d85385aa4eb2818373e9b6b8b41b765ffaf53750","status_rule":3},"source":{"html_sha256":"007bd35401c2def333360e1a387169a6e6be1c6a1bd39243d2abd28e842644ad","layer_sha256":"4e36d816517073fef1f98f0b8449c90bcb778f3dedb23717a8be797c406c2799","renderer":"web-html/3"},"source_id":"enwiki-32344-1368633150","summary":{"by_library":{"atlas":{"complete":5,"incomplete":0,"locations":5,"passages":5,"related":3},"batteries":{"complete":10,"incomplete":0,"locations":10,"passages":10,"related":4},"mathlib":{"complete":93,"incomplete":0,"locations":93,"passages":56,"related":51},"tauceti":{"complete":32,"incomplete":0,"locations":32,"passages":22,"related":20}},"by_prominence":{"central":{"by_status":{"formalized":22,"not_formalized":28,"partial":18,"statement_only":0,"unresolved":0},"passages":68},"subject":{"by_status":{"formalized":1,"not_formalized":0,"partial":0,"statement_only":0,"unresolved":0},"passages":1},"supporting":{"by_status":{"formalized":27,"not_formalized":61,"partial":14,"statement_only":0,"unresolved":3},"passages":105}},"by_proof_status":{"definition":45,"proved":173},"by_relation":{"broadMatch":42,"closeMatch":16,"exactMatch":12,"hasPart":32,"narrowMatch":38,"relatedMatch":78},"by_status":{"formalized":50,"not_formalized":89,"partial":32,"statement_only":0,"unresolved":3},"locations":140,"passages":174,"related":78},"supplements":{"audit_summary":{"schema":"wikilean.articles.audit-summary/1","sha256":"53b29c5773caa9a3a339ccb36db38548137820e05477c4eff49dfb63a91b74df"},"passage_text":{"schema":"wikilean.articles.passage-text/1","sha256":"c0c740562cd14bdcabe43ac1d7ba81039d8e41ef850fd199d7151de6bb774885"},"provenance":{"schema":"wikilean.articles.provenance/1","sha256":"ea245b590ba9078bc0b79003dc1e311dc1421475fe49483e3e3a905ed7c7ec4e"},"reader_html":{"schema":"wikilean.articles.reader-html/1","sha256":"738196c11695087fc8e74590f5ac362acd61af48a8950c0a049559dd3902d2df"},"signatures":{"corpus_built":"2026-10-18T06:14:30Z","corpus_sha256":"a364fd6aede529da1c9f2fa13fda6230a26381f27dafc8801c4205e2b5cf5221","schema":"wikilean.articles.signatures/1","sha256":"2ebb5eebf8b2ebd1f615518abce6169661140cc54d5fcad5f4443150cc62d874","universe":"u1"}},"title":"Variance","universe":{"frozen":"2026-10-17","id":"u1","libraries":48,"sha256":"12e9eacf66816a249dcecba39f20dd7ca977c042af3e6acdb16ac7a45a4a9e76"},"wikidata":"Q175199"}
