Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plots for prior and posterior samples #21

Open
V-Rang opened this issue Apr 12, 2024 · 0 comments
Open

Plots for prior and posterior samples #21

V-Rang opened this issue Apr 12, 2024 · 0 comments

Comments

@V-Rang
Copy link
Collaborator

V-Rang commented Apr 12, 2024

Attaching plots for samples taken from prior and posterior for two examples - example/poisson_dirichlet_example.py and example/sfsi_toy_gaussian.py

commit: 6a30e9d

Poisson Dirichlet example:

The base case is
noise_variance = 1e-4
prior_param = {"gamma": 0.03, "delta": 0.3}

Scaling factor, s is varied as 2,4,6,78,10 where modifications are made as:
noise_variance = (1/s^2) *base noise_variance
gamma = s * base gamma
delta = s * base delta
3 samples are generated for each value of scaling factor.

true parameter:

Alt text

s = 2

posterior samples

Alt text Alt text Alt text

s = 4

posterior samples

Alt text Alt text Alt text

s = 6

posterior samples

Alt text Alt text Alt text

s = 8

posterior samples

Alt text Alt text Alt text

s = 10

posterior samples

Alt text Alt text Alt text

qpact example:

The base case is
noise_variance = 1e-6
prior_param = {"gamma": 0.04, "delta": 0.8}

Scaling factor, s is varied as 2,4,6,78,10 where modifications are made as:
noise_variance = (1/s^2) *base noise_variance
gamma = s * base gamma
delta = s * base delta
3 samples are generated for each value of scaling factor.

true parameter:

Alt text

s = 2

posterior samples

Alt text Alt text Alt text

s = 4

posterior samples

Alt text Alt text Alt text

s = 6

posterior samples

Alt text Alt text Alt text

s = 8

posterior samples

Alt text Alt text Alt text

s = 10

posterior samples

Alt text Alt text Alt text
@V-Rang V-Rang changed the title Plots for samples from prior and posterior Plots for prior and posterior samples Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant