Jump to content

Wikipedia:Reference desk/Mathematics: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Line 90: Line 90:


:Now that I'm awake, I can explain why this is hard for me to think about... Assume you look at it and you realize that you need 10 to fill the top row (and also assume the far right column has a value of 1). So, it is easy to calculate that 1+2+3+4 = 10. Therefore, removing the right 4 columns will give you the necessary amount to fill the top row - but that won't work. You just removed 4 columns. You only need 6 to fill the top row now. The correct answer was that removing 1+2+3 = 6. But, you only removed 3 columns this time. You need 7 to fill the top row. The original answer was the correct one. Remove 4 columns and have a remainder of 4. It is the removal of columns that makes it harder than simply calculating 1+2+3+...+''n'' = ''X'' for some value ''X''. -- [[User:Kainaw|<font color='#ff0000'>k</font><font color='#cc0033'>a</font><font color='#990066'>i</font><font color='#660099'>n</font><font color='#3300cc'>a</font><font color='#0000ff'>w</font>]][[User talk:Kainaw|&trade;]] 19:08, 9 June 2011 (UTC)
:Now that I'm awake, I can explain why this is hard for me to think about... Assume you look at it and you realize that you need 10 to fill the top row (and also assume the far right column has a value of 1). So, it is easy to calculate that 1+2+3+4 = 10. Therefore, removing the right 4 columns will give you the necessary amount to fill the top row - but that won't work. You just removed 4 columns. You only need 6 to fill the top row now. The correct answer was that removing 1+2+3 = 6. But, you only removed 3 columns this time. You need 7 to fill the top row. The original answer was the correct one. Remove 4 columns and have a remainder of 4. It is the removal of columns that makes it harder than simply calculating 1+2+3+...+''n'' = ''X'' for some value ''X''. -- [[User:Kainaw|<font color='#ff0000'>k</font><font color='#cc0033'>a</font><font color='#990066'>i</font><font color='#660099'>n</font><font color='#3300cc'>a</font><font color='#0000ff'>w</font>]][[User talk:Kainaw|&trade;]] 19:08, 9 June 2011 (UTC)
::Take your case {6,5,3,2}. Why can you not go {6,5,3,2}->{6+1,5,3+1}->{7+2,5+2}->{9+7}->{16} with no remainder?


== Tetrahedrons and triangular graphs ==
== Tetrahedrons and triangular graphs ==

Revision as of 19:29, 9 June 2011

Welcome to the mathematics section
of the Wikipedia reference desk.
Select a section:
Want a faster answer?

Main page: Help searching Wikipedia

   

How can I get my question answered?

  • Select the section of the desk that best fits the general topic of your question (see the navigation column to the right).
  • Post your question to only one section, providing a short header that gives the topic of your question.
  • Type '~~~~' (that is, four tilde characters) at the end – this signs and dates your contribution so we know who wrote what and when.
  • Don't post personal contact information – it will be removed. Any answers will be provided here.
  • Please be as specific as possible, and include all relevant context – the usefulness of answers may depend on the context.
  • Note:
    • We don't answer (and may remove) questions that require medical diagnosis or legal advice.
    • We don't answer requests for opinions, predictions or debate.
    • We don't do your homework for you, though we'll help you past the stuck point.
    • We don't conduct original research or provide a free source of ideas, but we'll help you find information you need.



How do I answer a question?

Main page: Wikipedia:Reference desk/Guidelines

  • The best answers address the question directly, and back up facts with wikilinks and links to sources. Do not edit others' comments and do not give any medical or legal advice.
See also:


June 3

Strength of a linear relationship

If you have some data with (x,y) coordinates and you plot it on a scatter plot, is the strength of the linear relationship the correlation between x and y, or is it the value of the slope of the best fitted linear regression line? Widener (talk) 07:16, 3 June 2011 (UTC)[reply]

Correlation and dependence says "The Pearson correlation coefficient indicates the strength of a linear relationship between two variables". This makes sense, because the correlation coefficient is unaffected by rescaling of the variables, whereas the slope of the regression line does depend on the scale of the variables, so it is somewhat arbitrary. Another way to think of this is to see that the slope of the regression line actually has units (which depend on the units in which you have measured the dependent and independent variables), but a useful mesaure of relationship strength should be a dimensionless quantity. Gandalf61 (talk) 09:25, 3 June 2011 (UTC)[reply]
I seem to recall that if x is regressed on y, then y regressed on x, the product of the two slopes is the correlation coefficient. So in this sense, the slope(s) of the best fitted regression line(s) do give the strength of the linear relationship - but it's really the correlation coefficient which does so.→86.132.165.117 (talk) 21:24, 3 June 2011 (UTC)[reply]
That is complete nonsense. The product of their slopes is not generally between −1 and 1, and is not dimensionless. The correlation is a dimensionless number between −1 and 1. Michael Hardy (talk) 15:49, 4 June 2011 (UTC)[reply]
I think the product of the slopes of the two regression lines must be the square of the correlation coefficient. Gandalf61 (talk) 08:23, 4 June 2011 (UTC)[reply]
Gandalf, that is also nonsense. The square of the correlation is obviously dimensionless; the product of the slopes is not. Michael Hardy (talk) 15:50, 4 June 2011 (UTC)[reply]
Agreed, my memory was correct but incomplete - for negative correlation, both slopes and the cc would be negative, but the product would be positive. It can be seen from this that it's only if all the points lie on a straight line that the regression lines coincide, and so have slopes reciprocal to each other.→86.132.165.117 (talk) 15:44, 4 June 2011 (UTC)[reply]

The slope says nothing about the strength of the relationship. You can have the same slope when the correlation is 0.01 or when it's 0.99. Michael Hardy (talk) 15:47, 4 June 2011 (UTC)[reply]

Agreed. But the slopes of the two regression lines have recriprocal dimensions - one is dim(y)/dim(x), the other is dim(x)/dim(y) - so their product is dimensionless. Slope of one regression line is:
slope of the other regression line is:
and their product is:
Gandalf61 (talk) 18:06, 4 June 2011 (UTC)[reply]
If I didn't know something, I'd be more courteous (and wary) than to describe someone else's statement as complete nonsense, in bold for emphasis - these things sometimes come back to bite you. My statement was only slight nonsense, as I'd forgotten the squaring, but Gandalf's were spot on.→86.132.165.117 (talk) 20:25, 4 June 2011 (UTC)[reply]
Don't hold back anon! Spit out the truth: Michael Hardy is a cunt. --72.179.51.84 (talk) 21:25, 4 June 2011 (UTC)[reply]

The second statement, by Gandalf, was right: the product of the slopes is dimensionless and is the square of the correlation. Haste makes waste: I saw the first attempt and was hasty thereafter. Michael Hardy (talk) 22:00, 4 June 2011 (UTC)[reply]

Look up Beta_(finance) and Pearson_product-moment_correlation_coefficient. The regression coefficient beta is the covariance between the two variables divided by the variance of the independent variable. The linear correlation determined by Pearson's r is the covariance divided by the product of the standard deviations. — Preceding unsigned comment added by 99.100.92.26 (talk) 14:06, 5 June 2011 (UTC)[reply]

That old earth curvature chestnut again, but with a difference

Turn the page if you've already been bored to death with this. But if you haven't, you may be able to help us non mathematicians (who came up with a variety of answers you wouldn't believe). Two tall people are standing at sea level, facing each other across the water. Their eyes are exactly six feet above sea level. How far apart are they when they can just see each other's eyes, but not the bridge of the noses? OK, it's a fabulously clear day, flat calm sea, and they have fabulously keen eyesight. We're interested in the distance, not the possibility/impossibility of being able to view each other's eyes. Moriori (talk) 21:41, 3 June 2011 (UTC)[reply]

The distance between their eyes is twice the distance to the horizon. PrimeHunter (talk) 22:50, 3 June 2011 (UTC)[reply]
The same approach answers the question of whether the highest summits in Scotland (Ben Nevis), England (Scafell Pike) and Wales (Snowdon) are visible from each other, assuming perfect visibility and the absence of anything in between - only the last two are.→86.132.165.117 (talk) 16:12, 4 June 2011 (UTC)[reply]


June 4

Minor confusion on "if G has faithful complex irreducible representation then Z(G) is cyclic"

Hello all,

I am confronted with the following proof:

Claim: If G has faithful complex irreducible representation then the centre Z(G) is cyclic.

Proof: Let be a faithful irreducible complex representation, and : so . This is a G-endomorphism on V and so is multiplication by some scalar say, by Schur's lemma. Then the map is a representation of Z and is faithful as is faithful. Thus, Z(G) is isomorphic to a finite subgroup of and so is cyclic.

Now my question is this: where do we actually use the fact that we're working with the centre? I'm sure it's in there somewhere, but I can't spot why this only works with elements commuting with everything in G, and why we can't just apply the argument to the whole of G. Could anyone explain? Thanks very much. Mathmos6 (talk) 12:31, 4 June 2011 (UTC)[reply]

Schur's lemma only applies for z in the center. More specifically, you're using the fact that the image of z is in the center of End(V).--RDBury (talk) 21:30, 4 June 2011 (UTC)[reply]

Rotation of conic sections in polar form

Hi Reference Desk,

I have been given a conic section in polar form and I was asked to find the angle of rotation and then sketch the graph.

r = 1 / (1 - 2 cos(t) + 2 sin(t))

I rewrote r into

r = 1 / (1 - e cos(t + t'))

where e is the eccentricity

I solved for e and t' and this gives me

r = 1 / (1 - 2 cos(t + pi/4))

Does this mean the conic section is rotated anticlockwise by pi/4 or clockwise by pi/4? Does the sign in front of the cos or sin matter?

Are there any general rules for rotation of conic sections in the polar form? I have read a lot articles on rotation of conic sections but they were all written in terms of the standard form and not the polar form.

Thanks a lot! — Preceding unsigned comment added by 169.232.101.13 (talk) 22:39, 4 June 2011 (UTC)[reply]

You probably meant r = 1 / (1 - 2 √2 cos(t + pi/4)) so the eccentricity is 2 √2. In general, replacing t by t+α in a polar equation rotates the graph clockwise by α, just as replacing x by x+a in a Cartesian equation shifts left by a.--RDBury (talk) 05:49, 5 June 2011 (UTC)[reply]

Problem with Lagrange multipliers

Question:

Find the maximum and minimum values of f(x,y) = x^2 + y^2 subject to the constraint g(x,y) = x^6 + y^6 = 1

This is how I went about solving it:

grad f = t grad g (where t is a constant) 2x = 6t x^5 2y = 6t y^5

1 = 3 t x^4 --> (1/3t)^(1/4)=x 1 = 3 t y^4 --> (1/3t)^(1/4)=y

I substituted x and y into g(x,y)to determine t

(1/3t)^(3/2) + (1/3t)^(3/2) = 1 (1/3t)^(3/2) = 1/2 1/3t = (1/4)^(1/3)

Substituting 1/(3t) back into x and y

x=(1/4)^(1/12) y=(1/4)^(1/12)

To determine whether this is a maximum or a minimum, I need to use the second derivative test

fx=2x fxx=2 fxy=0

fy=2y fyy=2 fyx=0

The Hessian matrix D = 4 > 0, fxx = 2 > 0. This usually means that the point is a minimum, but the problem is that we did not even substitute x = (1/4)^(1/12) into the determinant of the Hessian matrix.

How should this problem be done? — Preceding unsigned comment added by 169.232.101.13 (talk) 22:52, 4 June 2011 (UTC)[reply]

First, you're missing a few solutions. What Lagrange really says is that the vectors (2x,2y) and (6x^5,6y^5) are linearly dependent. So solve by setting the determinant (2x)(6y^5)-(2y)(6x^5) equal to 0. This gives x=0, y=0 and x=±y, and putting these back into the original equation gives 8 solutions (0,±1), (±1,0), (±2−1/6,±2−1/6). Second, while there probably is a second derivative test for Lagrange multipliers somewhere, I can't find it the books I have. The Hessian only applies for unconstrained problems. In any case, the second derivative test only tells you if a point is a local maximum or minimum and the problem is asking for global. So just evaluate the function at the critical points; the ones where the values is highest are the maxima and the ones where the values is lowest are the maxima. The constraint curve is bounded so you don't have to worry about what happens at infinity.
Another way to solve this is by setting x=cos1/3t, y=sin1/3t. This reduces the problem is one dimension and you can use simpler methods on it. (The algebra might get more complicated though.)--RDBury (talk) 06:25, 5 June 2011 (UTC)[reply]

Question about 'a convenient way to type symbols?'

I searched on google but can't find good result, so I came here for help. The only way I type symbols like 'sets relation symbol' 'predicate logic symbol' 'very strange operators' is opening the unicode list then copy it to my sheet. Is there some trick to make this operation faster? (Also I found this 'uncommon symbols' on Wikipedia are showed as PNG pictures.)Nilman (talk) 23:00, 4 June 2011 (UTC)[reply]

The Edit tools, which appear below the edit window, have various sets including 'Math and logic'. Select that from the popup menu then click on a symbol to insert it as you type. If a symbol you use a lot doesn't appear there you can request that it's added.--JohnBlackburnewordsdeeds 23:14, 4 June 2011 (UTC)[reply]
More generally there are two ways of getting symbols that don't appear on your keyboard: (1) Use something like <math> mode that allows you to use special descriptive names such as \alpha for the Greek letter α, or (2) find an input method that does what you need. (The Edit tools are an input method supplied by the Wikipedia editor.) Looie496 (talk) 23:47, 4 June 2011 (UTC)[reply]

Thank you.Nilman (talk) 11:35, 5 June 2011 (UTC)[reply]

You can also use a program like AutoHotkey to set up keyboard shortcuts to specific symbols. This has the advantage of working in (almost) any program. -Elmer Clark (talk) 15:35, 7 June 2011 (UTC)[reply]


June 5

a simple ODE

I have a question about solving a simple linear ODE

where and v(Y) and s(Y) are linear functions of Y that intersect at one point.

Taking the simplest example

gives a solution of which will go to infinity if and zero (which is the point of intersection) if .

What if zero is not the point of intersection, so that and ?

Then the point of intersection is at and the ODE is

How do I show the solution to the ODE in this case? I want to be able to show that depending on the parameters of the linear functions, the solution will tend to a stable equilibrium at that point of intersection. — Preceding unsigned comment added by 130.102.78.164 (talk) 00:13, 5 June 2011 (UTC)[reply]

This is a case of Linear differential equation#Nonhomogeneous equation with constant coefficients but in this case you can find a particular solution by assuming Y is constant. The general solution is then found by adding solutions to the homogeneous case and you've already done that.--RDBury (talk) 06:34, 5 June 2011 (UTC)[reply]

what if any statement implied its opposite?

what if there were a proof that didn't require any axioms (was true for all systems), that from any statement, its opposite followed? --86.8.139.65 (talk) 18:56, 5 June 2011 (UTC)[reply]

That would mean that the rules of inference you are using are not a very good choice. --Tango (talk) 19:27, 5 June 2011 (UTC)[reply]

What do you mean by "opposite"? What's the "opposite" of 2 + 3 = 5? Michael Hardy (talk) 20:17, 5 June 2011 (UTC)[reply]

In this case I would say the opposite is "two plus three very much does not equal five". I don't know how to mark that up. 86.8.139.65 (talk) 20:36, 5 June 2011 (UTC)[reply]
Is this like the Liar paradox? Grandiose (me, talk, contribs) 20:40, 5 June 2011 (UTC)[reply]

Then that would also apply to the statement that says that: "from any statement, its opposite follows". Count Iblis (talk) 22:34, 5 June 2011 (UTC)[reply]

Ex falso quodlibet 83.134.160.239 (talk) 09:42, 7 June 2011 (UTC)[reply]
I think that this may be different. The OP was asking about the possibility of there existing a such that . The link you mention is about something different. Ex falso quodlibet is about being able to imply anything from an assumed contradiction, e.g. . Although if there exists a φ such that then we would have which would then imply any statement you could imagine by ex falso quodlibet. Fly by Night (talk) 15:40, 7 June 2011 (UTC)[reply]
For many statements there's no problem with them implying their opposite. If we then showed the opposite implied the first thing again you start having problems. For instance if we showed that ants are three meters tall implied ants are not three meters tall then there's no problem. Dmcq (talk) 20:50, 7 June 2011 (UTC)[reply]
Could you give some examples? If (all) ants are three meters tall then then "(all) ants are not three meters tall" is clearly false, so you have . They all cause problems: "if A is true then A is false" is what the OP was asking about. Fly by Night (talk) 21:13, 7 June 2011 (UTC)[reply]
For instance, let be the proposition . By ex falso quodlibet, .
Conversely, if φ were any proposition such that then by conditional exchange, we can conclude . Sławomir Biały (talk) 22:10, 7 June 2011 (UTC)[reply]
Well actually in that last bit you can't conclude as ψ may be false and false implies false is true. Dmcq (talk) 22:20, 7 June 2011 (UTC)[reply]
Sorry, the psi should have been a phi. I've corrected it. Sławomir Biały (talk) 22:33, 7 June 2011 (UTC)[reply]

Niels Bohr is quoted for saying: "The negation of a truth is a falsehood, but the negation of a deep truth is another deep truth". I don't know whether this is a truth, a falsehood, or a deep truth. Bo Jacoby (talk) 09:01, 8 June 2011 (UTC).[reply]

Tango gave the correct answer as the first post. If you can prove that no consistent system exists then you should restrict the rules of inference. Taemyr (talk) 11:41, 8 June 2011 (UTC)[reply]

As I showed above, there is nothing inconsistent about the existence of a proposition for which . In fact, it's easy to construct such a proposition in standard propositional logic. You might take issue with the rules of inference of propositional calculus (many logicians have), but it's not for want of consistency. Sławomir Biały (talk) 11:54, 8 June 2011 (UTC)[reply]
Indeed. We have for any proposition P because . In particular, we therefore have .Gandalf61 (talk) 12:55, 8 June 2011 (UTC)[reply]
That's what I meant when I asked for an example. I can't think of a statement that implies its negation. The ant example wasn't quite right. I think that a correct "if A then not A" is inconsistent. If A implies not A then both A and not A are true. That's a contradiction. If we could find an A such that A implies not A then we could imply any statement (by ex falso quodlibet). Fly by Night (talk) 21:00, 8 June 2011 (UTC)[reply]
"If 2 is odd, then 2 is even" is a true statement, using the standard mathematical meaning of "if…then". Since the premise is false, the statement as a whole is true, regardless of whether the conclusion is true or false. See Material conditional. —Bkell (talk) 21:26, 8 June 2011 (UTC)[reply]
Heh, whaddya know, "if 2 is odd then 2 is even" is used verbatim in that article as an example. :-) —Bkell (talk)
I think we've got our wires crossed somewhere. "if 2 is odd then 2 is even" is vacuous because 2 is not odd. (Notice that it's equivalent to its own contrapositive.) The point is when you have "if A then not A" holding while at the same time A is true. That's when the problems start. Otherwise, like I said, it's vacuous. Fly by Night (talk) 21:36, 8 June 2011 (UTC)[reply]
Certainly, a true statement of the form "if A then not A" can cause a contradiction, but only if A is true. Above you said you couldn't think of a statement that implies its negation, so I gave you an example of one that does, namely, the statement "2 is odd". You also said, "If A implies not A then both A and not A are true"—that holds only if you additionally assume that A is true. Alone, the statement "A implies not A", even if true, does not inherently cause a contradiction, because it can be the case that A is false. —Bkell (talk) 21:54, 8 June 2011 (UTC)[reply]
But that's my hang-up. The statement "2 is odd" does not imply that "2 is even". The statement "2 is odd" is false, so a statement of the form "if 2 is odd then B" does not imply anything. It tells us nothing about the validity of B. Think about it: "if 2 is odd"… well it's not… so I stop. I agree with the last point, but that just says that a vacuous statement does not imply a contradiction. So yes: there are many statements of the form "if A then not A" that do not imply a contradiction; but that's because they are either false or they do not imply anything (i.e. are vacuous). Fly by Night (talk) 22:48, 8 June 2011 (UTC)[reply]
From a strictly logical point of view, vacuous truth is still truth, and "2 is odd" does imply "2 is even", because the statement "if 2 is odd, then 2 is even" is true (vacuously). Your difficulties seem to be based on what you think the English construction "if…then" should mean (in ordinary language, it usually indicates cause and effect) and the idea that a logical implication of the form "A implies B" should tell you something about B (it doesn't, if A is false). Perhaps you should read Material conditional#Philosophical problems with material conditional, which addresses some of these issues. —Bkell (talk) 23:31, 8 June 2011 (UTC)[reply]
If you don't like this treatment of implication and vacuous truth, there are different logical systems that may appeal better to your intuition, like relevance logic. These are not the standard logical system used in most mathematics, however. —Bkell (talk) 23:45, 8 June 2011 (UTC)[reply]

It might happen that a universally quantified statement is a true statement about the mathematical world, but that when it is actually instantiated, it produces a vacuous implication at certain values of the quantified variable. For instance,

is clearly a true sentence. But instantiating at gives

-- Sławomir Biały (talk) 01:26, 9 June 2011 (UTC)[reply]

I don't have a "difficulty". Just because I don't agree with your point of view does not mean that I have a difficulty understanding. Fly by Night (talk) 11:11, 9 June 2011 (UTC)[reply]

I'm sorry, I didn't mean to imply that you had difficulty understanding. My use of the word "difficulty" was in response to your use of the word "hang-up", which, according to wikt:hang-up, means "an emotional difficulty or a psychological inhibition". I interpreted that to mean that you were having difficulty reconciling mathematical ideas with your intuition, which is common for everyone from time to time. —Bkell (talk) 11:29, 9 June 2011 (UTC)[reply]
Ha ha ha :-) You're not far off there. I do have many emotional difficulties, and psychological inhibitions; but I try to carry on regardless. The medication helps a lot too. Fly by Night (talk) 14:18, 9 June 2011 (UTC)[reply]

To Slavomir. OP did not ask for the existence of a statement that implies it's opposite. He asked for the implications of a proof that *any* statement implies it's opposite. So not only do you have , which is not a problem, you also have , which is a bit more of a problem.Taemyr (talk) 08:45, 10 June 2011 (UTC)[reply]

How to average ranks?

As an example, there are several listings of the best 100 (or whatever) novels of the 20th. century. A particular novel is not going to have the same rank in every list. To get the "average" rank of each novel, is there any better method than merely taking the mean average of its ranks? Thanks 92.28.240.238 (talk) 20:24, 5 June 2011 (UTC)[reply]

Average rank is not a very good way of doing it unfortunately. The main problems are that firstly it is very bad at dealing with incomplete orders and secondly in general the rank can vary more in the middle rather than the beginning and end so it is not combining things with similar ranges. I tried doing a quick search for merging rank order and combining rank order but didn't find the one I was looking for which is iterative and assigns a real number value rather than an integer order. Other ways of doing it involve setting up a matrix of wins/losses and getting the overall order from that. Dmcq (talk) 23:59, 5 June 2011 (UTC)[reply]
Instead of attempting to order them, you can group them. For example, assume you have 200 books that appear in 10 different top 100 listings. You can place that data in a matrix and use singular value decomposition on the matrix. Then (assuming the books are on the left vertical column of your matrix) the first table will have 5 columns - one per book. Replace all negative values with 0 and all positive values with 1. Each book will have an identifier like 01101. All books with the same identifier are in the same group. With little work, you can sort the groups into the most popular, somewhat popular, and less popular groups. Further, SVD allows you to fill in a rather good estimate for missing data. So, if a book doesn't appear on a particular top 100 list, you can estimate where it is on the list: 101, 110, 250... -- kainaw 00:06, 6 June 2011 (UTC)[reply]
Just looking again at the type of stuff you want to order I think you can probably get a quick and fairly good order by averaging the logarithm of the order including something like 1+log(100) for all the missing ones. Rather empirical but far better than just averaging the order without getting the log. Dmcq (talk) 00:27, 6 June 2011 (UTC)[reply]
If I were doing this, I would probably just use the median of the reported ranks. The main problem with using the mean is that it can be badly affected by outliers -- a single ranking that widely differs from the others can significantly change the result. The median does not suffer from that problem, and is simple to compute. Looie496 (talk) 00:42, 6 June 2011 (UTC)[reply]

Isnt there any maths/stats theory which would indicate the best method to use? 2.97.212.124 (talk) 12:17, 6 June 2011 (UTC)[reply]

Well there's lots of studies of different algorithms which are based on different assumptions! I found something mentioning what I was looking for above in http://deepblue.lib.umich.edu/bitstream/2027.42/66929/2/10.1177_001316447303300104.pdf , I'm sure there's much better now with people using Monte-Carlo methods since they've oodles of performance to waste on computers. Dmcq (talk) 13:41, 6 June 2011 (UTC)[reply]
There is a hell of a lot of information on this topic. You are dealing with three main issues: synonymy, polysemy, and sparsity. In your specific case, synonymy and polysemy are not too bad, but there is the issue of how books are listed. For example, what if one list has both the hardcover and softcover version of a book listed? What if one list places an entire series as a single book while another list breaks each independent book out? Your main issue is sparsity. Many books will not be on all lists. So, assume you use median. A book is, for some reason, on one and only one list at rank 25. It didn't even make the top 100 list for any of the lists but one. You end up ranking it 25 because that is the book's median rank. You need to figure out how to handle sparsity such that it doesn't inhibit the result you want to get. -- kainaw 14:16, 6 June 2011 (UTC)[reply]
Before you get hat far you've of course got to ask yourself how the various lists of novels or whatever were compiled. Were they done by a wide poll or seeing library returns or by a journalist asking a few friends? Was it done by some teenagers or some mothers group? So you have the problems that some might have much more weight than others and some might be much more compatible with your purposes than others. Dmcq (talk) 15:56, 6 June 2011 (UTC)[reply]
This is pretty similar to the questions investigated in social choice theory—you're trying to take several rankings and produce one overall ranking. This is difficult to do well. For example, you would probably like the method you use to have nice properties, such as these:
  • If every list ranks The Grapes of Wrath higher than A Clockwork Orange, then the overall ranking should also rank The Grapes of Wrath higher than A Clockwork Orange.
  • If the various lists were different, but the relative rankings of The Grapes of Wrath and A Clockwork Orange do not change (in other words, every list that previously ranked The Grapes of Wrath higher than A Clockwork Orange still does so, and vice versa), then the relative rankings of The Grapes of Wrath and A Clockwork Orange should remain unchanged in the overall ranking.
  • No one list determines the overall ranking; every list is taken into account.
Unfortunately, it is impossible to satisfy all of these criteria simultaneously; see Arrow's impossibility theorem. —Bkell (talk) 16:49, 6 June 2011 (UTC)[reply]
Yep there's no sound mathematical method with even very simple assumptions. It's up to people to make choices on what they find works for them. You just have to make an admission like Google who now say their page ranks reflect their judgement of what will be most relevant for a user's query rather than just that it is determined by an algorithm. Dmcq (talk) 10:04, 7 June 2011 (UTC)[reply]

Converting between the forms of equations for an ellipse

I know that the standard form for an ellipse is (x-h)^2/a^2+(y-k)^2/b^2=1 or (x-h)^2/b^2+(y-k)^2/a^2=1 depending on the major axis and the general form is ax^2+cy^2+dx+ey=f. I want to be able to convert between these two forms with a simple set of equations. Can anyone help me? --Melab±1 21:01, 5 June 2011 (UTC)[reply]

It doesn't help that you've used the constant "a" in both forms, making it impossible to get an exact correspondence. If you take the general form as cx^2+dy^2+ex+fy=g, just expand the first form and match coefficients of x^2, y^2, x, y and the constant term.→86.132.165.117 (talk) 21:40, 5 June 2011 (UTC)[reply]
To go from the former to latter, just expand as 86.132 suggests. To go the other way, you complete the square for each variable. SemanticMantis (talk) 20:35, 6 June 2011 (UTC)[reply]
  • An ellipse in the plane is given by F = ax2 + by2 + 2hxy + 2gx + 2fy + c = 0 where a, b, c, f, g and h are real numbers and h2ac < 0. (If h2ac = 0 you have a parabola and if h2ac > 0 you have a hyperbola.) To calculate the centre of the ellipse (or more generally any conic) you have to solve F/∂x = ∂F/∂y = 0 with respect to x and y. Once you know the centre, say x = p and y = q, you translate the centre to the origin by a substitution x = x + p and y = y + q. After that, you'll see that F(x+p,y+q) = Ax2 + 2Bxy + Cy2 + D, where A, B, C and D are real numbers (in fact they are functions of the old a, b, c, f, g and h). To calculate the axes of the conic you need to consider the matrix
which is the matrix of the quadratic form Ax2 + 2Bxy + Cy2. The eigenvectors of that matrix give the axes of the conic. Finally, you need to calculate an orthogonal change of basis matrix that takes the axes of the conic onto the coordinate axes. It needs to be orthogonal so that you don't stretch the conic in anyway. This is just a rotation about the origin. Then your conic will be in a normal form, e.g. (x/α)2 + (y/β)2 = 1. I know it might sound complicated, but all that we have done is slide the conic and then rotate it to put it into normal form. Fly by Night (talk) 18:13, 9 June 2011 (UTC)[reply]

June 6

Fermat's Principle

Can Fermat's principle be used as a definition of the straight line? 128.232.240.223 (talk) 22:58, 6 June 2011 (UTC)[reply]

Plato's definition of a line was basically that which blocks the view between two points, or in a more modern interpretation, the path followed by a ray of light. (See Heath's commentary on Euclid Book I Definition 4.) Since Euclid however this kind of definition is frowned upon because it appeals to physical theory rather than mathematical truth. This is especially true in more recent times, where space itself is considered curved. The modern viewpoint is that a line is an undefined concept whose behavior is determined by the axioms of geometry.--RDBury (talk) 00:22, 7 June 2011 (UTC)[reply]
Fermat's principle is just a physics-y way of putting what is more commonly phrased "the shortest distance between two points is a straight line". That holds in Euclidean geometry, due to the triangle inequality. (In some respects, the triangle inequality is the math-y way of putting what is more commonly phrased "the shortest distance between two points is a straight line".) For non-Euclidean geometry, at least for metric spaces, the triangle inequality is a convenient property to have (although not essential). For those metric spaces with the triangle inequality, it's perfectly feasible to use it to define a line-like object, although that might not match the conventional definition of a straight line that others use for that space. -- 174.31.219.218 (talk) 15:57, 7 June 2011 (UTC)[reply]
What is the definition of the straight line that does not require discussion of linear equations then? Your article is somewhat unclear. 128.232.240.223 (talk) 19:46, 7 June 2011 (UTC)[reply]
A straight line in Euclidean space is an example of a geodesic. Fly by Night (talk) 20:01, 7 June 2011 (UTC)[reply]
I appreciate that yours is a correct answer but I would ask, is it a helpful one? If pressed for the definition of a real number, one might define it as an example of a tensor. I don't think we have learnt anything from this definition though. Is there a definition, which mentions linear equations neither explicitly nor implicitly (unless you regard any two, apparently, distinct definitions of a mathematical object as implicitly mentioning the other by virtue of the fact that they are equivalent definitions), of a more basic nature that is still unambiguous? Or are we in rather murky murky waters here, since the straight line underpins Euclidean geometry, and, as such, is challenging to rigorously define? 128.232.240.223 (talk) 21:25, 7 June 2011 (UTC)[reply]
If you're willing to accept the "distance between two points" as a primitive concept, then the definition of a line as a geodesic is a natural one. This is, by definition, the shortest continuous curve between two points. I don't see what your issue is. Sławomir Biały (talk) 22:16, 7 June 2011 (UTC)[reply]
"A straight line is the shortest distance between two points" is the colloquial way of putting it. "128.232.240.223", what do you find so unhelpful about that? Michael Hardy (talk) 01:25, 9 June 2011 (UTC)[reply]
As the geodesic article says: "In the presence of an affine connection, geodesics are defined to be curves whose tangent vectors remain parallel if they are transported along it." Don't worry too much about the technical language if it's too much. In Euclidean space (parallel) transport is just translation. So a geodesic in Euclidean space is a smooth curve whose tangent vectors are all parallel (in the ordinary sense of the word). Physically, a tangent vector represents the velocity of an object. So a geodesic in Euclidean space, i.e. a straight line, is given by the path of a particle whose velocity is parallel at each and every moment. Fly by Night (talk) 19:19, 9 June 2011 (UTC)[reply]

June 7

Example of a graph

Can someone please give me an example of a k-regular connected graph G, (k>2) which has order 4 or more and contains a triangle but no square?-Shahab (talk) 06:14, 8 June 2011 (UTC)[reply]

Markström graph
I have an example of order 10, but I'm going to have to draw it. I did a quick search on Commons to see if there was already an image of it there, and I found the Markström graph (see right), which is another example. —Bkell (talk) 07:20, 8 June 2011 (UTC)[reply]
The Dürer graph is also an example. —Bkell (talk) 07:22, 8 June 2011 (UTC)[reply]
And Tietze's graph. (I'm running through the list at commons:Graphs in graph theory, by the way.) —Bkell (talk) 07:25, 8 June 2011 (UTC)[reply]
Three of the truncated Platonic solids, too. The truncated tetrahedron is pretty close to the example I came up with; here's a poor attempt to draw my example (the O's are the vertices):
   O---------O
  / \       / \
 /   \     /   \
O-----O   O-----O
 \     \ /     /
  \     O     /
   \    |    /
    \   O   /
     \ / \ /
      O---O

Bkell (talk) 07:40, 8 June 2011 (UTC)[reply]

June 8

June 9

Total ordering

Can ZF (without choice) prove every set can be totally ordered? Not well ordered, just total. Money is tight (talk) 04:28, 9 June 2011 (UTC)[reply]

No. If every set can be totally ordered, then you can always find a choice function for any set of unordered pairs, which is not provable in ZF. (Suppose you have a set of unordered pairs, then linearly order the corresponding set of ordered pairs, and from a pair {a,b}, choose a if (a,b) appears before (b,a) in the linear order, otherwise b.) --Trovatore (talk) 04:33, 9 June 2011 (UTC)[reply]
Actually I guess it's a bit simpler than that — just linearly order the union of all the pairs, and then from each pair, take the lesser one in the linear order. Of course that just pushes the question back to why you can't prove in ZF that there's always a choice function on sets of pairs. I don't know the answer to that for sure. I want to say that a choice function on pairs of equivalence classes for the Vitali relation will somehow give you something that can't exist in a model of ZF+AD, say a non-measurable set of reals or one without the property of Baire, but the details escape me. --Trovatore (talk) 04:51, 9 June 2011 (UTC)[reply]
Ah, I think I can do it. Suppose there's a choice function on all pairs of equivalence classes of the Vitali equivalence relation. Graph that on the plane, meaning that we put (x,y) into the graph just in case, when you apply the choice function to the pair ([x],[y]), where [x] means the equivalence class of x, the choice function gives you back the equivalence class of x, not the equivalence class of y.
OK, what can we say about this graph? It has to be invariant under rational shifts: If (x,y) is in the graph, then so is (x+r,y+s) for any rational r and s; that's just by the definition of the Vitali relation. Moreover, it's complemented when you reflect it across the main diagonal, in the sense that if (x,y) is in the graph, then (y,x) is not in the graph (except for the case that x is a rational shift of y, which we should easily be able to argue is a meager set of exceptions).
So now suppose this set in the plane has the property of Baire. That implies that either (i) it's meager, which it can't be because then the plane would be the union of three meager sets, namely the set, its reflection across the main diagonal, and the set such that x is a rational shift of y. Or (ii), there's some little neighborhood on which the set is comeager.
But in case (ii), cut that little neighborhood down to something nice, say a circular disk or a square. Then when you reflect across the main diagonal, you have to get a neighborhood on which the set is meager, by the complementing property we discussed.
But surely there's some rational shift that takes the neighborhood mostly onto the reflected neighborhood. Now you have a contradiction.
Anyone see any mistakes? --Trovatore (talk) 11:01, 9 June 2011 (UTC)[reply]

How many observations are needed to reach a certain accuracy?

Say you wanted to see what cloud cover was for each month of the year and put up a machine that took 1 reading an hour for 5 years.

So you might get something like Jan 0/10 38%, 1/10 5% ... 9/10 4%, 10/10 25%; Feb 0/10 34% etc. or whatever.

You'd be 50% sure of being how close to the real value? What about 95%? What formula do I use? Is it 1/√(trials)? Then again, I've seen months when a weather system or high pressure stays stuck over the area for 10, 14 days in a row when days are supposed to be close to a random bag here. Get one of those in your month and your accuracy would be pretty much thrown off, right? Maybe you really need 30 years like the climatologists use?

Triangular calculation equation

Probably due to lack of sleep, I just can't wrap my brain around what I am sure is a simple problem. I have an array indexed 1, 2, 3, 4... Each index in the array has an integer such that the value in the index is less than the index before it. An example: {5,4,3,2,1}. That is optimal. Each index is exactly one less than the one before it. However, this program sometimes has one (and only one) occurrence where one index will be two less than the one before it: {6,5,4,2,1}. In this case, I want to remove the far right value and distribute it among the other values to get the optimal distribute: {6,5,4,2+1} = {6,5,4,3}. Sometimes, it won't work easily: {6,5,3,2} = {6,5,3+2} = {6,5,4} with a remainder of 1. I am doing this with a loop, removing one column on the right at a time. Isn't there a way, given the number of columns, value of the left column, and the column in which the value is 2 less than the previous column, that I can perform a single calculation to see how many columns I need to remove and distribute? -- kainaw 12:41, 9 June 2011 (UTC)[reply]

I think it depends on the factorization of the sum, call it p say. If p is a prime then there are only going to be one or two possible arrays. For example with p=23 there are only {23} and {12,11}. If you have a factorization of p then there is a calculation, but without it it's probably not possible.--RDBury (talk) 15:55, 9 June 2011 (UTC)[reply]
2n has only a single representation as a sum of consecutive integers: {2n}. Gandalf61 (talk) 16:11, 9 June 2011 (UTC)[reply]
Thanks, but the problem I was working on doesn't require a perfect distribution. It looks for an optimal distribution in which there is a remainder left over that, compared to the size of the columns, is negligible. As I showed with {6,5,3,2}, the optimal solution is {6.5.4} with one left over. So, given the number of columns (C=4), the size of the left-most column (S=6), and the column in which the error occurs (E=3 if we count them 1, 2, 3, 4), how many columns will be left in the optimal solution (O=3) - and the remainder can be included (R=1). This is an easy problem to solve by iterating over "remove the far-right column and place them on E, E+1, E+2, E+3... until all columns have been filled. If E!=O, do it again." I am trying to get O=f(C,S,E) without the iteration because the size I'm working with is around C=1,000,000, S=1,000,000, and E=250,000. After calculating O and R, I have to go to the next step of grouping the R's together for another task. -- kainaw 17:18, 9 June 2011 (UTC)[reply]
Now that I'm awake, I can explain why this is hard for me to think about... Assume you look at it and you realize that you need 10 to fill the top row (and also assume the far right column has a value of 1). So, it is easy to calculate that 1+2+3+4 = 10. Therefore, removing the right 4 columns will give you the necessary amount to fill the top row - but that won't work. You just removed 4 columns. You only need 6 to fill the top row now. The correct answer was that removing 1+2+3 = 6. But, you only removed 3 columns this time. You need 7 to fill the top row. The original answer was the correct one. Remove 4 columns and have a remainder of 4. It is the removal of columns that makes it harder than simply calculating 1+2+3+...+n = X for some value X. -- kainaw 19:08, 9 June 2011 (UTC)[reply]
Take your case {6,5,3,2}. Why can you not go {6,5,3,2}->{6+1,5,3+1}->{7+2,5+2}->{9+7}->{16} with no remainder?

Tetrahedrons and triangular graphs

I've used triangular graphs before, and the requirements for one (as I know the term, seems there's another) to be valid could be said to be {x,y,z} where x+y+z=100%. I've been trying to picture, without success, a hollow tetrahedron (OK so far!). Then there's some point within the tetrahedron with lines coming from it perpendicular to each of its sides - four of them. At the point they touch the sides, that point is read like a triangular graph. How many unique values does it create, I can't think how many of the 12 values are duplicates? If so, how does that change the requirement for it to be valid? Thanks, Grandiose (me, talk, contribs) 19:23, 9 June 2011 (UTC)[reply]