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

Add score() function #461

Open
syclik opened this issue Nov 30, 2016 · 5 comments
Open

Add score() function #461

syclik opened this issue Nov 30, 2016 · 5 comments
Assignees
Milestone

Comments

@syclik
Copy link
Member

syclik commented Nov 30, 2016

Summary:

This is from @bgoodri on stan-dev/stan#605.

Add a score() function to the language. It would require nested autodiff.

Description:

Add the score function.

See: https://en.wikipedia.org/wiki/Score_(statistics)

Additional Information:

I'm not sure exactly how this would work. @bgoodri, might need some help.

Current Version:

v2.13.0

@syclik syclik added this to the Future milestone Nov 30, 2016
@bgoodri
Copy link
Contributor

bgoodri commented Nov 30, 2016

A score() function would be good --- to calculate the derivative of the log-likelihood, usually on a per observation basis --- but it would also be good to have a gradient() function to calculate the derivative of an expression to feed into the log-likelihood. But I'm not sure how high a priority this would be relative to other things because in 2.13.0 you can get to the gradient(), jacobian(), etc. functions in Stan Math by writing your own C++.

@bob-carpenter
Copy link
Contributor

bob-carpenter commented Nov 30, 2016 via email

@bob-carpenter
Copy link
Contributor

Also, I don't know how we could return the value of the derivative of the log density until it's been completely defined. Then we can't use it for anything in the density, or the density will change. Where do you need this function and for what?

@jvaara
Copy link

jvaara commented Jan 27, 2017

I have been waiting for this function request and hoping to get to use it for Design of Experiment via Information matrix.

@bob-carpenter
Copy link
Contributor

bob-carpenter commented Jan 27, 2017 via email

@syclik syclik removed their assignment Apr 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants