官术网_书友最值得收藏!

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)
Figure 1.2

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.

主站蜘蛛池模板: 杂多县| 渝北区| 仙居县| 垦利县| 海城市| 青冈县| 龙口市| 永吉县| 新巴尔虎左旗| 墨竹工卡县| 铜梁县| 安丘市| 正镶白旗| 冀州市| 昭觉县| 中牟县| 清徐县| 什邡市| 磐安县| 舟山市| 洱源县| 朝阳市| 广水市| 崇文区| 桂平市| 门源| 含山县| 隆昌县| 鸡东县| 新河县| 雷州市| 弥渡县| 于田县| 清苑县| 平果县| 古丈县| 裕民县| 张北县| 邯郸市| 遵义市| 铜梁县|