Andy Shulman
Reputation
Next privilege 250 Rep.
 Aug10 awarded Commentator Aug10 comment How to do a regression with only integer values and a fixed intercept? Hah. Yes, I suppose it would have to. I mentally added the $+b$ part. Great, thanks for your help. Aug10 comment How to do a regression with only integer values and a fixed intercept? Thanks! Two questions: 1) How would I go about this for a polynomial of degree $n>1$. 2) If my fixed point is $(0,0)$, then it seems like I wouldn't do any adjustments, but this doesn't make sense to me. If I gave you a set of points perfectly describing the curve $y=x+1$ but I wanted the regression to pass through $(0,0)$, not adjusting the regression clearly does not work. Aug10 accepted How to do a regression with only integer values and a fixed intercept? Aug9 comment How to do a regression with only integer values and a fixed intercept? Won't this just make a "best-effort" attempt at making it pass through (0,0)? I'm okay if the residuals for the other provided data points are non-zero, but f(0) must equal 0. Aug9 asked How to do a regression with only integer values and a fixed intercept? Apr3 accepted Narrowing a Stern-Brocot tree Apr3 comment Narrowing a Stern-Brocot tree And to get a wider range, piecewise sub-trees. Easy enough. Apr3 comment Narrowing a Stern-Brocot tree Normally, it won't enumerate any rational equivalent to one already enumerated. Still, though, that was just an example. In general, how do you do it? Apr3 asked Narrowing a Stern-Brocot tree Mar30 awarded Supporter Mar30 comment Determine if $(p/q)^{a/b}$ is rational It's too bad, really. I was working on a complicated numerical problem, and I was hoping to keep the result rational, even after rational exponentiation. Mar30 awarded Student Mar30 awarded Scholar Mar30 comment Determine if $(p/q)^{a/b}$ is rational @chris, I'm probably capable of developing an implementation from a proof. I'm just not as knowledgeable in the theory. Mar30 accepted Determine if $(p/q)^{a/b}$ is rational Mar30 comment Determine if $(p/q)^{a/b}$ is rational My apologies! I don't really need something efficient, per se, just something that won't take twenty times the lifetime of the sun for a 4000-bit number :) Mar30 comment Determine if $(p/q)^{a/b}$ is rational But there's really no way to efficiently figure out the prime factorization of a number... Mar30 comment Determine if $(p/q)^{a/b}$ is rational I'm not sure what you mean by putting them in parentheses like that. Mar30 asked Determine if $(p/q)^{a/b}$ is rational