Code Monkey home page Code Monkey logo

ddp's Introduction

The interval overlapping simulation

In my senior year at college of 2018, I had a privilege to work with professor Ordower, head of the Math department at my college, in a private 1-credit class. He gave me a math problem, which I now don't remember the problem exactly. I could not find an answer and proof to the problem, but I came up with the idea of using the computer to estimating the answer just the night before I met him. I spent the night to reword the math problem into a "programming" question and wrote simulation in R to show him. The answer to that problem is that the probability of at least 1 line that overlaps all other lines in the 0 to 1 range is 2/3. Anyway, we both liked the program a lot and we think it was great.

This is the version of that script, which is only closed to the original code I showed him. The question itself was written up from my memory so it is not the question I received. The final draft I could still keep is in this repository (including a script that used a parallel computing technique): https://github.com/ntdung96/probability

=> The Shiny app developed for this simulation is available at: https://ntdung96.shinyapps.io/Interval/

I wrote a small presentation for this application and published to RPubs: https://rpubs.com/ntdung96/684704

The source codes of ui.R and server.R are available on the GitHub repo: https://github.com/ntdung96/DDP

ddp's People

Contributors

ntdung96 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.