Coder Social home page Coder Social logo

maxbiostat / bayesian_power_law Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 4.6 MB

A Bayesian take on fitting power law (and alternatives) to data

License: GNU General Public License v3.0

R 0.24% Stan 0.13% Jupyter Notebook 98.97% TeX 0.65%
powerlaw bayesian-inference

bayesian_power_law's Introduction

bayesian_power_law

A Bayesian take on fitting power law (and alternatives) to data

bayesian_power_law's People

Contributors

maxbiostat avatar

Watchers

 avatar  avatar  avatar  avatar

bayesian_power_law's Issues

compare LRT with BF

Sketch:

  • a) Simulate 1000 data sets from a power law with $\alpha = 2.5$ and $x_min = 1$, 50, 000 observations.
  • b) Simulate 3 X 1000 data sets from a moment-matching log-normal with mean = 3 and cv = {0.1, 1, 10};
  • c) Simulate 1000 data sets from a moment-matching exponential with mean = 3;

Analysis

a) For each simulation, pick x_min using CSN then apply the LRT of power-law vs log-normal (LRT_0) and power-law versus exponential ( LRT_1);
b) For each simulation, pick x_min using CSN then apply LRT_0;
c) For each simulation, pick x_min using CSN then apply LRT_1;

Repeat the above analysis for Bayes factors.

Compute the error rate of each "test".

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.