---
title: "Check for stationarity"
output: html_document
---
  
## Check for stationarity
  
Consider the artificial series `x1` and `x2`:
```{r}
x1 <- c(88, 109, 319, 211, 154, 241, 303, 381, 265, 327, 293, 405, 417, 366, 245, 195, 121, 103, 144, 21)
x2 <- c(26, 156, 236, 526, 509, 537, 699, 768, 982, 968, 956, 1282, 1347, 1187, 1442, 1611, 1600, 1797, 2080, 1973)
```
For each:
  
- Check whether the data behaves like a stationary time series (consider plots and acf)
- If it does, calculate its mean and variance

## Trend and seasonality for co2 data set 

Plot the real data set co2 (a data set containing monthly measurements of the co2 concentration in the atmosphere 1959 - 1997 at Mauna Loa).

- Does it look stationary?
- If not, try to remove trend and seasonality.
- Does the random term look like white noise?
```{r}
data<-co2
data<-ts(data)
```

