expected number of shared 1s between two binary strings from a given set
Statement
Let say, I have two binary strings with length N, chosen from a set where there are independent strings. What would be the expected number of Ones at the same index from two randomly picked strings from the set?
For example, 0010 and 1010, the number of ones at the same index is 1. Can it be by somehow related to the expected hamming distance between two binary strings?
------my own guess, some one could please verify---------
**sorry for the mess, unintentionally, the new problem was posted with this part..
having 1 at the i-th position is an independent event. So, let P(c_i=1) is the probability of having a common 1 at i-th position. Then, the expected number of shared 1s will be . From the set, for ith position, count the number of 1s (denote ), and the number of 0s (denote ). Then . (C is combinations) when , otherwise .
For an example of {11110,1111,01110}, it gives me 3.66666, which sounds correct.
Posed by big daddy · probabilistic-number-theory
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-108599.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-108599.lean
import Mathlib /-! # expected number of shared 1s between two binary strings from a given set Source: https://mathoverflow.net/questions/108599 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_108599 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_108599