---
title: "HW 0"
author: "Garland Durham"
output: html_document
---

This is a very quick introduction to R Markdown.  For more details, see <http://rmarkdown.rstudio.com/index.html>. 

Click "run chunk" to run a single *chunk* of code.  Click "Knit" to create an html (or other format) document.  By default, R studio with R Markdown installed shows results in *notebook* style.  To turn this off, click the gear icon in the document toolbar and select "Chunk output in console."


When turning in assignments, each problem should be identified using a level 1 header (Level 1 headers can be made by preceding text with #). Please submit HW in html format using polylearn.  



# 0.1

Here is my solution to problem 0.1



## 0.1 (a)

If a problem has sub parts, please identify like this.


## 0.1 (b)

Solution to part (b).


# 0.2

Here is some text followed by some R code.

```{r}
x=ts(rnorm(100))
y=filter(x,rep(1/5,5))
summary(x)
```

The following options can be used to modifu the display of code and results:

* include = FALSE prevents code and results from appearing in the finished file. R Markdown still runs the code in the chunk, and the results can be used by other chunks.

* echo = FALSE prevents code, but not the results from appearing in the finished file. This is a useful way to embed figures.

* message = FALSE prevents messages that are generated by code from appearing in the finished file.

* warning = FALSE prevents warnings that are generated by code from appearing in the finished.

* fig.cap = "..." adds a caption to graphical results.

See the R Markdown Reference Guide for a complete list of knitr chunk options.

### Example of include=false:

```{r include=FALSE}
x=rnorm(100)
summary(x)
```

### Example of echo=false:
```{r echo=FALSE}
y=rnorm(100)
summary(y)
```

### Inline code

You can include inline code like this: `r summary(y)`..



# 0.2

Here is how to make sub-bullets:

* Bullet
* Bullet
    * 4 spaces or a tab for a sub item
    * Another sub item
        * Sub sub item.  Here is a 
          continuation line.
* Back to the top level.

End of bullet list



# 0.3

Here is how to make an enumeration list:

1. one
2. two
5. five (notice that the number itself is ignored...)
1. Just start every item with number 1 for simpolicity...
    a. Here is a sub-item on
       two lines
    a. And another one


# 0.4

Here is a definition list (note that 2 spaces or a tab are required before the description text)

Item 1
  : description of item 1

Item 2
  : description of item 2.




# 0.5

This is such a complicated problem... Hopefully this figure will really clear things up.
```{r}
ts.plot(cbind(x,y), main="Sample plot", col=c(1:2))
```


# 0.6 

Markdown provides a simple way of formatting text.  Here is *emphasized text* or like _this_.  Or **bold** or like __this__.

Math can be formatted using tex, like this $x=y$.for inline math.  Here are a few examples
of displayed equations
$$
x = \int y\, dy
$$

$$
\alpha = \beta \times \gamma + \frac{z^2 - 3y}{3\sqrt{zy}}
$$

$$
z = \sum_{i=1}^\infty x_i
$$

Look up a tex reference like <https://en.wikibooks.org/wiki/LaTeX> for more details.






















