{"action":"created","comment":{"url":"https://api.github.com/repos/scipy/scipy/pulls/comments/217885890","pull_request_review_id":155714664,"id":217885890,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzg4NTg5MA==","diff_hunk":"@@ -2339,14 +2339,22 @@ def integ(x):\n     def expect(self, func=None, args=(), loc=0, scale=1, lb=None, ub=None,\n                conditional=False, **kwds):\n         \"\"\"Calculate expected value of a function with respect to the\n-        distribution.\n+        distribution by numerical integration.\n \n         The expected value of a function ``f(x)`` with respect to a\n         distribution ``dist`` is defined as::\n \n-                    ubound\n-            E[x] = Integral(f(x) * dist.pdf(x))\n-                    lbound\n+                    ub\n+            E[f(x)] = Integral(f(x) * dist.pdf(x)),","path":"scipy/stats/_distn_infrastructure.py","position":14,"original_position":14,"commit_id":"278a7532bad466d8c9648f4642a46366dd547b22","original_commit_id":"278a7532bad466d8c9648f4642a46366dd547b22","user":{"login":"rlucas7","id":5400493,"node_id":"MDQ6VXNlcjU0MDA0OTM=","avatar_url":"https://avatars0.githubusercontent.com/u/5400493?v=4","gravatar_id":"","url":"https://api.github.com/users/rlucas7","html_url":"https://github.com/rlucas7","followers_url":"https://api.github.com/users/rlucas7/followers","following_url":"https://api.github.com/users/rlucas7/following{/other_user}","gists_url":"https://api.github.com/users/rlucas7/gists{/gist_id}","starred_url":"https://api.github.com/users/rlucas7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlucas7/subscriptions","organizations_url":"https://api.github.com/users/rlucas7/orgs","repos_url":"https://api.github.com/users/rlucas7/repos","events_url":"https://api.github.com/users/rlucas7/events{/privacy}","received_events_url":"https://api.github.com/users/rlucas7/received_events","type":"User","site_admin":false},"body":"@chrisb83, I see the distinction assumes the usual probability/statistics notational distinction of capital X for random variables and lower case x for the value the random variable takes on, i.e. Pr(X <x). That is a minor change, I'll include with the lambda function suggestion change from @josef-pkt. These will go into the next push, should only take a couple minutes. Any other objections from either of you? :) ","created_at":"2018-09-15T14:08:29Z","updated_at":"2018-09-15T14:08:29Z","html_url":"https://github.com/scipy/scipy/pull/9267#discussion_r217885890","pull_request_url":"https://api.github.com/repos/scipy/scipy/pulls/9267","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/scipy/scipy/pulls/comments/217885890"},"html":{"href":"https://github.com/scipy/scipy/pull/9267#discussion_r217885890"},"pull_request":{"href":"https://api.github.com/repos/scipy/scipy/pulls/9267"}},"in_reply_to_id":217885793},"pull_request":{"url":"https://api.github.com/repos/scipy/scipy/pulls/9267","id":215450078,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1NDUwMDc4","html_url":"https://github.com/scipy/scipy/pull/9267","diff_url":"https://github.com/scipy/scipy/pull/9267.diff","patch_url":"https://github.com/scipy/scipy/pull/9267.patch","issue_url":"https://api.github.com/repos/scipy/scipy/issues/9267","number":9267,"state":"open","locked":false,"title":"DOC: clarify expect() return val when moment is inf/nan","user":{"login":"rlucas7","id":5400493,"node_id":"MDQ6VXNlcjU0MDA0OTM=","avatar_url":"https://avatars0.githubusercontent.com/u/5400493?v=4","gravatar_id":"","url":"https://api.github.com/users/rlucas7","html_url":"https://github.com/rlucas7","followers_url":"https://api.github.com/users/rlucas7/followers","following_url":"https://api.github.com/users/rlucas7/following{/other_user}","gists_url":"https://api.github.com/users/rlucas7/gists{/gist_id}","starred_url":"https://api.github.com/users/rlucas7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlucas7/subscriptions","organizations_url":"https://api.github.com/users/rlucas7/orgs","repos_url":"https://api.github.com/users/rlucas7/repos","events_url":"https://api.github.com/users/rlucas7/events{/privacy}","received_events_url":"https://api.github.com/users/rlucas7/received_events","type":"User","site_admin":false},"body":"  *Closes github issue #9259","created_at":"2018-09-14T00:17:53Z","updated_at":"2018-09-15T14:08:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c0daf616da7ae53e7b730f02a948442ffb242bc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/scipy/scipy/pulls/9267/commits","review_comments_url":"https://api.github.com/repos/scipy/scipy/pulls/9267/comments","review_comment_url":"https://api.github.com/repos/scipy/scipy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scipy/scipy/issues/9267/comments","statuses_url":"https://api.github.com/repos/scipy/scipy/statuses/278a7532bad466d8c9648f4642a46366dd547b22","head":{"label":"rlucas7:scipy_issue_9259","ref":"scipy_issue_9259","sha":"278a7532bad466d8c9648f4642a46366dd547b22","user":{"login":"rlucas7","id":5400493,"node_id":"MDQ6VXNlcjU0MDA0OTM=","avatar_url":"https://avatars0.githubusercontent.com/u/5400493?v=4","gravatar_id":"","url":"https://api.github.com/users/rlucas7","html_url":"https://github.com/rlucas7","followers_url":"https://api.github.com/users/rlucas7/followers","following_url":"https://api.github.com/users/rlucas7/following{/other_user}","gists_url":"https://api.github.com/users/rlucas7/gists{/gist_id}","starred_url":"https://api.github.com/users/rlucas7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlucas7/subscriptions","organizations_url":"https://api.github.com/users/rlucas7/orgs","repos_url":"https://api.github.com/users/rlucas7/repos","events_url":"https://api.github.com/users/rlucas7/events{/privacy}","received_events_url":"https://api.github.com/users/rlucas7/received_events","type":"User","site_admin":false},"repo":{"id":147092702,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcwOTI3MDI=","name":"scipy","full_name":"rlucas7/scipy","owner":{"login":"rlucas7","id":5400493,"node_id":"MDQ6VXNlcjU0MDA0OTM=","avatar_url":"https://avatars0.githubusercontent.com/u/5400493?v=4","gravatar_id":"","url":"https://api.github.com/users/rlucas7","html_url":"https://github.com/rlucas7","followers_url":"https://api.github.com/users/rlucas7/followers","following_url":"https://api.github.com/users/rlucas7/following{/other_user}","gists_url":"https://api.github.com/users/rlucas7/gists{/gist_id}","starred_url":"https://api.github.com/users/rlucas7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlucas7/subscriptions","organizations_url":"https://api.github.com/users/rlucas7/orgs","repos_url":"https://api.github.com/users/rlucas7/repos","events_url":"https://api.github.com/users/rlucas7/events{/privacy}","received_events_url":"https://api.github.com/users/rlucas7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rlucas7/scipy","description":"Scipy library main repository","fork":true,"url":"https://api.github.com/repos/rlucas7/scipy","forks_url":"https://api.github.com/repos/rlucas7/scipy/forks","keys_url":"https://api.github.com/repos/rlucas7/scipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rlucas7/scipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rlucas7/scipy/teams","hooks_url":"https://api.github.com/repos/rlucas7/scipy/hooks","issue_events_url":"https://api.github.com/repos/rlucas7/scipy/issues/events{/number}","events_url":"https://api.github.com/repos/rlucas7/scipy/events","assignees_url":"https://api.github.com/repos/rlucas7/scipy/assignees{/user}","branches_url":"https://api.github.com/repos/rlucas7/scipy/branches{/branch}","tags_url":"https://api.github.com/repos/rlucas7/scipy/tags","blobs_url":"https://api.github.com/repos/rlucas7/scipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rlucas7/scipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rlucas7/scipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/rlucas7/scipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rlucas7/scipy/statuses/{sha}","languages_url":"https://api.github.com/repos/rlucas7/scipy/languages","stargazers_url":"https://api.github.com/repos/rlucas7/scipy/stargazers","contributors_url":"https://api.github.com/repos/rlucas7/scipy/contributors","subscribers_url":"https://api.github.com/repos/rlucas7/scipy/subscribers","subscription_url":"https://api.github.com/repos/rlucas7/scipy/subscription","commits_url":"https://api.github.com/repos/rlucas7/scipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/rlucas7/scipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/rlucas7/scipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/rlucas7/scipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/rlucas7/scipy/contents/{+path}","compare_url":"https://api.github.com/repos/rlucas7/scipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rlucas7/scipy/merges","archive_url":"https://api.github.com/repos/rlucas7/scipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rlucas7/scipy/downloads","issues_url":"https://api.github.com/repos/rlucas7/scipy/issues{/number}","pulls_url":"https://api.github.com/repos/rlucas7/scipy/pulls{/number}","milestones_url":"https://api.github.com/repos/rlucas7/scipy/milestones{/number}","notifications_url":"https://api.github.com/repos/rlucas7/scipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rlucas7/scipy/labels{/name}","releases_url":"https://api.github.com/repos/rlucas7/scipy/releases{/id}","deployments_url":"https://api.github.com/repos/rlucas7/scipy/deployments","created_at":"2018-09-02T14:31:14Z","updated_at":"2018-09-03T23:35:13Z","pushed_at":"2018-09-15T13:30:43Z","git_url":"git://github.com/rlucas7/scipy.git","ssh_url":"git@github.com:rlucas7/scipy.git","clone_url":"https://github.com/rlucas7/scipy.git","svn_url":"https://github.com/rlucas7/scipy","homepage":"https://scipy.org/scipylib/","size":79683,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"scipy:master","ref":"master","sha":"a6009217b66f58b7b4e445ff365686f48845e33a","user":{"login":"scipy","id":288277,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4ODI3Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/288277?v=4","gravatar_id":"","url":"https://api.github.com/users/scipy","html_url":"https://github.com/scipy","followers_url":"https://api.github.com/users/scipy/followers","following_url":"https://api.github.com/users/scipy/following{/other_user}","gists_url":"https://api.github.com/users/scipy/gists{/gist_id}","starred_url":"https://api.github.com/users/scipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scipy/subscriptions","organizations_url":"https://api.github.com/users/scipy/orgs","repos_url":"https://api.github.com/users/scipy/repos","events_url":"https://api.github.com/users/scipy/events{/privacy}","received_events_url":"https://api.github.com/users/scipy/received_events","type":"Organization","site_admin":false},"repo":{"id":1460385,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYwMzg1","name":"scipy","full_name":"scipy/scipy","owner":{"login":"scipy","id":288277,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4ODI3Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/288277?v=4","gravatar_id":"","url":"https://api.github.com/users/scipy","html_url":"https://github.com/scipy","followers_url":"https://api.github.com/users/scipy/followers","following_url":"https://api.github.com/users/scipy/following{/other_user}","gists_url":"https://api.github.com/users/scipy/gists{/gist_id}","starred_url":"https://api.github.com/users/scipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scipy/subscriptions","organizations_url":"https://api.github.com/users/scipy/orgs","repos_url":"https://api.github.com/users/scipy/repos","events_url":"https://api.github.com/users/scipy/events{/privacy}","received_events_url":"https://api.github.com/users/scipy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scipy/scipy","description":"Scipy library main repository","fork":false,"url":"https://api.github.com/repos/scipy/scipy","forks_url":"https://api.github.com/repos/scipy/scipy/forks","keys_url":"https://api.github.com/repos/scipy/scipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scipy/scipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scipy/scipy/teams","hooks_url":"https://api.github.com/repos/scipy/scipy/hooks","issue_events_url":"https://api.github.com/repos/scipy/scipy/issues/events{/number}","events_url":"https://api.github.com/repos/scipy/scipy/events","assignees_url":"https://api.github.com/repos/scipy/scipy/assignees{/user}","branches_url":"https://api.github.com/repos/scipy/scipy/branches{/branch}","tags_url":"https://api.github.com/repos/scipy/scipy/tags","blobs_url":"https://api.github.com/repos/scipy/scipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scipy/scipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scipy/scipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/scipy/scipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scipy/scipy/statuses/{sha}","languages_url":"https://api.github.com/repos/scipy/scipy/languages","stargazers_url":"https://api.github.com/repos/scipy/scipy/stargazers","contributors_url":"https://api.github.com/repos/scipy/scipy/contributors","subscribers_url":"https://api.github.com/repos/scipy/scipy/subscribers","subscription_url":"https://api.github.com/repos/scipy/scipy/subscription","commits_url":"https://api.github.com/repos/scipy/scipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/scipy/scipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/scipy/scipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/scipy/scipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/scipy/scipy/contents/{+path}","compare_url":"https://api.github.com/repos/scipy/scipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scipy/scipy/merges","archive_url":"https://api.github.com/repos/scipy/scipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scipy/scipy/downloads","issues_url":"https://api.github.com/repos/scipy/scipy/issues{/number}","pulls_url":"https://api.github.com/repos/scipy/scipy/pulls{/number}","milestones_url":"https://api.github.com/repos/scipy/scipy/milestones{/number}","notifications_url":"https://api.github.com/repos/scipy/scipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scipy/scipy/labels{/name}","releases_url":"https://api.github.com/repos/scipy/scipy/releases{/id}","deployments_url":"https://api.github.com/repos/scipy/scipy/deployments","created_at":"2011-03-09T18:52:03Z","updated_at":"2018-09-15T13:00:14Z","pushed_at":"2018-09-15T13:30:48Z","git_url":"git://github.com/scipy/scipy.git","ssh_url":"git@github.com:scipy/scipy.git","clone_url":"https://github.com/scipy/scipy.git","svn_url":"https://github.com/scipy/scipy","homepage":"https://scipy.org/scipylib/","size":81696,"stargazers_count":4901,"watchers_count":4901,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2480,"mirror_url":null,"archived":false,"open_issues_count":1285,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2480,"open_issues":1285,"watchers":4901,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scipy/scipy/pulls/9267"},"html":{"href":"https://github.com/scipy/scipy/pull/9267"},"issue":{"href":"https://api.github.com/repos/scipy/scipy/issues/9267"},"comments":{"href":"https://api.github.com/repos/scipy/scipy/issues/9267/comments"},"review_comments":{"href":"https://api.github.com/repos/scipy/scipy/pulls/9267/comments"},"review_comment":{"href":"https://api.github.com/repos/scipy/scipy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scipy/scipy/pulls/9267/commits"},"statuses":{"href":"https://api.github.com/repos/scipy/scipy/statuses/278a7532bad466d8c9648f4642a46366dd547b22"}},"author_association":"NONE"}}
{"actor":{"display_login":"rlucas7"}}