Web landshape.org

First Time At Niche Modeling?

This is a blog on the power of numeracy. My first book — Niche Modeling — is now in print.

The first six chapters are tutorial topics in R programming and theoretical topics in niche modeling: functions, data, spatial, topology, environmental data collections, and examples. The last six chapters are about using niche modeling to detect errors: bias, autocorrelation, non-linearity, long term persistence, circularity and fraud - useful information for any biological modeler.

March 26, 2008

Programming in R — statistics

Filed under: Uncategorized, Climate Change — admin @ 9:32 pm

While R is a vector language, it is mostly known as a language for statistics. The R language statistics capability and the packages developed by users to extend it is the main reason people come to use R.

The development of elementary probability models is easy using R code. Here I build on the previous R programming post using climate statistics, and inbuilt functions to perform t statistics for regression, the generation of statistical models in R, simple linear regression and show global warming is seemingly unrelated to many parts of the atmosphere.

The graph below shows the global stratospheric (top), lower tropospheric (lower black) and southern hemisphere tropospheric (blue) temperatures measured by the microwave sounding unit (MSU) satellite from Remote Sensing Systems (RSS). The red lines on the plot illustrate the trend of the temperatures since 1995. The trend in temperatures in stratospheric and southern hemisphere temperatures have not been significantly increasing.

pinotemps.png

The significance of the trends is shown by the simple statistical test results supplied by R in the summary output, listed in the table below.

LevelTrend (C/yr)t valuePr(>|t|)Sig
Stratosphere0.0541.330.192
Troposphere0.1383.2460.001**
SH Tropo0.0601.360.176
NH Tropo0.2134.110.000006***

This simple statistical analysis indicates that much of the atmosphere has shown a great deal of stability since at least 1995, after the stratospheric disruption of Mt Pinatubo in the Philippines in 1991 died away. Recent temperature increases have largely been confined to the lower troposphere of the northern hemisphere.

A number of bloggers have drawn attention to recent falls in temperature, or at least lack of increases in global temperature.

  1. The large drop in temperatures in the last 12 months here
  2. a decline in temperatures in the last 7 years reported here,
  3. decline in the last 10 years here,
  4. and now, indications of atmospheric stability back to 1995, or 13 years.

Simple regression modeling and validation have teased out components of atmospheric stability, and shown difference between northern hemisphere tropospheric temperatures and the rest of the atmosphere that are seemingly unrelated. CO2 however is globally distributed gas influencing temperatures at all levels of the atmosphere. These results are at variance with presentations of long term trends of globally averaged temperatures.

Global warming is not ‘taking a breather‘. The recent warming is not global, but better described as northern hemisphere warming. If the pattern doesn’t fit, you should acquit (CO2 that is).

Below is the statistics R code used here:

TLT< -"ftp://ftp.ssmi.com/msu/monthly_time_series/rss_monthly_msu_amsu_channel_tlt_anomalies_land_and_ocean_v03_1.txt"
TLS<-"ftp://ftp.ssmi.com/msu/monthly_time_series/rss_monthly_msu_amsu_channel_tls_anomalies_land_and_ocean_v03_0.txt"
TLTo<-"ftp://ftp.ssmi.com/msu/monthly_time_series/rss_monthly_msu_amsu_channel_tlt_anomalies_ocean_v03_1.txt"
UAH<-"data/tltglhmam_5.2.txt"



readRSS<-function(skip=3,file=UAH,col=3) {
	f<-read.table(file,fill=TRUE,skip=skip)
	ts(f[col],start=f$V1[1],frequency=12)
	}

	
redot<-function() {
tls3<-readRSS(file=TLS)+3	
tlt3<-readRSS(file=TLT)
tlt11<-readRSS(file=TLT,col=11)
plot(tls3,ylim=c(-1,4))
lines(tlt3)
lines(tlt11,col="blue")
mod(tls3)
mod(tlt3)
mod(tlt11)
	}
	
	
mod<-function(y=tls3,off=0) {
	y<-y[192:350]
	x<-(1:159)/12
	l<-lm(y~x)
	s<-l$coefficient[2]
	lines(c(1995,2008),c(mean(y),mean(y)+s*13),col="red")
	print(summary(l))
	}	

March 25, 2008

Recent Climate Observations Compared to Predictions by Rahmstorf et.al. - a review

Filed under: Statistics, Climate Change, Rahmstorf — admin @ 9:31 pm