{"id":17039001,"url":"https://github.com/dcnick3/statistics-assignment","last_synced_at":"2026-01-05T04:53:30.805Z","repository":{"id":161827053,"uuid":"636458262","full_name":"DCNick3/statistics-assignment","owner":"DCNick3","description":"Bayesian Statistics \u0026 Simulated Annealing assignment implemented in Wolfram Mathematica","archived":false,"fork":false,"pushed_at":"2023-05-04T22:56:37.000Z","size":4433,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-28T03:29:51.048Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Mathematica","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DCNick3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-04T22:31:40.000Z","updated_at":"2023-05-04T22:32:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"3881f4d3-da2c-4c7d-b3a4-c99fc51155da","html_url":"https://github.com/DCNick3/statistics-assignment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCNick3%2Fstatistics-assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCNick3%2Fstatistics-assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCNick3%2Fstatistics-assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCNick3%2Fstatistics-assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DCNick3","download_url":"https://codeload.github.com/DCNick3/statistics-assignment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245036121,"owners_count":20550661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T08:58:24.290Z","updated_at":"2026-01-05T04:53:30.757Z","avatar_url":"https://github.com/DCNick3.png","language":"Mathematica","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nThe first task included a lot of computations \u0026 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.\n\nThen it somehow snowballed into implementing the second task in Mathematica too.\n\nThe 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.\n\n## Task 1: Bayesian Statistics\n\nThe [notebook](task1.pdf) contains all relevant info\n\n## Task 2: Simulated Annealing\n\n\nI've tried doing the annealing with three temperature decay coefficients: `0.9`, `0.95` and `0.99`\n\nThe lengths of the resulting paths were as follows:\n\n|coefficient|distance, km|\n|---|--------------------|\n|0.9|40 213.4|\n|0.95|42 154.4|\n|0.99|25 085.6|\n\nHere's also the plot of distances over time:\n\n![over_time](https://user-images.githubusercontent.com/10363282/236345360-a672e976-ac2b-465c-a560-d13a2afabfab.png)\n\nThe `0.95` (called middle) seemed to have some trouble settling at the beginning, probably due to bad luck, and came to worse solution.\n\nFor visualization I used built-in mathematica GIS support, so it already came with a reasonable projection and graph visualization capabilities.\n\nHere's a visualization for temperature decay coefficient `0.99`.\n\n[animation.webm](https://user-images.githubusercontent.com/10363282/236343608-6e1d03f7-1c94-41c3-9493-13923e87de63.webm)\n\nLooking at the final solution that was found with the `0.99` decay coefficient seems pretty reasonable to me.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcnick3%2Fstatistics-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcnick3%2Fstatistics-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcnick3%2Fstatistics-assignment/lists"}