diff --git a/05-cpp/lab.html b/05-cpp/lab.html index 53b8e77..c6efe8d 100644 --- a/05-cpp/lab.html +++ b/05-cpp/lab.html @@ -3272,7 +3272,7 @@

Learning goals

Lab description

For this lab, we will implement a class representing a binomial distribution:

\[ -\Pr{\left(Y=k; n, p\right)} = {y \choose n}p^k(1-p)^{n-k} +\Pr{\left(Y=k; n, p\right)} = {n \choose k}p^k(1-p)^{n-k} \]

Implement the following class representing a binomial distribution:

#include <iostream> // Needed for cout / printf
diff --git a/05-cpp/lab.qmd b/05-cpp/lab.qmd
index 3a28292..4974537 100644
--- a/05-cpp/lab.qmd
+++ b/05-cpp/lab.qmd
@@ -19,7 +19,7 @@ format:
 For this lab, we will implement a class representing a binomial distribution:
 
 $$
-\Pr{\left(Y=k; n, p\right)} = {y \choose  n}p^k(1-p)^{n-k}
+\Pr{\left(Y=k; n, p\right)} = {n \choose  k}p^k(1-p)^{n-k}
 $$
 
 Implement the following class representing a binomial distribution:
diff --git a/05-rcpp/slides.html b/05-rcpp/slides.html
index 5b082bd..665fc32 100644
--- a/05-rcpp/slides.html
+++ b/05-rcpp/slides.html
@@ -441,9 +441,10 @@
 
 
-  
+  
 
   
+  
   Intro to Rcpp
   
   
@@ -553,7 +554,7 @@
 code span.vs { color: #20794d; } 
 code span.wa { color: #5e5e5e; font-style: italic; } 
 
-  
+  
   
   
+