Giter Club home page Giter Club logo

statistics-assignment's Introduction

The first task included a lot of computations & equation solving, so I decided to use Mathematica language to do it. It's a functional language with focus on symbolic computation, which is useful for solving equations.

Then it somehow snowballed into implementing the second task in Mathematica too.

The repository (https://github.com/DCNick3/statistics-assignment) contains task*.nb, which are the Mathematica notebooks I used to solve the tasks. They are also rendered as PDF files so that one could look at the code without having Mathematica installed.

Task 1: Bayesian Statistics

The notebook contains all relevant info

Task 2: Simulated Annealing

I've tried doing the annealing with three temperature decay coefficients: 0.9, 0.95 and 0.99

The lengths of the resulting paths were as follows:

coefficient distance, km
0.9 40 213.4
0.95 42 154.4
0.99 25 085.6

Here's also the plot of distances over time:

over_time

The 0.95 (called middle) seemed to have some trouble settling at the beginning, probably due to bad luck, and came to worse solution.

For visualization I used built-in mathematica GIS support, so it already came with a reasonable projection and graph visualization capabilities.

Here's a visualization for temperature decay coefficient 0.99.

animation.webm

Looking at the final solution that was found with the 0.99 decay coefficient seems pretty reasonable to me.

statistics-assignment's People

Contributors

dcnick3 avatar

Watchers

 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.