Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
fhoces committed May 26, 2023
1 parent 87e6107 commit 4c6893f
Show file tree
Hide file tree
Showing 5 changed files with 449 additions and 2 deletions.
4 changes: 2 additions & 2 deletions first_dd.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ output:
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
set.seed(1234)
n.pers = 16
n.pers = 30
n.sims = 10000
```

Expand Down Expand Up @@ -64,7 +64,7 @@ birthday.prob = function(n.pers_var, n.sims_var) {
result = 1 - mean(all.different)
return(result)
}
bp_sim = birthday.prob(n.pers_var = 21, n.sims_var = 10000)
bp_sim = birthday.prob(n.pers_var = n.pers, n.sims_var = 10000)
print(bp_sim)
```

Expand Down
Binary file modified first_dd.pdf
Binary file not shown.
27 changes: 27 additions & 0 deletions first_dd_1.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: "The Birthday Problem"
author: "Fernando Hoces de la Guardia"
date: "2023-05-11"
output:
pdf_document: default
html_document: default
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

# Describing the Birthday Problem
sdasda asfdas.

# The math behind the problem.

sdfgsdf sdgfsdfg
sdfsd.
sdf.

# A simulation that demonstrates the problem

sdfs. sdfsdf

sdfsdf
420 changes: 420 additions & 0 deletions first_dd_1.html

Large diffs are not rendered by default.

Binary file added first_dd_1.pdf
Binary file not shown.

0 comments on commit 4c6893f

Please sign in to comment.