偏
相关分析在python上的实现
数据
年份ndvi平均气温降水量相对湿度
19880.491318.345229148.556.7
19890.447217.53081599.355.4
19900.441217.84865122.454.2
19910.458618.07474888.953.5
19920.364218.72435136.052.8
19930.410417.8901103.654.9
19940.466918.140145118.357.0
19950.501018.582622121.154.4
19960.474918.49037149.551.7
19970.453918.03417567.953.2
19980.394818.110134150.254.7
19990.496718.608214118.553.3
20000.475918.054574103.551.8
20010.474617.962316127.452.5
20020.504018.438706129.453.2
20030.498318.789157118.254.4
20040.496218.601598117.555.6
20050.529918.465439131.554.6
20060.478018.68936488.353.7
20070.501418.998927162.851.8
20080.518918.75575136.450.0
20090.513018.29560697.750.9
20100.513518.671832121.651.8
20110.531219.048781100.352.7
20120.497618.974479163.653.6
20130.655118.79582293.050.5
20140.633519.526067151.547.5
20150.613219.257401141.049.9
20160.650418.67825288.852.4
20170.639719.007982153.051.6
20180.631419.358269143.651.8
需求
控制降水量、相对湿度变量,研究ndvi与平均气温变量的关系。
结果
nrCI95%p-val
pearson310.568398[0.26 0.77]0.001296
可以看到,ndvi与平均气温的偏相关系数为0.568,是一个很小的正相关。随着平均温度的增加。如果当前的降水量和相对湿度保持不变,ndvi也会增加。
python代码
评论列表(0条)