Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting the monty section #6

Merged
merged 41 commits into from
Nov 19, 2024
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
8fd6b67
Starting the monty section
MJomaba Nov 4, 2024
94d487f
More editing
MJomaba Nov 7, 2024
ba7c859
More editing
MJomaba Nov 7, 2024
995024d
Add code at beginning of pages to homogenise content and improve visu…
MJomaba Nov 8, 2024
69c1611
Correct plot labelling
MJomaba Nov 8, 2024
a7bebc3
Starting the monty section
MJomaba Nov 4, 2024
a2c25f6
More editing
MJomaba Nov 7, 2024
44f526f
More editing
MJomaba Nov 7, 2024
6685184
Add code at beginning of pages to homogenise content and improve visu…
MJomaba Nov 8, 2024
de186bd
Correct plot labelling
MJomaba Nov 8, 2024
89d33e1
Merge branch 'monty-general' of https://github.com/mrc-ide/odin-monty…
MJomaba Nov 8, 2024
8048ac1
Expand text
MJomaba Nov 12, 2024
cde7aab
Update branch with main contentMerge branch 'main' into monty-general
MJomaba Nov 12, 2024
6343ebf
Restructuring and adding content + placeholders
MJomaba Nov 12, 2024
0fff7b2
Merge main into current branchMerge branch 'main' into monty-general
MJomaba Nov 12, 2024
57ce74b
some light edits
edknock Nov 13, 2024
87a98a9
Spacing of formula
MJomaba Nov 13, 2024
8a501b1
Ironing up spacing
MJomaba Nov 13, 2024
c9a44a3
Amending text
MJomaba Nov 13, 2024
4a13741
Consistent spacing
MJomaba Nov 13, 2024
99e02d2
Intect to use allow_multiple_parameters to replace Vectorize
MJomaba Nov 14, 2024
1b09bf5
Merge branch 'main' into monty-general
MJomaba Nov 14, 2024
093f609
Update _quarto.yml
MJomaba Nov 14, 2024
737b139
Change name of files to match book style
MJomaba Nov 14, 2024
211104d
Remove mcstate to avoid confusion and WinBUGS and JAGS as example of …
MJomaba Nov 14, 2024
83a5ca7
Remove mcstate to avoid confusion and WinBUGS and JAGS as example of …
MJomaba Nov 14, 2024
c4c0b72
Removing advanced monty section as too little content for now
MJomaba Nov 14, 2024
8f5632c
Remove composability section as too little content for now, will be p…
MJomaba Nov 14, 2024
de2fcba
Changing 'l_distribution' to more explicit name 'mixture_model'
MJomaba Nov 14, 2024
f8543c6
Change variance of 1-D VCV matrix to avoid confusion between dimensio…
MJomaba Nov 14, 2024
40c0dac
Removing runners section as too little content
MJomaba Nov 14, 2024
d8b94bc
Working on the rewording and deleting a miniscule section that was ou…
MJomaba Nov 14, 2024
037dc79
Reworking of the parameter section
MJomaba Nov 14, 2024
93bba6a
Merge branch 'main' into monty-general
richfitz Nov 19, 2024
42291a8
Correct typo
MJomaba Nov 19, 2024
eb3a878
Merge branch 'monty-general' of https://github.com/mrc-ide/odin-monty…
MJomaba Nov 19, 2024
af8ce8d
Update monty.qmd
MJomaba Nov 19, 2024
d3be774
Update monty.qmd
MJomaba Nov 19, 2024
7f40429
Amend text to remove missing link
MJomaba Nov 19, 2024
c5ae337
Merge branch 'monty-general' of https://github.com/mrc-ide/odin-monty…
MJomaba Nov 19, 2024
e0e036a
Correct spelling
MJomaba Nov 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add code at beginning of pages to homogenise content and improve visu…
…al appearance of pages
  • Loading branch information
MJomaba committed Nov 8, 2024
commit 668518490c1de97043a290a36c69058827b6b23c
5 changes: 5 additions & 0 deletions advanced_monty.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Advanced monty

```{r}
#| include: false
source("common.R")
```

## Observers

## Working with other packages
5 changes: 5 additions & 0 deletions composability.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Composability {#sec-monty-combine}

```{r}
#| include: false
source("common.R")
```

```{r}
library(monty)
```
5 changes: 5 additions & 0 deletions model.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# About monty models {#sec-monty-models}

```{r}
#| include: false
source("common.R")
```

## SimCity vs Statistical models

## Normalised vs unormalised densities
5 changes: 5 additions & 0 deletions monty.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Getting started with monty

```{r}
#| include: false
source("common.R")
```

The `monty` R package is designed for modular work with statistical distributions, leveraging Monte Carlo methods for sampling. It enables the construction of increasingly complex models through four approaches:

1. Simple R code,
5 changes: 5 additions & 0 deletions montyDSL.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# The monty DSL {#sec-monty-dsl}

```{r}
#| include: false
source("common.R")
```

The `monty` DSL provides a more intuitive way to define statistical models with `monty`. It is currently relatively basic and focus on providing support for defining priors in Bayesian models. It fully support differentiability allowing to use gradient based samplers on these models.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably this is the right place for the paragraph from before

monty includes a simple probabilistic domain-specific language (DSL) that is inspired by languages of the BUGS family such as stan and Statistical Rethinking. It is designed to make some tasks a bit easier, particularly when defining priors for your model. We expect that this DSL is not sufficiently advanced to represent most interesting models but it may get more clever and flexible in the future. In particular we do not expect the DSL to be useful in writing likelihood functions for comparison to data; we expect that if your model is simple enough for this you would be better off using stan or some similarly flexible system


`monty` includes a simple probabilistic domain-specific language (DSL) that is inspired by `stan` and [Statistical Rethinking](https://xcelab.net/rm/). It is designed to make some tasks a bit easier, particularly when defining priors for your model. We expect that this DSL is not sufficiently advanced to represent most interesting models but it may get more clever and flexible in the future. In particular we do not expect the DSL to be useful in writing likelihood functions for comparison to data; we expect that if your model is simple enough for this you would be better off using `stan` or some similarly flexible system.
5 changes: 5 additions & 0 deletions runners.qmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Runners
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop this file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


```{r}
#| include: false
source("common.R")
```

One of the focus of `monty` is tailoring implementation to optimise usage of available hardware while ensuring reproducible results accross platforms.
5 changes: 5 additions & 0 deletions samplers.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Samplers and inference

```{r}
#| include: false
source("common.R")
```

This vignette will describe the samplers available in monty.

```{r}