From d90e33fc0b810bb6cbe02bbe355446877cbe5a45 Mon Sep 17 00:00:00 2001 From: Avi Bryant Date: Fri, 7 Feb 2020 14:48:02 -0800 Subject: [PATCH] fix vectors --- docs/vectors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/vectors.md b/docs/vectors.md index ef4a05729..5fcb926e3 100644 --- a/docs/vectors.md +++ b/docs/vectors.md @@ -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.