question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FR tutorial on directional distributions

See original GitHub issue

@OlaRonning would you be interested in collaborating on a tutorial on directional distributions, to host on https://pyro.ai/examples? I’d be happy to write up how to use VonMises, VonMises3D, ProjectedNormal, and ProjectedNormalReparam. It seems like also a nice place to promote your new toroidal distributions as well. One thing I could use help with is finding a nice public dataset to analyze. We could even write the tutorial in stages over multiple PRs, say building on @OlaRonning’s proposed example.

Tasks

  • find one or two public datasets
  • describe VonMises distribution
  • describe VonMises3D distribution
  • describe ProjectedNormal and ProjectedNormalReparam
  • describe SineBivariateVonMises #2821
  • describe SineSkewed #2826
  • demonstrate MCMC inference
  • demonstrate SVI inference with an AutoNormal and an AutoMultivariateNormal guide

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
alexlyttlecommented, Jul 12, 2021

@OlaRonning

Regarding orbits, I think the angle tends not be important as we care more about the period and distance from the star.

I was wrong here… I think the “argument of periasteron” might be a good circular parameter example, which is involved in modelling the orbits of exoplanets. I can’t find an example of someone using Von Mises but it may well be appropriate here. I will first try recreating this tutorial from the exoplanet code (which uses public data) but in numpyro and reparameterize some of it to make use of a circular variable.

I’ll get back to you if there is progress on this, and may ask for help from exoplanet researcher friends!

1reaction
alexlyttlecommented, Jul 9, 2021

Hi @OlaRonning, I would love to help and I have been giving this some thought. At first I thought the inclination angle of stars may be a good example, but I don’t think the problem is circular and requires a different kind of reparameterization. In my own work, I have been using VonMises to model a phase parameter in a model (e.g b in y ~ sin(a*x + b)). The science behind this work a bit unusual, so it wouldn’t make a good tutorial. Regarding orbits, I think the angle tends not be important as we care more about the period and distance from the star.

That being said, I will have a deeper look into datasets, it would be cool to have an example from astronomy.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Modeling Data using Directional Distributions
A Gentle Tutorial on the EM Algorithm and its Application to Parameter. Estimation for Gaussian Mixture and Hidden Markov Models. Technical Report ICSI-....
Read more >
Directional (Circular) Statistics - webspace.ship.edu
Directional or circular distributions are those that have no true zero and any designation of high or low values is arbitrary: • Compass...
Read more >
Directional Distribution - SuperMap iDesktopX
The direction distribution can reflect the spatial characteristics of the distribution center, discrete trend and diffusion direction of the features.
Read more >
Sampling and visualising the von Mises-Fisher Distribution in ...
This is the second in a series of related blog posts/tutorials looking at directional statistics and machine learning.
Read more >
Source code for numpyro.distributions.directional
Source code for numpyro.distributions.directional. # Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found