Académique Documents
Professionnel Documents
Culture Documents
Generating
bootstrap
replicates
Statistical Thinking in Python II
Resampling an array
Data:
[23.3, 27.1, 24.3, 25.3, 26.0]
Mean = 25.2
Resampled data:
[ , , , , ]
Statistical Thinking in Python II
Resampling an array
Data:
[23.3, , 24.3, 25.3, 26.0]
Mean = 25.2
Resampled data:
[27.1, , , , ]
Statistical Thinking in Python II
Resampling an array
Data:
[23.3, 27.1, 24.3, 25.3, 26.0]
Mean = 25.2
Resampled data:
[27.1, , , , ]
Statistical Thinking in Python II
Resampling an array
Data:
[23.3, 27.1, 24.3, 25.3, 26.0]
Mean = 25.2
Resampled data:
[27.1, 26.0, , , ]
Statistical Thinking in Python II
Resampling an array
Data:
[23.3, 27.1, 24.3, 25.7, 26.0]
Mean = 25.2
Resampled data:
[27.1, 26.0, 23.3, 25.7, 23.3]
Mean = 25.08
Statistical Thinking in Python II
Bootstrapping
Bootstrap sample
Bootstrap replicate
In [2]: np.mean(bs_sample)
Out[2]: 299847.79999999999
In [3]: np.median(bs_sample)
Out[3]: 299845.0
In [4]: np.std(bs_sample)
Out[4]: 83.564286025729331
STATISTICAL THINKING IN PYTHON II
Lets practice!
STATISTICAL THINKING WITH PYTHON II
Bootstrap confidence
intervals
Statistical Thinking in Python II
In [3]: _ = plt.ylabel('PDF')
In [4]: plt.show()
Statistical Thinking in Python II
Lets practice!
STATISTICAL THINKING IN PYTHON II
Pairs bootstrap
Statistical Thinking in Python II
Nonparametric inference
Lets practice!