xiaolongy

Attempts and failures are information

Note to self on learning and taking actions. Will rewrite it when I understand it deeper, one day.

Attempt process.

Xt∈{0,1},t=1,2,…ℙ(Xt=1∣p)=p,ℙ(Xt=0∣p)=1−p,X1,X2,… i.i.d.

Aggregates after n attempts.

Sn=∑t=1nXt,Fn=n−Sn,p^n=Snn.

Probability of at least one success in n attempts.

Pn(p)=ℙ(Sn≥1∣p)=1−(1−p)n.

Bayesian update.

p~Beta(α0,β0),p∣X1:n~Beta(α0+Sn,β0+Fn),p~n:=𝔼[p∣X1:n]=α0+Snα0+β0+n.

Target planning.

q∈(0,1),n*(p,q):=min{n∈ℕ:1−(1−p)n≥q}=⌈log(1−q)log(1−p)⌉.

Plug-in rule for next block size.

p~n∈{p^n,𝔼[p∣X1:n]},nn+1plan=n*(p~n,q).

Change-of-strategy indicator.

pmin∈(0,1),In:=1{p~n<pmin}.