Kernel: Python 3 (Anaconda 5)
In [11]:
In [12]:
In [13]:
In [14]:
INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_4822bea325d0250e03828b3bc1bb8bdd NOW.
In [15]:
In [16]:
Inference for Stan model: anon_model_4822bea325d0250e03828b3bc1bb8bdd.
4 chains, each with iter=2000; warmup=1000; thin=1;
post-warmup draws per chain=1000, total post-warmup draws=4000.
mean se_mean sd 2.5% 25% 50% 75% 97.5% n_eff Rhat
p 0.76 8.8e-4 0.03 0.69 0.73 0.76 0.78 0.82 1530 1.0
lp__ -80.05 0.02 0.69 -82.12 -80.18 -79.78 -79.62 -79.58 1312 1.0
Samples were drawn using NUTS at Mon Oct 8 12:20:25 2018.
For each parameter, n_eff is a crude measure of effective sample size,
and Rhat is the potential scale reduction factor on split chains (at
convergence, Rhat=1).
In [17]:
Posterior 95% confidence interval for p: [0.685807 0.82461639]
Task 1
In [18]:
In [19]:
Inference for Stan model: anon_model_4822bea325d0250e03828b3bc1bb8bdd.
4 chains, each with iter=2000; warmup=1000; thin=1;
post-warmup draws per chain=1000, total post-warmup draws=4000.
mean se_mean sd 2.5% 25% 50% 75% 97.5% n_eff Rhat
p 0.47 1.1e-3 0.04 0.39 0.44 0.47 0.5 0.56 1551 1.0
lp__ -85.56 0.02 0.7 -87.53 -85.72 -85.28 -85.11 -85.06 1247 1.0
Samples were drawn using NUTS at Mon Oct 8 12:20:25 2018.
For each parameter, n_eff is a crude measure of effective sample size,
and Rhat is the potential scale reduction factor on split chains (at
convergence, Rhat=1).
In [20]:
Inference for Stan model: anon_model_4822bea325d0250e03828b3bc1bb8bdd.
4 chains, each with iter=2000; warmup=1000; thin=1;
post-warmup draws per chain=1000, total post-warmup draws=4000.
mean se_mean sd 2.5% 50% 97.5% n_eff Rhat
p 0.47 1.1e-3 0.04 0.39 0.47 0.56 1551 1.0
Samples were drawn using NUTS at Mon Oct 8 12:20:25 2018.
For each parameter, n_eff is a crude measure of effective sample size,
and Rhat is the potential scale reduction factor on split chains (at
convergence, Rhat=1).
In [21]:
Posterior 95% confidence interval for p (treatment) [0.685807 0.82461639]
Posterior 95% confidence interval for p (control): [0.38511728 0.56132309]
In [26]:
[0.70743952 0.75391949 0.67022999 ... 0.7690026 0.75461525 0.70544399]
0.9525