Giter VIP home page Giter VIP logo

bootstrap-simulation's Introduction

bootstrap-simulation

Given a set of data, this tool will generate a mean using a bootstrap algorithm as well as graph the normal distribution of the results.

Example usage:

java -cp * com.github.pl89.Main --dataset1 "75.3,72.5,65.6,42.0,92.5,84.0,62.5,75.7,88.7,81.2,77.3,111.1" --graphTitle "Salt sampling" --graphXAxisLabel "salt ppm" --graphYAxisLabel "normal distribution"

This will output something that looks as follows:

Starting simulation for dataset 1.
Simulation for dataset 1 is complete (10000 of 10000).
Bootstrap mean for simulation 1: 77.39 (95% Confidence Interval: 68.04 - 86.46)
Standard deviation for simulation 1 means: 4.69
Simulation(s) ran in 15 ms.
Generating graph ...
Graph generated in 385 ms.
Successfully wrote file '1692546165761-mean-dataset1.txt'.

Along with a graph that looks like: graph1

This application can also be used to compare two data sets while taking errors in consideration.

Example usage:

java -cp * com.github.pl89.Main --dataset1 "75.3,72.5,65.6,42.0,92.5,84.0,62.5,75.7,88.7,81.2,77.3,111.1" --error1 "1.1,1.4,1.9,0.9,1.5,1.9,0.8,1.2,1.3,2.4,2.9,1.9" --dataset2 "45.2,32.5,25.4,52.1,62.3,54.0,41.4,42.4,65.5,77.3,44.6,111.1" --error2 "0.9,2.4,1.2,1.1,1.4,1.2,1.2,1.5,0.8,1.7,1.5,2.3" --graphTitle "Salt sampling" --graphXAxisLabel "salt ppm" --graphYAxisLabel "normal distribution"
Starting simulation for dataset 1.
Simulation for dataset 1 is complete (10000 of 10000).
Starting simulation for dataset 2.
Simulation for dataset 2 is complete (10000 of 10000).
Bootstrap mean for simulation 1: 77.31 (95% Confidence Interval: 67.97 - 86.65)
Standard deviation for simulation 1 means: 4.70
Bootstrap mean for simulation 2: 54.36 (95% Confidence Interval: 43.02 - 67.84)
Standard deviation for simulation 2 means: 6.29
Simulation(s) ran in 21 ms.
Generating graph ...
Graph generated in 386 ms.
Successfully wrote file '1692546782250-mean-dataset1.txt'.
Successfully wrote file '1692546782250-mean-dataset2.txt'.

graph2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.