[Help] Relating Expected Value to combinatorics

Правка en3, от SuperSheep, 2025-02-13 18:18:14

Reading the editorial of this atcoder problem agc028_b (editorial), I noticed that the solution was similar to the solution of D. Score of a Tree (editorial).

Both of those problems define a function to calculate a value based on a random initial configuration of elements. The problems then ask for the sum of values for every possible initial configuration. The editorial solutions involve calculating the expected value of the result and multiplying it by some other value (the contribution of each element or the amount of possible configurations).

My question is, how can we relate the expected value of a result to the exact sum of every possible result? Do you guys have other problems involving that technique or sources that explain it?

Thanks!

Теги expected value, combinations, probability

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский SuperSheep 2025-02-13 18:18:14 0 (published)
en2 Английский SuperSheep 2025-02-13 18:14:31 89 Tiny change: 'oblem/D) (![ ](https://' -> 'oblem/D) ([editorial](https://'
en1 Английский SuperSheep 2025-02-13 18:11:33 1041 Initial revision (saved to drafts)