- Bayesian Analysis with Python
- Osvaldo Martin
- 200字
- 2021-08-20 10:13:27
Independently and identically distributed variables
Many models assume that successive values of random variables are all sampled from the same distribution and those values are independent of each other. In such a case, we will say that the variables are independently and identically distributed (iid) variables for short. Using mathematical notation, we can see that two variables are independent if for every value of
and
.
A common example of non-iid variables are temporal series, where a temporal dependency in the random variable is a key feature that should be taken into account. Take, for example, the following data coming from http://cdiac.esd.ornl.gov. This data is a record of atmospheric CO2 measurements from 1959 to 1997. We are going to load the data (including the accompanying code) and plot it:
data = np.genfromtxt('../data/mauna_loa_CO2.csv', delimiter=',')
plt.plot(data[:,0], data[:,1])
plt.xlabel('year')
plt.ylabel('$CO_2$ (ppmv)')
plt.savefig('B11197_01_02.png', dpi=300)

Each data point corresponds to the measured levels of atmospheric CO2 per month. The temporal dependency of data points is easy to see in this plot. In fact, we have two trends here: a seasonal one (this is related to cycles of vegetation growth and decay), and a global one, indicating an increasing concentration of atmospheric CO2.
- 大數(shù)據(jù)技術(shù)與應(yīng)用基礎(chǔ)
- 空間機(jī)器人遙操作系統(tǒng)及控制
- Cloud Analytics with Microsoft Azure
- 微型計(jì)算機(jī)控制技術(shù)
- Matplotlib 3.0 Cookbook
- Hands-On Cybersecurity with Blockchain
- B2B2C網(wǎng)上商城開發(fā)指南
- STM32嵌入式微控制器快速上手
- 四向穿梭式自動(dòng)化密集倉儲(chǔ)系統(tǒng)的設(shè)計(jì)與控制
- 信息物理系統(tǒng)(CPS)測(cè)試與評(píng)價(jià)技術(shù)
- 嵌入式操作系統(tǒng)
- 聊天機(jī)器人:入門、進(jìn)階與實(shí)戰(zhàn)
- 大數(shù)據(jù)素質(zhì)讀本
- ADuC系列ARM器件應(yīng)用技術(shù)
- EDA技術(shù)及其創(chuàng)新實(shí)踐(Verilog HDL版)