Published
Edited
May 9, 2021
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
para_4 = md`Using these values, an example record comparison could look like:
${dict_as_md_table_row(row_no_gammas)}

The comparison vector is:

${texd`${get_comparison_vector_symbols_and_numbers(row, settings)}`}

The overall formula is:

${texd`${get_m_u_formula_symbols(row, settings)}`}

and substituting numbers we get:

${texd`\text{match probability}`} = ${tex`${get_m_u_formula_numbers(
row,
settings
)}`}


`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
css_styles = html`<style>
.katex-display>.katex { font-size: 1em}
textarea {
max-height: 1000em !important;
font-family: monospace !important;
}

.katex-display>.katex>.katex-html>.tag {right: unset; padding-left:4em}

.hl_m {
background-color: ${color_match.hex()};
display:inline-block;
}

.hl_nm {
background-color: ${color_non_match.hex()};
display:inline-block;
}

</style>`
Insert cell
import { default_settings } from "@robinl/treemap-for-bayes-intuition"
Insert cell
settings = JSON.parse(settings_raw)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {
styles,
plot_treemap,
color_match,
color_non_match
} from "@robinl/treemap-for-bayes-intuition"
Insert cell
additional_styles = styles
Insert cell
import { Textarea } from "@observablehq/inputs"
Insert cell
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more