Skip to content

Commit

Permalink
fix vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
avibryant committed Feb 7, 2020
1 parent 8f5a615 commit d90e33f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/vectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ val eggs = List[(Int, Long)]((0,31), (2,47), (0,35), (2,40), (0,33), (2,44), (0,
As before, we'll create a `lambda` that captures the baseline egg-laying rate for the flock.

```scala mdoc:to-string
val lambda = Gamma(0.5, 100).real
val lambda = Gamma(0.5, 100).latent
```

This time, however, we'll also create a vector of 3 random variables that represent the egg-laying rate for each of the 3 different feeds. We want these to be able to scale the baseline rate up or down a small amount. There are a lot of different modeling choices we could make here, but in this case we'll start by defining random variables that represent the _log_ of those rates, normally distributed around the log of the baseline, with a small standard deviation.
Expand Down

0 comments on commit d90e33f

Please sign in to comment.