Simulation 20191026CSP-S

T1

Stepped pit WARNING! ! !

Each point went to the probability of different (probably several ways to come to the same point), do not go directly to the point of all possible circumstances enumerated directly according to the number of cases and the probability of demand
yesterday T1 also hang, hang today T1 also , then not directly linked T1 live
Here Insert Picture Description
first a desired conceptual basis:
E ( x ) = i = 1 n p i x i E(x)=\sum\limits^n_{i=1}p_i*x_i among them p i p_i Probability, x i x_i As a result of

Obviously, x x , Y Y change two coordinates are independent, so we can consider only one-dimensional
treatment x 2 x^2 , we find:
E [ x 2 ] = i = 0 n C n i j = 0 i ( i 2 j ) 2 2 n E[x^2]=\frac{\sum\limits^n_{i=0}C^i_n*\sum\limits^i_{j=0}(i-2j)^2}{2^n}
among them 2 n 2^n is go n n steps all cases, i = 0 n C n i \sum\limits^n_{i=0}C^i_n It is to take i i -step scheme, j = 0 i ( i 2 j ) 2 \sum\limits^i_{j=0}(i-2j)^2 is the result obtained in each pass, i 2 j i-2j is equivalent to taking the actual displacement (able to walk the walk back acridine Q A Q qaq )
followed by law of cosines c 2 = a 2 + b 2 2 a b c o s c c^2 = a^2 + b^2 − 2abcosc provable go n n the step is desired n n .
Or: go x x , the next step must be x ± 1 x±1 , in accordance with the desired linear properties, E ( x 2 ) = E ( ( x ± 1 ) 2 ) = E ( ( x + 1 ) 2 ) + E ( ( x 1 ) 2 ) 2 = x 2 + 1 E(x^2)=E((x±1)^2)=\frac{E((x+1)^2)+E((x-1)^2)}{2}=x^2+1 , so go 1 1 Step contribution to the expectations of all 1 1 , and go n n the step is desired n n

Published 37 original articles · won praise 11 · views 1941

Guess you like

Origin blog.csdn.net/weixin_42750325/article/details/102756969