Skip to content

Commit

Permalink
updated l1
Browse files Browse the repository at this point in the history
  • Loading branch information
january3 committed Sep 17, 2024
1 parent 0875905 commit e5e055d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Lectures/lecture_01.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@



<meta name="date" content="2024-09-16" />
<meta name="date" content="2024-09-17" />

<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
Expand Down Expand Up @@ -3270,7 +3270,7 @@
<h1 data-config-title><!-- populated from slide_config.json --></h1>

<p data-config-presenter><!-- populated from slide_config.json --></p>
<p style="margin-top: 6px; margin-left: -2px;">2024-09-16</p>
<p style="margin-top: 6px; margin-left: -2px;">2024-09-17</p>
</hgroup>
</slide>

Expand Down Expand Up @@ -3544,7 +3544,7 @@ <h3>Bad:</h3>
b &lt;- c(1,10,
20, 21, 5)

r&lt;-sqrt((b-mean(b))^2/a)</pre></div>
r&lt;-sqrt(sum((b-mean(b))^2)/a)</pre></div>

<div style="float: right; width: 5%;">
</div>
Expand All @@ -3563,7 +3563,7 @@ <h3>Better:</h3>
samples_devs &lt;- samples - samples_mean

# samples variance
samples_var &lt;- samples_devs^2 / (samples_n - 1)
samples_var &lt;- sum(samples_devs^2) / (samples_n - 1)

samples_sd &lt;- sqrt(samples_var)

Expand Down
4 changes: 2 additions & 2 deletions Lectures/lecture_01.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ a <- 5
b <- c(1,10,
20, 21, 5)
r<-sqrt((b-mean(b))^2/a)
r<-sqrt(sum((b-mean(b))^2)/a)
```

Expand All @@ -315,7 +315,7 @@ samples_mean <- mean(samples)
samples_devs <- samples - samples_mean
# samples variance
samples_var <- samples_devs^2 / (samples_n - 1)
samples_var <- sum(samples_devs^2) / (samples_n - 1)
samples_sd <- sqrt(samples_var)
Expand Down

0 comments on commit e5e055d

Please sign in to comment.