■ Contents
xv
■Chapter 16: Bayesian Statistics������������������������������������������������������������������������� 383
Importing Modules ������������������������������������������������������������������������������������������������������� 384
Introduction to Bayesian Statistics ������������������������������������������������������������������������������� 384
Model Definition ����������������������������������������������������������������������������������������������������������� 386
Sampling Posterior Distributions �������������������������������������������������������������������������������������������������������� 390
Linear Regression ������������������������������������������������������������������������������������������������������������������������������� 393
Summary ���������������������������������������������������������������������������������������������������������������������� 404
Further Reading ������������������������������������������������������������������������������������������������������������ 404
References ������������������������������������������������������������������������������������������������������������������� 404
■Chapter 17: Signal Processing �������������������������������������������������������������������������� 405
Importing Modules ������������������������������������������������������������������������������������������������������� 405
Spectral Analysis ���������������������������������������������������������������������������������������������������������� 406
Fourier Transforms ����������������������������������������������������������������������������������������������������������������������������� 406
Windowing ������������������������������������������������������������������������������������������������������������������������������������������411
Spectogram ���������������������������������������������������������������������������������������������������������������������������������������� 414
Signal Filters ���������������������������������������������������������������������������������������������������������������� 417
Convolution Filters ������������������������������������������������������������������������������������������������������������������������������ 418
FIR and IIR Filters ������������������������������������������������������������������������������������������������������������������������������� 419
Summary ���������������������������������������������������������������������������������������������������������������������� 424
Further Reading ������������������������������������������������������������������������������������������������������������ 424
References ������������������������������������������������������������������������������������������������������������������� 424
■Chapter 18: Data Input and Output �������������������������������������������������������������������� 425
Importing Modules ������������������������������������������������������������������������������������������������������� 426
Comma-Separated Values �������������������������������������������������������������������������������������������� 426
HDF5 ����������������������������������������������������������������������������������������������������������������������������� 430
h5py ����������������������������������������������������������������������������������������������������������������������������������������������������431
PyTables ��������������������������������������������������������������������������������������������������������������������������������������������� 440
Pandas HDFStore ��������������������������������������������������������������������������������������������������������������������������������444