Skip to content

Commit

Permalink
sdf
Browse files Browse the repository at this point in the history
  • Loading branch information
velait committed Jun 28, 2024
1 parent 921e960 commit 9ff44e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions episodes/exercises.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Plot the posterior distribution and color the points according to the condition

The AR(1) process is defined by the recursion:
$$x_i \sim N(\phi \cdot x_{i-1}, \sigma^2),$$
where $i$ is a time index. In other words, given some initial value $x_1$, the next value $x_2$ is generated from a normal distribution with mean $\phi\cdot x_1$ and variance $sigma^2$. This pattern continues for the successive values.
where $i$ is a time index. In other words, given some initial value $x_1$, the next value $x_2$ is generated from a normal distribution with mean $\phi\cdot x_1$ and variance $\sigma^2$. This pattern continues for the successive values.

Write a Stan program that estimates the parameters $\phi$ and $\sigma$ of the AR(1) process.

Expand Down Expand Up @@ -359,7 +359,7 @@ $$

Use data
```{r}
y <- c(2,7,4,3,5,2,7,5,5,5).
y <- c(2,7,4,3,5,2,7,5,5,5)
```

Implement the model in Stan.
Expand Down
12 changes: 3 additions & 9 deletions episodes/other-topics.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ posterior_color <- "#56B4E9"

:::::::::::::::::::::::::::::::::::::: questions

- What next?
- Motivating questions

::::::::::::::::::::::::::::::::::::::::::::::::

::::::::::::::::::::::::::::::::::::: objectives


- Learn more
- Learn to use Stan with additional R packages


::::::::::::::::::::::::::::::::::::::::::::::::

Add text
Add text here


::::::::::::::::::::::::::::::::::::::::: challenge
Expand All @@ -56,12 +56,6 @@ More text



::::::::::::::::::::::::::::::::::::: discussion

Discussion poitns

:::::::::::::::::::::::::::::::::::::::::::::::



::::::::::::::::::::::::::::::::::::: keypoints
Expand Down

0 comments on commit 9ff44e5

Please sign in to comment.