Giter Site home page Giter Site logo

aloctavodia / density_estimation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tomicapretto/density_estimation

1.0 2.0 0.0 34.83 MB

This repository contains notebooks with different probability density function estimators.

Jupyter Notebook 96.73% Python 1.95% R 1.32%

density_estimation's Introduction

Density estimators

The aim of this repository is to recopilate, introduce, implement, and compare several density estimators.

The folder notebooks contain the following set of Jupyter Notebooks:

  • 01_gaussian_kde: Introduces the concept of Kerndel Density Estimator (KDE) as well as the classic bandwidth estimator for the Gaussian KDE. A naive implementation and two fast implementations are included. Finally, a time comparison is done.

  • 02_boundary_issues: Explains why the Gaussian KDE has to be modified when the domain of the variable is bounded to an interval of the real line. Introduces the boundary reflection method as a default alternative to treat bounded variables. Compares times between the same three implementations than in 01_gaussian_kde.

  • 03_more_bandwidth_selectors: Discusses and introduce cases where the Gaussian rules of thumb to estimate the bandwidth for the Gaussian KDE fail. Presents some alternatives in chronological order of appearence and implements the most relevant ones. Finally a short graphical comparison between the methods is done. Not time comparison is performed because the differences are extreme and easily to note with usage.

  • 04_adaptive_bandwidth_kde: Starts with a motivational example showing why a constant bandwidth is not appropiate for some cases. Introduces two variable bandwidth density estimators, sample point KDE and an adaptive density estimator based on the EM algorithm. Implements both of the estimators and show how they work in a couple of cses.

  • [TODO] 05_method_comparison

  • [TODO] 06_misc

Shiny application

It would have been cumbersome to generate graphics for each possible combination of the results in the simulation. That's why a Shiny application has been created to create visualizations interactively. It lives under simulation/R/app.

It is also possible, and simple, to run the application locally with

# install.packages("shiny")
shiny::runGitHub("density_estimation", username = "tomicapretto", subdir = "simulation/R/app/")

density_estimation's People

Contributors

aloctavodia avatar tomicapretto 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.