{"action":"created","issue":{"url":"https://api.github.com/repos/mathics/Mathics/issues/427","repository_url":"https://api.github.com/repos/mathics/Mathics","labels_url":"https://api.github.com/repos/mathics/Mathics/issues/427/labels{/name}","comments_url":"https://api.github.com/repos/mathics/Mathics/issues/427/comments","events_url":"https://api.github.com/repos/mathics/Mathics/issues/427/events","html_url":"https://github.com/mathics/Mathics/pull/427","id":163292084,"number":427,"title":"Statistics","user":{"login":"Piruzzolo","id":11365978,"avatar_url":"https://avatars.githubusercontent.com/u/11365978?v=3","gravatar_id":"","url":"https://api.github.com/users/Piruzzolo","html_url":"https://github.com/Piruzzolo","followers_url":"https://api.github.com/users/Piruzzolo/followers","following_url":"https://api.github.com/users/Piruzzolo/following{/other_user}","gists_url":"https://api.github.com/users/Piruzzolo/gists{/gist_id}","starred_url":"https://api.github.com/users/Piruzzolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Piruzzolo/subscriptions","organizations_url":"https://api.github.com/users/Piruzzolo/orgs","repos_url":"https://api.github.com/users/Piruzzolo/repos","events_url":"https://api.github.com/users/Piruzzolo/events{/privacy}","received_events_url":"https://api.github.com/users/Piruzzolo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mathics/Mathics/labels/enhancement","name":"enhancement","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/mathics/Mathics/milestones/5","html_url":"https://github.com/mathics/Mathics/milestones/1.0","labels_url":"https://api.github.com/repos/mathics/Mathics/milestones/5/labels","id":1614979,"number":5,"title":"1.0","description":"","creator":{"login":"sn6uv","id":1217643,"avatar_url":"https://avatars.githubusercontent.com/u/1217643?v=3","gravatar_id":"","url":"https://api.github.com/users/sn6uv","html_url":"https://github.com/sn6uv","followers_url":"https://api.github.com/users/sn6uv/followers","following_url":"https://api.github.com/users/sn6uv/following{/other_user}","gists_url":"https://api.github.com/users/sn6uv/gists{/gist_id}","starred_url":"https://api.github.com/users/sn6uv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sn6uv/subscriptions","organizations_url":"https://api.github.com/users/sn6uv/orgs","repos_url":"https://api.github.com/users/sn6uv/repos","events_url":"https://api.github.com/users/sn6uv/events{/privacy}","received_events_url":"https://api.github.com/users/sn6uv/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":5,"state":"open","created_at":"2016-03-01T12:54:32Z","updated_at":"2016-07-03T11:08:55Z","due_on":"2016-08-14T22:00:00Z","closed_at":null},"comments":3,"created_at":"2016-06-30T23:57:49Z","updated_at":"2016-07-04T17:28:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mathics/Mathics/pulls/427","html_url":"https://github.com/mathics/Mathics/pull/427","diff_url":"https://github.com/mathics/Mathics/pull/427.diff","patch_url":"https://github.com/mathics/Mathics/pull/427.patch"},"body":"There is a Distribution class with the standard interface (CDF, PDF, probability, expectation...) and distributions are implemented as subclasses. Each distribution has various attributes, among which the assumptions on the parameters and the prototype. The huge lists in the file will serve as a source to copy from. Each Distribution must have its proper number of parameters, otherwise will throw the argr message. When applying some stats function to them (e.g. CDF[]), the correctness of the parameters must be checked. To do this, I think we could take the string \"arg_assumptions\" (which is a logical combination of the parameters in Mathematica format), replace the occurrences of the slot symbols with actual symbols passed in the instance, and then evaluate the resulting string and check if it equals \"System'True\". This idea of replancing stuff in that string might also be useful when implementing DistributionParameterAssumptions."},"comment":{"url":"https://api.github.com/repos/mathics/Mathics/issues/comments/230331437","html_url":"https://github.com/mathics/Mathics/pull/427#issuecomment-230331437","issue_url":"https://api.github.com/repos/mathics/Mathics/issues/427","id":230331437,"user":{"login":"sn6uv","id":1217643,"avatar_url":"https://avatars.githubusercontent.com/u/1217643?v=3","gravatar_id":"","url":"https://api.github.com/users/sn6uv","html_url":"https://github.com/sn6uv","followers_url":"https://api.github.com/users/sn6uv/followers","following_url":"https://api.github.com/users/sn6uv/following{/other_user}","gists_url":"https://api.github.com/users/sn6uv/gists{/gist_id}","starred_url":"https://api.github.com/users/sn6uv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sn6uv/subscriptions","organizations_url":"https://api.github.com/users/sn6uv/orgs","repos_url":"https://api.github.com/users/sn6uv/repos","events_url":"https://api.github.com/users/sn6uv/events{/privacy}","received_events_url":"https://api.github.com/users/sn6uv/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T17:28:12Z","updated_at":"2016-07-04T17:28:12Z","body":"Yes, using a big dictionary would be simpler but harder to write tests and documentation for. "}}
{"actor":{"display_login":"sn6uv"}}