Made docs better

Value: [1e-3 to 2e-1]
This commit is contained in:
Quinn Dougherty 2022-04-27 16:28:10 -04:00
parent ca67140361
commit 98bc2ddd58
6 changed files with 34 additions and 21 deletions

View File

@ -0,0 +1,7 @@
---
sidebar_position: 6
title: Gallery
---
- [Adjusting probabilities for the passage of time](https://www.lesswrong.com/s/rDe8QE5NvXcZYzgZ3/p/j8o6sgRerE3tqNWdj) by Nuño Sempere
- [GiveWell's GiveDirectly cost effectiveness analysis](https://observablehq.com/@hazelfire/givewells-givedirectly-cost-effectiveness-analysis) by Sam Nolan

View File

@ -1,12 +1,10 @@
--- ---
sidebar_position: 5 sidebar_position: 5
title: Three Formats of Distributions
author: Ozzie Gooen
date: 02-19-2022
--- ---
# Three Formats of Distributions
_Author: Ozzie Gooen_
_Written on: Feb 19, 2022_
Probability distributions have several subtle possible formats. Three important ones that we deal with in Squiggle are symbolic, sample set, and graph formats. Probability distributions have several subtle possible formats. Three important ones that we deal with in Squiggle are symbolic, sample set, and graph formats.
_Symbolic_ formats are just the math equations. `normal(5,3)` is the symbolic representation of a normal distribution. _Symbolic_ formats are just the math equations. `normal(5,3)` is the symbolic representation of a normal distribution.

View File

@ -1,6 +1,6 @@
--- ---
sidebar_position: 2 sidebar_position: 2
title: Squiggle Language title: Language Basics
--- ---
import { SquiggleEditor } from "../../src/components/SquiggleEditor"; import { SquiggleEditor } from "../../src/components/SquiggleEditor";
@ -29,8 +29,8 @@ Some assignments are functions
<SquiggleEditor <SquiggleEditor
initialSquiggleString={`ozzie_estimate(t) = lognormal(1, t ^ 1.01) initialSquiggleString={`ozzie_estimate(t) = lognormal(1, t ^ 1.01)
nuño_estimate(t) = mixture(0.5 to 2, normal(1, t ^ 1.25)) nuño_estimate(t) = mixture(0.5 to 2, normal(1, t ^ 1.25))
ozzie_estimate(5) * nuño_estimate(5.5) ozzie_estimate(5) * nuño_estimate(5.5)
`} `}
/> />
@ -46,6 +46,6 @@ A squiggle **record** is a key-value store with dot accessors.
<SquiggleEditor <SquiggleEditor
initialSquiggleString={`d1 = {dist: normal(0, 1), weight: 0.25} initialSquiggleString={`d1 = {dist: normal(0, 1), weight: 0.25}
d2 = {dist: 5 to 6, weight: 0.75} d2 = {dist: 5 to 6, weight: 0.75}
mx(d1.dist, d2.dist, [d1.weight, d2.weight])`} mx(d1.dist, d2.dist, [d1.weight, d2.weight])`}
/> />

View File

@ -1,13 +1,12 @@
--- ---
sidebar_position: 3 sidebar_position: 3
title: Node Packages
--- ---
# Javascript Libraries
There are two JavaScript packages currently available for Squiggle: There are two JavaScript packages currently available for Squiggle:
- [`@quri/squiggle-lang`](https://www.npmjs.com/package/@quri/squiggle-lang) - [`@quri/squiggle-lang`](https://www.npmjs.com/package/@quri/squiggle-lang) ![npm version](https://badge.fury.io/js/@quri%2Fsquiggle-lang.svg)
- [`@quri/squiggle-components`](https://www.npmjs.com/package/@quri/squiggle-components) - [`@quri/squiggle-components`](https://www.npmjs.com/package/@quri/squiggle-components) ![npm version](https://badge.fury.io/js/@quri%2Fsquiggle-components.svg)
Types are available for both packages. Types are available for both packages.
@ -24,7 +23,7 @@ call. Passing this environment will mean that all previously declared variables
in the previous environment will be made available. in the previous environment will be made available.
The return type of `run` is a bit complicated, and comes from auto generated js The return type of `run` is a bit complicated, and comes from auto generated js
code that comes from rescript. I highly recommend using typescript when using code that comes from rescript. We highly recommend using typescript when using
this library to help navigate the return type. this library to help navigate the return type.
## Squiggle Components ## Squiggle Components

View File

@ -1,6 +1,8 @@
# Processing confidence intervals ---
title: Processing Confidence Intervals
---
This page explains what we are doing when we take a 95% confidence interval, and we get a mean and a standard deviation from it This page explains what we are doing when we take a 95% confidence interval, and we get a mean and a standard deviation from it.
## For normals ## For normals
@ -30,3 +32,5 @@ We can now look at the inverse cdf of a $Normal(0,1)$. We find that the 95% poin
So then, if we take a $Normal(0,1)$ and we multiply it by $\frac{(high -. low)}{(2. *. 1.6448536269514722)}$, it's 90% confidence interval will be multiplied by the same amount. Then we just have to shift it by the mean to get our target normal. So then, if we take a $Normal(0,1)$ and we multiply it by $\frac{(high -. low)}{(2. *. 1.6448536269514722)}$, it's 90% confidence interval will be multiplied by the same amount. Then we just have to shift it by the mean to get our target normal.
## For lognormals ## For lognormals
TODO

View File

@ -1,10 +1,15 @@
--- ---
sidebar_position: 1 sidebar_position: 1
title: Introduction
--- ---
# Squiggle Squiggle is an _estimation language_, and a syntax for _calculating and expressing beliefs_ involving uncertainty. It has use cases in forecasting and writing evaluations.
Squiggle is a language for writing calculations under uncertainty. It has use ## Get started
cases in forecasting and writing better evaluations.
The best way to get started with Squiggle is to [try it out yourself](https://playground.squiggle-language.com/). - [Gallery](https://www.squiggle-language.com/docs/Discussions/Gallery)
- [Squiggle playground](https://squiggle-language.com/playground)
- [Language basics](https://www.squiggle-language.com/docs/Features/Language)
- [Squiggle functions source of truth](https://www.squiggle-language.com/docs/Features/Functions)
- [Known bugs](https://www.squiggle-language.com/docs/Discussions/Bugs)
- [Original lesswrong sequence](https://www.lesswrong.com/s/rDe8QE5NvXcZYzgZ3)