{"action":"created","issue":{"url":"https://api.github.com/repos/aimalz/prob-z/issues/34","labels_url":"https://api.github.com/repos/aimalz/prob-z/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/aimalz/prob-z/issues/34/comments","events_url":"https://api.github.com/repos/aimalz/prob-z/issues/34/events","html_url":"https://github.com/aimalz/prob-z/issues/34","id":118451579,"number":34,"title":"compare accuracy of two (bad) options","user":{"login":"davidwhogg","id":710750,"avatar_url":"https://avatars.githubusercontent.com/u/710750?v=3","gravatar_id":"","url":"https://api.github.com/users/davidwhogg","html_url":"https://github.com/davidwhogg","followers_url":"https://api.github.com/users/davidwhogg/followers","following_url":"https://api.github.com/users/davidwhogg/following{/other_user}","gists_url":"https://api.github.com/users/davidwhogg/gists{/gist_id}","starred_url":"https://api.github.com/users/davidwhogg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidwhogg/subscriptions","organizations_url":"https://api.github.com/users/davidwhogg/orgs","repos_url":"https://api.github.com/users/davidwhogg/repos","events_url":"https://api.github.com/users/davidwhogg/events{/privacy}","received_events_url":"https://api.github.com/users/davidwhogg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-23T19:16:26Z","updated_at":"2015-11-23T19:55:43Z","closed_at":null,"body":"Compute p(z) by taking a histogram of maximum-a-posteriori redshifts (best-fit redshifts).  Call this p1(z).\r\n\r\nCompute p(z) by adding up the posterior pdfs.  Call this p2(z)\r\n\r\nCompute the KLD between p1(z) and the truth (there are two such KLDs, compute both).\r\n\r\nCompute the KLD between p2(z) and the truth (there are two such KLDs, compute both).\r\n\r\nShow me p1(z), p2(z), and the truth vs z on one plot.\r\n\r\nLabel the curves.\r\n\r\nTell me (in a caption) what the KLDs are."},"comment":{"url":"https://api.github.com/repos/aimalz/prob-z/issues/comments/159045316","html_url":"https://github.com/aimalz/prob-z/issues/34#issuecomment-159045316","issue_url":"https://api.github.com/repos/aimalz/prob-z/issues/34","id":159045316,"user":{"login":"aimalz","id":8606810,"avatar_url":"https://avatars.githubusercontent.com/u/8606810?v=3","gravatar_id":"","url":"https://api.github.com/users/aimalz","html_url":"https://github.com/aimalz","followers_url":"https://api.github.com/users/aimalz/followers","following_url":"https://api.github.com/users/aimalz/following{/other_user}","gists_url":"https://api.github.com/users/aimalz/gists{/gist_id}","starred_url":"https://api.github.com/users/aimalz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aimalz/subscriptions","organizations_url":"https://api.github.com/users/aimalz/orgs","repos_url":"https://api.github.com/users/aimalz/repos","events_url":"https://api.github.com/users/aimalz/events{/privacy}","received_events_url":"https://api.github.com/users/aimalz/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T19:55:43Z","updated_at":"2015-11-23T19:55:43Z","body":"Ah, I misunderstood what you were asking for.  I think the top plot here is what you want:\r\n![truenz](https://cloud.githubusercontent.com/assets/8606810/11348017/fc77e338-91f1-11e5-9eae-4306654d4b65.png)\r\nThe dashed and dashed-dotted lines are the ones you asked for.  Indeed there is a bug in the KLD that's calculated after MCMC.  (I'm pretty sure I wrote it for different inputs than I gave it, will fix that immediately.)"}}