
1. the main use first, infinite cases not explicitly mentioned.Here are some options for the documentation. It's on the feature/issue-843-test-nan-Phi branch, if you want to edit manually.I've put together 3 options.
Other thoughts:
- should we use a different notation for ranges?
- Phi(x) on the left side -- should it be in the code font?
- location of the definition of \Phi(x)? use of \equiv?
Thanks.
On Aug 22, 2014 11:08 AM, "Ben Goodrich" <goodri...@gmail.com> wrote:
>
> On Friday, August 22, 2014 10:01:20 AM UTC-4, Daniel Lee wrote:
>>
>> Here are some options for the documentation. It's on the feature/issue-843-test-nan-Phi branch, if you want to edit manually.
>>
>> I've put together 3 options.
>> 1. the main use first, infinite cases not explicitly mentioned.
>
>
> Yes
And this order is preferred? Main, then special cases?
>
>>
>> Other thoughts:
>> - should we use a different notation for ranges?
>
>
> I think this is fine. If you thinking about the alternative notation, $x \in \left(-37.5,8.25\right)$, that can be confusing in some countries.
>
Exactly. Thanks, I read most of my stuff in English.
>> - Phi(x) on the left side -- should it be in the code font?
>
>
> Yeah, I think that would emphasize that Phi(x) is the computational implementation and $\Phi\left(x\right)$ is the mathematical function.
Great. Will figure it out.
>
>> - location of the definition of \Phi(x)? use of \equiv?
>
>
> Nah, if we are emphasizing that Phi(x) is the computational implementation, then $\equiv$ would seem counter to that.
Sorry, I wasn't clear. I meant within the paragraph. An other option is to put a \Phi(x) = ... within the first line of the conditional equation. I thought it would have been too busy and it was clear defined within the paragraph.
>
> Ben
>
> P.S. We also need to implement Phi_inv(p) soon, such that Phi_inv(Phi(x)) = x. But should Phi_inv(0) return -37.5 + epsilon or -inf? I guess input to Phi_inv() that was less than 0 or greater than 1 would throw an exception nowdays, rather than NaN or an infinite value.
>
> --
> You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Sorry, I wasn't clear. I meant within the paragraph. An other option is to put a \Phi(x) = ... within the first line of the conditional equation. I thought it would have been too busy and it was clear defined within the paragraph.
> P.S. We also need to implement Phi_inv(p) soon, such that Phi_inv(Phi(x)) = x. But should Phi_inv(0) return -37.5 + epsilon or -inf? I guess input to Phi_inv() that was less than 0 or greater than 1 would throw an exception nowdays, rather than NaN or an infinite value.
[change subject]
more below
> On Aug 22, 2014 11:08 AM, "Ben Goodrich" <goodri...@gmail.com> wrote:
> ...
> > P.S. We also need to implement Phi_inv(p) soon, such that Phi_inv(Phi(x)) = x. But should Phi_inv(0) return -37.5 + epsilon or -inf? I guess input to Phi_inv() that was less than 0 or greater than 1 would throw an exception nowdays, rather than NaN or an infinite value.
I'm not sure what inv_Phi(0) or inv_Phi(1) should do. On the
one hand, I'm tempted to go with the behavior of log and exp,
with Phi(-inf) = 0, inv_Phi(0) = -inf, and similarly for +inf and 1.
On the other, that's going to be an automatic rejection. What
do the gradients look like out at the edges?


Here are specific things questions I have. If no one has anything, I'll pick something and move on. See annotated image for numbering.1. Should "Phi" be bold? Should "x" be italics? Should "x" match the math "x"?
3. Order of the equations ok? I could see an argument for x < -37.5, -37.5 <= x <= 8.25, x > 8.25
5. I'm using "inf" for infinity. That ok? I could use \infinity. Also, should we keep this group if it's obvious from the first group? I would think x = inf is included in x > 8.25, but I'm happy to include it for consistency.
Correct a typo: $Phi$ is integrated from -inf.
Jiqiang
Correct a typo: $Phi$ is integrated from -inf.
Jiqiang
On Aug 23, 2014 12:05 AM, "Daniel Lee" <bea...@alum.mit.edu> wrote:
Alright, time to nitpick. This is what it currently looks like on the branch I'm working on.
<Screenshot 2014-08-22 23.39.46.png>
Here are specific things questions I have. If no one has anything, I'll pick something and move on. See annotated image for numbering.1. Should "Phi" be bold? Should "x" be italics? Should "x" match the math "x"?
2. Does anyone care that this "x" doesn't look like the other "x"? If they should match, which one should it be?3. Order of the equations ok? I could see an argument for x < -37.5, -37.5 <= x <= 8.25, x > 8.25
4. Space between groups is 6pt. Look about right?5. I'm using "inf" for infinity. That ok? I could use \infinity. Also, should we keep this group if it's obvious from the first group? I would think x = inf is included in x > 8.25, but I'm happy to include it for consistency.
6. I'm separating out NaN as its own group. I tried putting it within the same group as inf and it looked a little odd, but could be convinced to go that way.7. "throws exception"? Is that clear enough? Not all functions throw; some return NaN, others return booleans or integers, so it'll probably be worth documenting behavior for each function for NaN. For the infinity cases, I could see us not explicitly stating what happens on the bounds if it's obvious. For Phi, if x = inf case isn't written out, I think it's still clear.
8. between ":" and "x" I've added a large space ("\;"). Does that look ok?
<Screenshot 2014-08-22 23.37.18.png>
Thanks.
--