Wikipedia:Reference desk/Archives/Mathematics/2012 April 9
Mathematics desk | ||
---|---|---|
< April 8 | << Mar | April | May >> | April 10 > |
Welcome to the Wikipedia Mathematics Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
April 9
[edit]297/140 seems like an unusual answer.
[edit]I don't think I've made a mistake - I've checked the math several times now - I guess I just want to make sure here because doesn't seem like a nice answer.
Calculate the line integral where and C is the path from (0,0,0) to (1,1,1) along the parametric curve .
This is what I did:
Since we make the substitutions ,, and the limits of the integral are 0 and 1.
Widener (talk) 05:27, 9 April 2012 (UTC)
- I can't fault your logic at any step; it seems straightforward enough. The final definite integral is also correct. Due to the quirkiness of the form of the "field" A and of the path C, the apparent complexity is not surprising, and I would not have expected a "nicer" answer; that the result should be rational is about all you could expect. — Quondum☏ 06:30, 9 April 2012 (UTC)
Second Order ODEs
[edit]Consider a second order homogeneous ODE of the form where a, b and c are constants with a ≠ 0. The general solution will be of the form where α and β are constants and ƒ and g are linearly independent functions, i.e. one is not a constant multiple of the other. Everything's straightforward when b2 – 4ac ≠ 0. When b2 – 4ac = 0 the particular solutions are of the form and where r is the repeated root of ax2 + bx + c = 0. The thing I don't see is where does come from? It obviously works. Every book I've seen on the subject simply checks that it works. Obviously and aren't linearly independent functions, and so another functions would be required. But where does come from, besides trial and error? Can anyone supply a decent online reference? — Fly by Night (talk) 17:31, 9 April 2012 (UTC)
- Sorry as this is OR, so make of it what you will (also I have no references, I simply give this in the hope that you might find it useful): take the limit as two distinct roots converge
- where and are adjusted as a function of to avoid the two dimensions of freedom becoming either zero or infinity. I'm sure you'll see how the required solution appears when you write out the Taylor's series for . — Quondum☏ 19:55, 9 April 2012 (UTC)
- Don't worry about OR, this is the reference desk. I can't seem to follow your argument to a satisfactory conclussion. The exponential function is an entire function. I took the limit and got:
- I computed the Taylor series, and didn't see anything; I also tried dividing through by ε but this gives an indeterminate expression as ε → 0. Could you be more specific, please? — Fly by Night (talk) 20:18, 9 April 2012 (UTC)
- Don't worry about OR, this is the reference desk. I can't seem to follow your argument to a satisfactory conclussion. The exponential function is an entire function. I took the limit and got:
- The way I was looking at it, I put
- If we now put , and , and then keep and constant (by varying inversely with and similarly finding a suitable way to vary ), the terms with tend to zero, the prior terms remain unchanged. The exponential function being entire is useful in that this ensures that the result will be independent of the path in the complex or real domain along which tends to zero. Not very rigorous perhaps, but better than trial-and-error. — Quondum☏ 20:47, 9 April 2012 (UTC)
- The way I was looking at it, I put
If , the differential operator factors as
Because of the commutator identity , we can rewrite this as
which is now easy to solve. Sławomir Biały (talk) 23:59, 9 April 2012 (UTC)
- Sławomir, could you please explain where the commutator identity came from and what its relevance is? Also
- which is just another homogeneous second order ODE whose characteristic equation has a repeated root. The solution of which is
- My original question was where does the factor of x come from? — Fly by Night (talk) 01:46, 10 April 2012 (UTC)
- Why would you expand out? You can solve this equation! The solution is , and this shows where your x comes from! Sławomir Biały (talk) 11:06, 10 April 2012 (UTC)
- D'oh! Yeah, of course. Where did the commutator identity come from, and what is its relevance? I can see that your equation is the same as which is an equation of the type in question. But how did you arrive at ? Is there a systematic was of doing it, or do you just have "an eye" for it? I'm puzzled about why you use in the commutator and in when is the repeated root of the characteristic equation. — Fly by Night (talk) 13:15, 10 April 2012 (UTC)
- It's the commutator trick that allows you to remove the eigenvalue, the idea being that the case of is well-understood from first principles already. Each time an is moved past a , it gives a . Sławomir Biały (talk) 13:27, 10 April 2012 (UTC)
- Thanks Sławomir. It feels like we're getting somewhere. Could you please give me some references and online links? I'd like to read up on this. — Fly by Night (talk) 14:03, 10 April 2012 (UTC)
Sorry, I don't know any good references offhand. Another way to approach the problem is to use the matrix exponential to find the fundamental matrix solution. Write as the system (with ):
The is the companion matrix for the minimal polynomial (with a double root ). In fact, the Jordan decomposition of the matrix is:
So the fundamental matrix solution is
Anyway, less elegant than what I suggested before, but probably more systematic. Sławomir Biały (talk) 22:01, 10 April 2012 (UTC)
The ODE having characteristic equation roots and has the solutions for . The limiting case gives . This is where the factor of x comes from. Bo Jacoby (talk) 08:54, 10 April 2012 (UTC).
- It's worth remarking that the solutions all have the same initial conditions and , so the limit is a natural one to take. Sławomir Biały (talk) 11:28, 10 April 2012 (UTC)
Generalised permutation block matrices?
[edit]Fix an integer k > 0. We can form 'block' permutation matrices, by taking a genuine permutation matrix, and replacing the zeroes with zero k x k matrices, and ones with k x k identity matrices. Further, we can form generalised block permutation matrices by, instead of having identity matrices, using a collection of k x k integral matrices. Do these things have a name? Are they well studied? The group formed by such matrices decomposes as the semi-direct product of r direct copies, say, of GL(k,Z) (viewed as block diagonal rk x rk matrices), with the symmetric group on r letters acting by permuting the blocks. I'd like to learn as much about this group as possible, so any pointers would be great! Thanks, Icthyos (talk) 19:13, 9 April 2012 (UTC)
- It occurs to me that this group is a wreath product, with base space the integral matrix group, and the symmetric group acting. In particular, it contains as a subgroup the wreath product of the symmetric group on k letters being acted on by the symmetric group on r letters. Icthyos (talk) 10:55, 12 April 2012 (UTC)
Help locating a book
[edit]If you feel this question belongs elsewhere please feel free to move it. I put it here because someone else may have had their interest in Maths piqued by it.
When I was 7 in the mid-60s, I read a book which outlined about a dozen well-known mathematical problems, such as the Tower of Hanoi and the 7 Bridges of Konigsberg. I've been racking my brains to remember what book this was but to no avail. I also have a feeling it may have been by Edward Kasner, as I'm sure I read in the same book about the naming of googol. Can anyone help with this book please? --TammyMoet (talk) 19:32, 9 April 2012 (UTC)
- I typed the author's name into Amazon and got Kasner, Edward; Newman, James (2001). Mathematics and the Imagination. Dover Publications. ISBN 978-0486417035.. It was originally published in 1971. It seems like a very long book for a seven year old; it has 400 pages. But according to the contents page it mentions the Towers of Hanoi and the Googol. On page 270 it mentions seven bridges too. Hope this helps. — Fly by Night (talk) 20:32, 9 April 2012 (UTC)
- Thanks for this. I can quite accurately date the book to before 1971 because of the library I got it from, which was in a town I moved from in 1968. I wonder if there was an earlier version? It was quite a long book as I remember, but I don't know about 400 pages. Anyway you've given me something to go on there! --TammyMoet (talk) 09:38, 10 April 2012 (UTC)
- Bingo! This reference says the book was originally written in 1940! Thanks again! --TammyMoet (talk) 09:40, 10 April 2012 (UTC)
- I have the Tempus version of that book, and on it's copyright page it says it first came out in 1940 by Simon and Shuster.
Powers of i
[edit]I can say that , but why can't I say that ? It Is Me Here t / c 22:51, 9 April 2012 (UTC)
- There are four possible fourth roots of 1, 1 is just one of them. You don't even have to go to imaginary numbers to get the problem, e.g. using the same logic. Dmcq (talk) 23:20, 9 April 2012 (UTC)
- In general, exponentiation is not single-valued. A derivation of this sort is guaranteed to give a correct value of the exponential. --COVIZAPIBETEFOKY (talk) 23:26, 9 April 2012 (UTC)
- In concrete terms: , , and , so Take a look at our article on roots of unity. As an example of the confusion: working over the real numbers, it's tempting to think that when, in reality, — Fly by Night (talk) 00:17, 10 April 2012 (UTC)
- If you're confused by the above answers, good! Complex exponentiation is confusing, even more so because different definitions give different ways to approach the same thing. But I'll try to sum up:
- There's no problem when the exponent is an integer. is definitely . Also, since it's just rewriting the exponent.
- When the exponent is not an integer, the result is not a single value but a set of values, where is any one of the natural logarithms of a. (A different approach is to consider Riemann surfaces.)
- In general, and are not necessarily the same set. However, they do need to have at least one value in common.
- Your derivation shows that is necessarily equal to one of the values of , namely i. The fact that 1 is another value of has no bearing on the value of .
- -- Meni Rosenfeld (talk) 09:01, 10 April 2012 (UTC)
- This was a good answer. Thank you! LightThinker (talk) 14:34, 10 April 2012 (UTC)
- This last remark puzzles me. Who was the OP? Was it the admin It Is Me Here or was it LightThinker? — Fly by Night (talk) 20:59, 10 April 2012 (UTC)
- This is the first time in the history of forums everywhere that anyone has every benefited from another person's question! Ohnoes! :O --COVIZAPIBETEFOKY (talk) 12:58, 11 April 2012 (UTC)
- Like — Fly by Night (talk) 21:55, 11 April 2012 (UTC)
- This is the first time in the history of forums everywhere that anyone has every benefited from another person's question! Ohnoes! :O --COVIZAPIBETEFOKY (talk) 12:58, 11 April 2012 (UTC)
- This last remark puzzles me. Who was the OP? Was it the admin It Is Me Here or was it LightThinker? — Fly by Night (talk) 20:59, 10 April 2012 (UTC)
OK, thanks, I think I understand from Dmcq and Meni Rosenfeld's bullet point 4 that the mistake comes in saying that , just like the mistake in the case was saying that , since although it can be in general, that is not the root you are looking for in this case. But I still don't quite understand bullet point 3: why is ? I can swear I was taught the exact opposite—that they were equal—at some point. It Is Me Here t / c 16:59, 11 April 2012 (UTC)
- They are equal whenever b,c are integers, regardless of whether a is non-real. I would think they would be equal whenever b,c are Gaussian integers, again even if a is non-real. As far as I know, the problem arises only if b or c is fractional and their product has a lower denominator than the product of their denominators -- that's what causes you to lose some solutions. Duoduoduo (talk) 22:14, 11 April 2012 (UTC)
- According to the formula above, where X is one value of and k is an integer, while . The latter has 2 degrees of freedom so there are many values in the latter which are not in the former. Assuming nonzero a, according to my calculations, the only case when the sets are equal is when is an integer for some integer m. This happens in particular whenever c is an integer.
- Even when b and c are Gaussian integers, the two sets can be different. For example, but .
- So only if you either don't consider complex numbers at all and take each power to represent the positive value, or if there is a very specific relationship between b and c. -- Meni Rosenfeld (talk) 18:05, 14 April 2012 (UTC)
Can likelihood ratios used for estimation of post-test probability be continuous variables, or do they have to be dichotomous?
[edit]The article Pre- and post-test probability states in a table in the section Estimation of post-test probability, that using likelihood ratios for estimation of post-test probability has the disadvantage of requiring a dichotomous variable. Likewise, the article Likelihood ratios in diagnostic testing distinguishes between an LR+ and an LR-, and makes no mention of varying the cutoff. Is it really correct that the use of likelihood ratios in diagnostic testing requires that the variable be dichotomous? Take a hypothetical example where you know the distributions of a continuous test variable within the populations with and without disease. Can we not then calculate
- .
directly from the distributions?
I did some experimentation in R (programming language), using a hypothetical test with a normal distribution N(μ=70, sd=10) in the healthy population, and N(μ=95, sd=15) in the diseased population. Here is the function I used:
LR = function(arg)
{
eps=0.01
p_healthy_1 = pnorm(arg-eps, mean=70,sd=10)
p_healthy_2 = pnorm(arg+eps, mean=70,sd=10)
p_disease_1 = pnorm(arg-eps, mean=95, sd=15)
p_disease_2 = pnorm(arg+eps, mean=95, sd=15)
return ((p_disease_2-p_disease_1)/(p_healthy_2-p_healthy_1))
}
The function behaves more or less as I would have expected. Its value is 1.0 (i.e. indifference) at arg=82.35 (which is identical to the cutoff point I found by maximising the number of correct decisions). In the range 83 to 133, it rises steeply from 1.13 to 3359.45. When moving towards the origin from 82 to 50, it falls more gently from 0.94080371 to 0.05472334. 0.05472334, corresponding to an argument of 50, is a minimum. Then, when moving from 50 to 10, the function rises again, from 0.05472334 to 4.65981528, crossing LR=1 at arg=17.65869. I assume that the reason it rises at very low arguments, is that the higher SD of the distribution in the diseased population becomes more important than the difference in means between the populations. I'm unable to figure out why it happens exactly at that point, though.
Anyway, my question is: are continuous likelihood ratios obtained using a function such as the one I've described here valid for deriving a post-test probability from a pre-test probability, for example by using Fagan's nomogram? --95.34.141.48 (talk) 22:54, 9 April 2012 (UTC)
- Yes, this is perfectly valid, I don't know why the article would say it's not. Bayes's theorem and rule work also for continuous distributions. That is, for probabilities you have
- And more generally
- Where P is the value of the pdf (if T is continuous) or pmf (if T is discrete) at the particular instantiation. That this follows from the probability version can be seen by considering the event .
- The calculation using the graphs in the article or the Fagan monogram is then just a rearrangement of the terms. -- Meni Rosenfeld (talk) 08:38, 10 April 2012 (UTC)
- Thank you! I spent quite some time figuring out that this had to be so, and I'm grateful for your confirmation. I suspected it would work for densities too, but messed it up somehow when I tried it yesterday. Anyway, the density version in R which I now tested:
LR2 = function(arg)
{
d_healthy = dnorm(arg, mean=70,sd=10)
d_disease = dnorm(arg, mean=95, sd=15)
return (d_disease/d_healthy)
}
- works perfectly! After some more searching, this paper turned up, which explains the different usages of likelihood ratios quite nicely, and suggests calculating them by using a function which pretty much matches my first version! --95.34.141.48 (talk) 21:48, 10 April 2012 (UTC)