Ozzie Gooen
cecbe4fcc3
Removed a bunch of now-unused files
2020-07-13 00:05:21 +01:00
Ozzie Gooen
2da6f00211
Attached inputs to editor
2020-07-12 23:54:52 +01:00
Sebastian Kosch
d119db88a1
Allow algebraic multiplication
2020-07-12 15:53:53 -07:00
Ozzie Gooen
e5f38af43e
First attempt at sampling
2020-07-11 16:41:35 +01:00
Ozzie Gooen
84b6d7176c
Tried to fix changes from skosch
2020-07-09 11:46:28 +01:00
Ozzie Gooen
6cb825d228
Merge branch 'epic-expression-tree' into seb/epic-fixes
2020-07-09 11:29:22 +01:00
Sebastian Kosch
35048fec0d
Experimental: continuous/discrete multiplication
2020-07-08 19:18:20 -07:00
Ozzie Gooen
892f0a0b25
Removed continuousShape from SymbolicDist
2020-07-08 17:30:36 +01:00
Ozzie Gooen
366523ce80
Pulled out Continuous to its own file
2020-07-08 17:00:13 +01:00
Ozzie Gooen
99d89a9f78
Pulled out Distplus and DistPlusTime to separate files
2020-07-08 16:52:41 +01:00
Ozzie Gooen
0e7f290ff2
Minor formatting
2020-07-08 14:08:34 +01:00
Ozzie Gooen
248545ee34
Added evaluateAndRetry function
2020-07-08 13:52:47 +01:00
Ozzie Gooen
9d0ecda297
Moved data to evaluationParams
2020-07-08 11:39:03 +01:00
Ozzie Gooen
da52444e8e
Minor document formatting
2020-07-08 10:37:39 +01:00
Sebastian Kosch
2ddf0c02cb
Add linear-time continuous XYShape combine function
2020-07-07 15:24:30 -07:00
Sebastian Kosch
8d09cf9beb
Fix rendering of uniforms; add normalization constant in convolution code
2020-07-06 23:43:25 -07:00
Sebastian Kosch
89e07dad86
Fix truncation
2020-07-06 21:08:56 -07:00
Ozzie Gooen
4cf7a69d3e
Formatted ExpressionTreeEvaluator.re
2020-07-06 19:50:22 +01:00
Ozzie Gooen
56a9bda82a
Reapplied truncation changes that previously fixed things
2020-07-06 19:49:59 +01:00
Sebastian Kosch
0d5a0f5aeb
ShapeConvolution -> AlgebraicShapeCombination
2020-07-03 17:15:37 -07:00
Sebastian Kosch
730dbddaf9
Fix multiplication of variances in ShapeConvolution
2020-07-03 17:13:26 -07:00
Sebastian Kosch
ca9f725ae7
Remove Leaf and Operation wrapper types
2020-07-03 14:55:27 -07:00
Ozzie Gooen
a649a6bca2
Added ExpressionTreeExamples in showcase
2020-07-02 23:52:58 +01:00
Ozzie Gooen
a681135f3d
AlgebraicCombinations -> ShapeConvolution
2020-07-02 19:01:20 +01:00
Ozzie Gooen
9f30b6d75c
Added back MathjsWrapper, which I accidentally lost
2020-07-02 18:29:04 +01:00
Ozzie Gooen
41eca03618
Set up new expressionTree directory
2020-07-02 18:12:03 +01:00
Ozzie Gooen
19e9eaee83
Minor renaming
2020-07-02 14:33:41 +01:00
Ozzie Gooen
96df9ced85
Moved rendering code from TreeNode to SymbolicDist
2020-07-02 14:30:01 +01:00
Ozzie Gooen
99c0803953
Moved truncateString work to separate section
2020-07-02 13:24:49 +01:00
Ozzie Gooen
4663700f67
Moved out distToFloatOps to better places
2020-07-02 12:25:04 +01:00
Ozzie Gooen
101824e500
Minor renames, and moved attemptAlgebraicOperation to SymbolicDist
2020-07-02 12:14:16 +01:00
Ozzie Gooen
491ac15f7b
Separated Operation toString
2020-07-02 10:40:21 +01:00
Ozzie Gooen
43ba49dd12
Minor MathJsParser cleanup
2020-07-01 23:47:49 +01:00
Ozzie Gooen
05097bf28a
Simplifications for MathJsParser
2020-07-01 23:05:35 +01:00
Ozzie Gooen
baaff19750
Moving operations functionality into new SymbolicTypes.re file
2020-07-01 22:01:58 +01:00
Ozzie Gooen
acdd3dfe7a
Minor formatting and name changes
2020-07-01 20:26:39 +01:00
Sebastian Kosch
502481e345
First working prototype of algebraic combinations
2020-06-29 22:29:15 -07:00
Sebastian Kosch
f1e2458bca
WIP: continuous/continuous convolution
2020-06-27 23:50:53 -07:00
Sebastian Kosch
f5ce4354ab
Move to point-mass-based convolution for the continuous-continuous case
2020-06-26 23:48:54 -07:00
Sebastian Kosch
b368c2a8ee
Testing convolutions
2020-06-26 23:16:37 -07:00
Sebastian Kosch
d2e7e5f928
Fixed some indexing errors in convolution code
2020-06-26 22:37:24 -07:00
Sebastian Kosch
dc1ec1bb86
It compiles!
2020-06-26 21:29:21 -07:00
Sebastian Kosch
bd528571af
Working on code reorganization, doesn't compile yet
2020-06-25 23:38:14 -07:00
Sebastian Kosch
214f3b9e58
Renaming, removed some Js.logs
2020-06-13 18:54:54 -07:00
Sebastian Kosch
8827650da3
Slightly cleaned up tree evaluation
2020-06-13 18:46:38 -07:00
Sebastian Kosch
9b10452156
Fix division by zero
2020-06-12 23:53:01 -07:00
Sebastian Kosch
f6c1918b12
Big refactor towards proper distTree, still slow and untested
2020-06-12 23:30:51 -07:00
Sebastian Kosch
bc271a090b
Make yMin=0 for discrete point y-axis on d3 chart
2020-06-09 21:58:48 -07:00
Sebastian Kosch
fa1bf75acc
Comment out some stuff, fix annoying react key prop error
2020-06-09 21:43:35 -07:00
Sebastian Kosch
eb0ffdc6c3
First pass at nested multimodals, still needs lots of cleanup
2020-06-09 21:28:44 -07:00
Sebastian Kosch
6306fa9ca2
Clean up interpolateXs function
2020-06-03 09:24:55 -07:00
Sebastian Kosch
68efbf0396
Fix normal distribution from 90CI (stdev was double what it should be)
2020-06-02 15:24:09 -07:00
Sebastian Kosch
f3f1861ba6
Realistic x selection for uniform distribution rendering
2020-06-02 15:08:41 -07:00
433780186b
Fixed formatting from the previous commit. The previous commit fixed a bug where the distribution would be sent to foretold inverted
2020-05-26 16:40:02 +02:00
96645334be
Fixed a bug where the distribution would be shown inverted
2020-05-26 16:35:57 +02:00
23952af460
+ Added the ability to change the upper and lower boundaries.
...
+ Made the drawings relative to the canvas, not to the screen.
- Removed the mean line, as it didn't play nice with the ability to change upper and lower boundaries.
2020-05-06 00:15:51 +02:00
ff5b26d865
Adds a distribution drawer to widedomain.
...
Things to note:
- The code has comments. I feel protective of these comments, and feel that they help structure the code and will help me out when I come I come back to this code a couple of weeks or months from now.
- Originally based on code by Evan Ward (probability.dev). See also: observablehq.com/@nunosempere/distribution-drawer
To do, in order of importance:
- Add the ability to change the upper and lower boundaries.
- Make the drawings relative to the canvas, not to the screen.
- Add other features from probability.dev
Cool things yet to be done:
- Make it so that one can input a guesstimate function, and then draw on it. To do this, use the Convert.xyShapeToCanvasShape and modify the Draw.initial distribution function slightly.
- Maybe reach out to Metaculus to see if they want to use this somewhere?
2020-05-05 12:52:50 +02:00
Ozzie Gooen
0d4c71190d
Upgraded bucklescript
2020-04-30 13:30:52 +01:00
Ozzie Gooen
2ab2faf5e9
Only allow for finite samples from sampling library
2020-04-30 11:34:59 +01:00
Ozzie Gooen
5129ff20d5
Added normal from90PercentCI for distributions that are at 0 or below
2020-04-30 11:18:33 +01:00
Ozzie Gooen
77c9ce09be
Added standard deviation
2020-04-20 17:31:42 +01:00
Ozzie Gooen
63be03e1ab
Minor tweaks
2020-04-20 17:29:37 +01:00
Ozzie Gooen
ad42a1d404
Merge pull request #31 from NunoSempere/opinionatedQualityOfLife
...
Makes four opinionated changes which improve my user experience:
2020-04-20 17:18:00 +01:00
96fcaa32b2
Makes four opinionated changes which improve my user experience:
...
- Makes the distributions bigger, much bigger, so that I can better see them.
- To do that, and to be able to see the input string at the same time I destroys the cdf.
- My brain wasn't really made for interpreting cdfs, and I can switch to the cdf view if I want.
- Changes the distribution color to a bright, happy and shiny blue, so that I can better see them.
- Adds a standard distribution with more personality.
2020-04-19 22:32:24 +02:00
Ozzie Gooen
f247f65478
Minor cleanup of mean and variance
2020-04-19 21:04:50 +01:00
Ozzie Gooen
0fd5e2dcdb
Merge pull request #30 from NunoSempere/meanAndVariance
...
Mean and variance
2020-04-19 18:33:13 +01:00
Ozzie Gooen
747e3a6706
Fixed bug that would not truncate correctly
2020-04-19 17:44:53 +01:00
a89960a1e7
Formatting
2020-04-18 23:27:24 +02:00
2f45f92552
Added mean and variance functions, and tests for those.
...
- A getMean and getVariance in each module of src/distPlus/distribution/Distributions.re
- They get the exact answer for the functions in Distributions.re, according to the approximation used.
- There is now an XYShape.Analysis.integrateContinuousShape function.
- Tests in the __tests__/Distributions__Test.re function.
- Calculation of the mean and variance for the normal and lognnormal distributions, at the end.
- I also added some reduce array functions to the E.A. module.
2020-04-18 23:20:59 +02:00
Ozzie Gooen
b14f1244c2
Minor fix, though this could hurt later
2020-04-18 18:54:30 +01:00
Ozzie Gooen
2e5f285a9e
Allows for simple arrays representing samples
2020-04-11 14:22:13 +01:00
Roman Galochkin
d5e8cd307f
Adds a Home page with models table
2020-04-10 12:03:17 +03:00
Ozzie Gooen
58c6c165f3
Minor fixes
2020-04-05 12:14:07 +01:00
Ozzie Gooen
82595ae167
Cleanup to return more from DistPlusRenderer
2020-04-05 12:00:25 +01:00
Ozzie Gooen
990f01b8d6
Reorganization of files
2020-04-05 07:36:14 +01:00
Ozzie Gooen
e84cfd4c92
Adding render options and params
2020-04-04 21:37:58 +01:00
Ozzie Gooen
db78bc07f3
Fixes of multimodals
2020-04-03 21:53:23 +01:00
Ozzie Gooen
7ab81249bf
Kde with auto kernel width
2020-04-03 20:41:37 +01:00
Ozzie Gooen
145452d50f
Auto-kernel-width
2020-04-03 14:32:14 +01:00
Roman Galochkin
1fe9524937
Moves code into Science module
2020-04-03 14:06:05 +03:00
Ozzie Gooen
88358470e3
Fixed issue with mixed distributions
2020-04-03 00:20:58 +01:00
Ozzie Gooen
0ef6d106ea
Fixed issues with primary models
2020-04-01 19:49:59 +01:00
Ozzie Gooen
e80bd4108e
Allow floats on top-level
2020-04-01 18:47:59 +01:00
Ozzie Gooen
bc39ce9c67
Very simple functionality with multimodals
2020-04-01 14:52:13 +01:00
Ozzie Gooen
34a2f28ff8
Minor changes
2020-03-31 22:12:11 +01:00
Ozzie Gooen
53675232e7
Minor touch-ups
2020-03-28 22:51:53 +00:00
Ozzie Gooen
54eab1f204
Change order of continuous distribution make command
2020-03-28 21:46:17 +00:00
Ozzie Gooen
786ee1fded
Minor changes of optionals in distributions
2020-03-28 21:29:02 +00:00
Ozzie Gooen
29d8e40693
More XYShape cleanup
2020-03-28 14:17:47 +00:00
Ozzie Gooen
91734fdd32
Attempt to change name of jstat for netlify building
2020-03-26 23:31:17 +00:00
Ozzie Gooen
6f8d06a6d6
First refactor to XYShape
2020-03-26 23:18:19 +00:00
Ozzie Gooen
e17e2aca2e
Added additional distributions
2020-03-26 16:01:52 +00:00
Ozzie Gooen
f7e3643a1e
Minor fixes
2020-03-25 15:12:39 +00:00
Ozzie Gooen
dceea9c6b5
Minor refactor
2020-03-24 17:48:46 +00:00
Ozzie Gooen
64eef2b169
Added DistBuilder3
2020-03-24 00:04:48 +00:00
Ozzie Gooen
f662ccd6c6
First full-through with symbolic parsing
2020-03-23 21:31:06 +00:00
Ozzie Gooen
0e0f0221e9
Dist-builder-2-adjustments
2020-03-21 10:49:26 +00:00
Ozzie Gooen
8d1ab10e06
Minor cleanup
2020-03-20 12:08:26 +00:00
Ozzie Gooen
831d1345c5
Minor enhancements
2020-03-20 11:07:27 +00:00
Ozzie Gooen
01da434fc3
Sped up integrateWithTriangles a lot
2020-03-18 22:52:40 +00:00