Giter Site home page Giter Site logo

sverdoot / pointwise-derivative-estimation Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.56 MB

Final project for the course Advanced Statistical Methods in Skoltech

Python 89.10% Jupyter Notebook 4.98% Shell 5.92%
kernel-smoothing local-polynomial-regression

pointwise-derivative-estimation's Introduction

Pointwise derivative estimation

Getting started

conda create --name local_smooth  python==3.9

if poetry is not installed:

curl -sSL https://install.python-poetry.org | python3 -
poetry config virtualenvs.create false --local

install the project:

conda activate local_smooth
poetry install
chmod +x run.sh

Usage

python local_smooth/main.py --config configs/loc_lin_gauss_ker.yml

run all experiments:

./run.sh

Overview

$Y_i = f(X_i) + \varepsilon_i, ~\varepsilon_i \sim \mathcal{N}(0, \sigma^2)$

Unbiased risk estimate is computed as:

$\hat{\mathcal{R}}(\hat{f}) = |\mathcal{K}_{h} \mathbf{Y} - \mathbf{Y}|^2 + 2\sigma^2\text{tr}(\mathcal{K}_h)$

True risk is computed as:

$\mathcal{R}(\hat{f}) = \mathbb{E}((f^)'(x_0) - \hat{f}'(x_0))^2 = ((f^)'(x_0) - \mathcal{S}_1^{\top}\mathbf{f})^2 + \sigma^2 |\mathcal{S}_1|^2$,

where $\mathcal{S} = {\Psi(x_0)W(x_0)\Psi(x_0)^{\top}}^{-1}\Psi(x_0)W(x_0)$

Results

  • Generated data:

data

  • Risk (Locally linear estimate, Gaussian kernel):

data

pointwise-derivative-estimation's People

Contributors

sverdoot 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.