Misplaced Pages

:Reference desk/Mathematics: Difference between revisions - Misplaced Pages

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Misplaced Pages:Reference desk Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 19:34, 21 November 2006 editGTBacchus (talk | contribs)Autopatrolled, Extended confirmed users, File movers, Rollbackers60,420 edits Monty Hall problem (undeleted): seriously, try it← Previous edit Revision as of 19:42, 21 November 2006 edit undo87.102.16.174 (talk) Monty Hall problem (undeleted)Next edit →
Line 223: Line 223:
:::On removing one curtain the odds of your first answer being right change from 1 in 3 to 1 in 2. Is this a source of confusion?] 19:32, 21 November 2006 (UTC) :::On removing one curtain the odds of your first answer being right change from 1 in 3 to 1 in 2. Is this a source of confusion?] 19:32, 21 November 2006 (UTC)
::::I'm sorry, but no. Try it, seriously. 2/3 of the time, your initial guess is wrong, and that makes it worth it to switch to what's been revealed as the only other possible non-goat curtain. You can't change the probability of something that's already happened. Really - try it. -]<sup>(])</sup> 19:34, 21 November 2006 (UTC) ::::I'm sorry, but no. Try it, seriously. 2/3 of the time, your initial guess is wrong, and that makes it worth it to switch to what's been revealed as the only other possible non-goat curtain. You can't change the probability of something that's already happened. Really - try it. -]<sup>(])</sup> 19:34, 21 November 2006 (UTC)
:::::I'm sorry you don't understand or choose to be stupid. The probability of you being right does change. Are you drunk or something?] 19:42, 21 November 2006 (UTC)

Revision as of 19:42, 21 November 2006


Misplaced Pages:Reference desk Reference Desk
Science Mathematics Computing/IT Humanities
Language Entertainment Miscellaneous Archives
How to ask a question
  • Sign your question. Type ~~~~ at its end.
  • Be specific. Explain your question in detail if necessary, addressing exactly what you'd like answered. For information that changes from country to country (or from state to state), such as legal, fiscal or institutional matters, please specify the jurisdiction you're interested in.
  • Include both a title and a question. The title (top box) should specify the topic of your question. The complete details should be in the bottom box.
  • Do your own homework. If you need help with a specific part or concept of your homework, feel free to ask, but please don't post entire homework questions and expect us to give you the answers.
  • Be patient. Questions are answered by other users, and a user who can answer may not be reading the page immediately. A complete answer to your question may be developed over a period of up to seven days.
  • Do not include your e-mail address. Questions aren't normally answered by e-mail. Be aware that the content on Misplaced Pages is extensively copied to many websites; making your e-mail address public here may make it very public throughout the Internet.
  • Edit your question for more discussion. Click the link on right side of its header line. Please do not start multiple sections about the same topic.
  • Archived questions If you cannot find your question on the reference desks, please see the Archives.
  • Unanswered questions If you find that your question has been archived before being answered, you may copy your question from the Archives into a new section on the reference desk.
  • Do not request medical or legal advice.
    Ask a doctor or lawyer instead.
After reading the above, you may
ask a new question by clicking here.

Your question will be added at the bottom of the page.
How to answer a question
  • Be thorough. Please provide as much of the answer as you are able to.
  • Be concise, not terse. Please write in a clear and easily understood manner. Keep your answer within the scope of the question as stated.
  • Link to articles which may have further information relevant to the question.
  • Be polite to users, especially ones new to Misplaced Pages. A little fun is fine, but don't be rude.
  • The reference desk is not a soapbox. Please avoid debating about politics, religion, or other sensitive issues.


November 15

The phrase "quadratic in"

I am working through an example in a textbook and have reached the following equation:

y 2 2 y = x 3 + 2 x 2 + 2 x + 3 {\displaystyle y^{2}-2y=x^{3}+2x^{2}+2x+3}

The text then seeks to solve for y in terms of x, stating that this is a simple matter since the equation is "quadratic in y", and proceeds directly to:

y = 1 ± x 3 + 2 x 2 + 2 x + 4 {\displaystyle y=1\pm {\sqrt {x^{3}+2x^{2}+2x+4}}}

I am unfamiliar with the phrase "quadratic in y" and do not understand how the solution was obtained. Any advice would be appreciated.

--202.168.12.132 04:04, 15 November 2006 (UTC)

I am not sure myself but maybe this happened

y 2 2 y = x 3 + 2 x 2 + 2 x + 3 {\displaystyle y^{2}-2y=x^{3}+2x^{2}+2x+3}
add one to both sides to "complete the square"
y 2 2 y + 1 = x 3 + 2 x 2 + 2 x + 3 + 1 {\displaystyle y^{2}-2y+1=x^{3}+2x^{2}+2x+3+1}
( y 1 ) 2 = x 3 + 2 x 2 + 2 x + 4 {\displaystyle (y-1)^{2}=x^{3}+2x^{2}+2x+4}
( y 1 ) = ± x 3 + 2 x 2 + 2 x + 4 {\displaystyle (y-1)=\pm {\sqrt {x^{3}+2x^{2}+2x+4}}}
y = 1 ± x 3 + 2 x 2 + 2 x + 4 {\displaystyle y=1\pm {\sqrt {x^{3}+2x^{2}+2x+4}}}

152.3.72.50 04:20, 15 November 2006 (UTC)

"Quadratic in y" means "involving no powers of y greater than the second power y". The origin of this terminology is related to the origin of the phrase "y squared", since "quadratus" is Latin for "square". McKay 04:55, 15 November 2006 (UTC)

Many thanks. My confusion is obliterated. --202.168.12.132 05:02, 15 November 2006 (UTC)

(after edit conflict) 'Quadratic in y' means that if you treat every other symbol but y as a constant, you get a quadratic equation. In other words, all terms involving y are either (something).y or (something).y^2, and not (for example), y^5, 1/y, ln(y), sin(y) or e^y.

The solution given is the normal quadratic solution ( b ± b 2 4 a c ) / 2 a {\displaystyle (-b\pm {\sqrt {b^{2}-4ac}})/2a} with substitutions:

  • a = 1 {\displaystyle a=1}
  • b = 2 {\displaystyle b=-2}
  • c = ( x 3 + 2 x 2 + 2 x + 3 ) {\displaystyle c=-(x^{3}+2x^{2}+2x+3)}

--ColinFine 05:06, 15 November 2006 (UTC)

presenting our firm's finacial health before vanture capitalist

how to present financial health of the company in front of vanture capitalist to understanding them to invest in the company? what are the different tools to be used?

I don't think they would be as much concerned with the current financial health of the company as much as it's potential for growth. After all, even if you are in bankruptcy, they could fix that, if they see themselves making a nice profit by helping you out. You should, however, have a detailed budget of what you intend to do with the money they invest. StuRat 07:06, 15 November 2006 (UTC)
This is not really a mathematics question. Try Misplaced Pages:Reference desk/Miscellaneous. Think from their point of view: Why would they want to invest in your company? Basically you have to show that the expected profit is (much) larger than the money to be invested. What is your elevator pitch? One advice: if you are presenting in English, have your presentation checked for correct spelling and grammar.  --Lambiam 07:21, 15 November 2006 (UTC)
You will need to be able to explain clearly:
  1. How much you want the VC to invest
  2. What you will use the money for
  3. How much equity you are prepared to give the VC in exchange for their investment - be prepared to negotiate on this
  4. How long you will need this investment for - VCs are typically looking to invest for between 2 and 10 years
  5. How much you think the company will be worth at the end of this period - this is the hardest part, as you will need to show credible financial projections and demonstrate that you understand your market, your competition etc. The VC will try to talk down your valuation - this is a negotiating tactic to make a case for receiving more equity - so you need to have confidence in your projections. Gandalf61 08:32, 15 November 2006 (UTC)
The venture capitalist would almost certainly expect to see a business plan. I expect there are articles on financial ratios and discounted cash flow you should look at. If I was the VC, I would be mostly interested in what my rate of return on investment would be - so it would be good to be able to give a projected internal rate of return. In the UK, and probably in North America and other countries, there are government funded bodies that can give you advice about this. You could talk with your accountant about this, but they will probably charge you a lot of money. There are many books published about writing business plans, plus a lesser number about pitching to venture capitalists.
I've just had a look at the financial ratios article, and it could be improved. But any textbook on management accounting will cover financial ratios. If you can, I suggest a trip to a public library to see what books they have. Do not be afraid to tell the librarian what you want to do and ask their help.

Tetromino Game

Suppose there is a game where you have an 8x8 grid that can only be filled with tetrominoes and the game ends once no more tetrominoes can be placed on the grid. What is the maximum number of squares that could be unfilled by the end of a game? --Tuvwxyz (T) (C) 22:23, 15 November 2006 (UTC)

After a bit of playing I've got 20. But I wouldn't know how to prove this mathematically. ;) Vespine 00:21, 16 November 2006 (UTC)
Hmm, just as I thought I was getting a theory I jsut came up with 28... Vespine 00:33, 16 November 2006 (UTC)
I managed 24. I'm not sure much better could be done than 28, but I can't think of any way to prove any of this other than an exhaustive search. Wasn't Tetris proven to be NP-Hard not so long ago? - Rainwarrior 02:34, 16 November 2006 (UTC)

An equivalent formulation would be: What is the minimum number of tetrominoes required to fill the board such that no more tetrominoes can be placed?

This may have a nice graph theoretic equivalent as well - I'm not too sure what it would be, perhaps a matching problem on a graph which represents the grid, and finding a minimal subgraph with certain properties? I'd have to think this one through a little bit more...--ManicLogic 02:33, 16 November 2006 (UTC)

I still think my 28 solution is correct. SPOILER: The 8x8 is split up into four 4x4 groups which are symmetrical about the centre. The very middle is occupied by a 2x2 square block, with each 4x4 corner quadrant containing only two T sections arranged back to back and offset by one, such that the 3 units adjacent to the corner are vacant. I hope that's a clear enough description to recreate it. Vespine 03:54, 16 November 2006 (UTC)
Is this what you mean?
 . . t . . T . .
 . T t t T T t .
 T T t . . T t t
 . T . O O . t . 
 . t . O O . T . 
 t t T . . t T T 
 . t T T t t T . 
 . . T . . t . . 
Here is 'my' solution:
. I I I I . . .
. N N . . L L L
N N . J . L . .
T . . J I . O O
T T J J I . O O
T . . . I . T .
. T T T I T T .
. . T . . . T .
It's not as regular as yours, but gives the same result: 28. --CiaPan 16:59, 16 November 2006 (UTC)
Yes, that's what I came up with. Nice ASCII. :) Definitely still have no idea how to try to prove it! I started to think that 1/3 was the most that could be empty since the pieces of 2x3 area still fill only 2x2 area, leaving 2 units of area empty, but that's obviously wrong, it doesn't take into account leaving empty shapes into which tetrominos can’t fit, like the L shapes made of 3 units I've left in the corners, and the several 1x3 units you have in your pattern. Vespine 21:25, 16 November 2006 (UTC)
A thought... at most you can only have 3 connected empty spaces, and it would take at minimum 8 blocks to surround any 3 connected spaces. However, any boundary of blocks may be shared by two empty spaces, so perhaps this can be done with only four blocks per space. Thus, approximately 3/(3+4) of the space may be filled. With 64 blocks: 64*3/7 = 27. Additionally, the constraints put on the shapes of the tetrominoes (having to be vertically or horizontally connected) probably lowers this number (call it "estimated density of a maximally open solution" or something) a bit more, but the fact that the board has a closed edge counteracts it in the opposite way. This is light-years away from a proof, but maybe a reasonable explanation? - Rainwarrior 23:12, 16 November 2006 (UTC)
Maybe if I attacked the problem of how many open areas a square can touch. Either it's 0 (completely surrounded), 1 (a corner), 2 (a line), or 3 (an end). Since there are no tetrominoes of a single clock, there is no 4. It seems though, that you cannot introduce a 3 without indroducing a corresponding 1 elsewhere, which means that 2 is the best you can do on average, supporting my earlier idea. Hmm... Anyhow, I finally found my own 28:
. S S . . L . .
. . S S . L . S
L L L . L L S S
. . L O O . S .
. S . O O L . .
S S L L . L L L
S . L . S S . .
. . L . . S S .
(You can use an L or anything else really to fill the middle hole instead of the O). - Rainwarrior 01:01, 17 November 2006 (UTC)

I wrote a computer program to take a look at this, but I think it would take about a month for this computer to enumerate all of the cases (searching every configuration of 9 or less pieces, since we know the best solution to be not worse than 9 pieces). So... interestingly... an answer by exhaustion is possible. I just can't give it to you at the moment. It will take time. Ha ha ha. - Rainwarrior 02:30, 17 November 2006 (UTC)

Oh wait, I missed one of the factors in that calculation. Change "month" to "forever". Nevermind. - Rainwarrior 02:41, 17 November 2006 (UTC)


November 16

variance of the total sample

Dear Sir/Madam,

I have a question on how to find variance of the total sample. Suppose we have a sample of size N. It is divided into k sub-samples of size f(k), f(1)+f(2)+ ... f(k)=1. n(1)+n(2)+ ... +n(k) = N where n(k) is the number (size) of sub-sample k. Suppose we know the mean and variance of each sub-sample, m(k) and var(k). Question: How can I calculate the variance of the total sample?

I am studying performance of students of different groups (regions). I have only data on regional performances (regional aggregates, no individual data). I want to evaluate total mean and variance from regional data. I would greatly appreciate your help and suggestions on reference texts. Thank you very much for your help in advance.

Best wishes,

Koo Woong Park, Economics researcher

I'm not quite sure what the role of f(k) is; I guess f(k) = n(k)/N. It is not used below. In computing the sample size, two methods are common, one in which a sum of squares is divided by the sample size ((1/n)×SUM), and one in which that sum is divideed by the sample size minus 1 ((1/(n−1))×SUM). The second avoids a bias of the first which underestimates the population variance; see further Variance. In the following, I assume the simpler method has been used in computing var(k); otherwise, they must be multiplied by (n(k)−1)/n(k) first. Writing M and VAR for the mean and variance of the total sample, the formulas are then:
M = (1/N) × Σk n(k)m(k)
VAR = (1/N) × Σk (n(k)var(k) + (m(k) − M))
 --Lambiam 06:14, 16 November 2006 (UTC)

Map of closest points

Say I want to make a map showing cities, but also the area where that city is the closest.

Within a defined area (eg. a country) if you pick a random point, you can work out the closest city. Around city A, you could define a region A, where at any point in the region, city A will be closer than any other city. How do you calculate the boundaries of this region? I think that these regions will be polygons.

I have tried searching wikipedia and google for an algorithm to do this, but cannot seem to find any.

I am eventually hoping to write a java application that can display this, given coordinates of the points.

Thanks in advance, RobBrisbane 06:41, 16 November 2006 (UTC)

See Voronoi diagram.  --Lambiam 06:46, 16 November 2006 (UTC)
Thanks, while that article does not have an algorithm, knowing what it is called a Voronoi diagram will certainly help. I think i've worked out in my head an algorithm - will try it out. --RobBrisbane 07:18, 16 November 2006 (UTC)
I'm not sure what you expect in the article itself. Through the references and links you can find descriptions of algorithms, and also complete implementations. A robust implementation must handle issues common to many algorithms in computational geometry. Especially important is the role of precision and its effect on accuracy and consistency. We also have a modest practical concern for time and space efficiency. Èuk Roman provides a detailed explanation of one well-known algorithm, that of Steve Fortune. Brief descriptions of several algorithms, though with no concern for robustness, are also online, along with a great deal of other material found through the Voronoi.com web site. Note that some algorithms prefer to compute a Delaunay triangulation, which is then trivial to convert to a Voronoi diagram. (This fact gets but one sentence in our article, despite its importance.) --KSmrq 10:13, 16 November 2006 (UTC)
The basis for all algorithms I know of is to use Delaunay triangulation; for algorithms see there. See further the external links to the CGAL library, which is of high quality.  --Lambiam 10:03, 16 November 2006 (UTC)
Yes, CGAL is a valuable resource. It does have two important limitations: (1) It is an integrated package of routines, making it awkward to extract a small, targeted piece. (2) For some applications its dual-license scheme may pose a modest barrier. --KSmrq 10:20, 16 November 2006 (UTC)

Mathematical Problem

I have a mathematical problem ....

Find the domain & the range of the function :

f(x) = 2x^2+6x-7
Please state what part of the question you don't understand so we can help you. Fredrik Johansson 13:49, 16 November 2006 (UTC)
Never mind that; this question is entirely ill-posed. Stating a formula for a function does not in general restrict or specify its domain, and its range is certainly dependent on that unmade choice. I can imagine this as f : R R {\displaystyle f\colon \mathbb {R} \rightarrow \mathbb {R} } (real numbers), or f : C C {\displaystyle f\colon \mathbb {C} \rightarrow \mathbb {C} } (complex numbers), or even f : Z n Z n {\displaystyle f\colon \mathbb {Z} _{n}^{*}\rightarrow \mathbb {Z} _{n}^{*}} (multiplicative group of integers modulo n for any n {\displaystyle n} ). The domain and codomain could even both be Z + 1 2 {\displaystyle \mathbb {Z} +{\frac {1}{2}}} (the half-integers) or A {\displaystyle \mathbb {A} } (the algebraic numbers). The domain and codomain can be different, too, with f : Z 2 Z + 1 {\displaystyle f\colon \mathbb {Z} \rightarrow 2\mathbb {Z} +1} (the integers and the odd numbers). How is anyone supposed to learn math by working problems with no answer? (The actual content here is of course the links; perhaps the questioner will find useful information there.) --Tardis 16:47, 16 November 2006 (UTC)
The process of teaching maths - and much science for that matter - consists of telling half-truths and incomplete topics, which then get expanded, replaced, or even contradicted at a later level. To criticise a pedagogic question for being ill-formed relative to the whole of the subject is unreasonable. --ColinFine
Perhaps I was a bit too quick to judge; this question should presumably be interpreted in the recursion theory sense of the word "domain" for partial functions, with all functions at this level taken to be partial functions mapping the reals onto themselves. In that context (which is probably obvious, even if unspecified, to the student), the question certainly has a unique answer. I'll take leave of my soapbox now until some problem that is ill-posed due to thoughtlessness rather than reasonable circumscription arises. --Tardis 15:39, 17 November 2006 (UTC)
Have you read Domain and Range? —Preceding unsigned comment added by 129.162.1.42 (talkcontribs) 16:33, 16 November 2006

To get back to the actual question, there are many methods for solving this type of thing, depending on what you've already been taught. One of the simplest (but also somewhat time consuming) methods is the create a chart of values, then graph those values. I'll start you out:

x     f(x)
==    ====
-2    -11
-1    -11
 0     -7
+1     +1
+2    +13

Now, noticing that f(x) is the same (-11) when x = -1 or -2, this tells us the curve reaches a relative or absolute minimum or maximum in that area. Let's add x = -1.5 to the chart:

x     f(x)
==    ====
-2    -11
-1.5  -11.5
-1    -11
 0     -7
+1     +1
+2    +13

This type of quadratic graph is also symmetrical, so we can add a few more terms to the chart:

x     f(x)
==    ====
-5    +13
-4     +1
-3     -7
-2    -11
-1.5  -11.5
-1    -11
 0     -7
+1     +1
+2    +13

Now graph this chart. This should allow you to see the range and domain. StuRat 01:54, 17 November 2006 (UTC)

Assume we are working over the reals. First note that the highest term has an even power i.e. x, which will dominate the result for large numbers. If you have an odd power then the range will be the whole of R, but even powers will give ranges like if the coeff is negative. The local maxima and minima of the functions will occur when the first derivative is zero, so solve f'(x)=0 and evaluate f(x) at each point. All quadratics they can be written in the form f(x)=m(x-a)^2+n, so a bit of algebra will give a,m,n and the only min/max will occur at x=a. --Salix alba (talk) 09:44, 17 November 2006 (UTC)
I must agree with Tardis that, as presented here, the problem is ill-posed. However, we can make some educated guesses. A problem worded like this would not be seen in a sophisticated class, and this is most likely one of a number of homework problems. Perhaps another problem considers the function f(x) = (1+√x)/(2−x). Therefore we might reasonably assume subsets of the real numbers are sought, for both domain and range. In my example, we must exclude x values that are negative, as well as the isolated value 2; that could be taken to give us a domain. After finding the domain (the permissible inputs), we must explore the possible outputs. In general, this requires insight special to the function. In my example, we know that the square root will always give a non-negative value; and for x ≥ 0, we know that 2−x varies from 2 down to −∞. When x is exactly 0, the value of f(x) is exactly ⁄2. As x increases toward 2, the denominator approaches zero, overwhelms the numerator, and forces the function value toward +∞. We skip exactly 2, to avoid a divide by zero. Now as x increases toward +∞, the numerator remains positive but the denominator is always negative; therefore the function value goes from −∞ toward 0. We conclude that the range is all of the real line except the half-open interval [0,⁄2).
The actual given problem is somewhat simpler, but the general idea of partitions and trends applies. --KSmrq 09:48, 18 November 2006 (UTC)

watertesting a gas pipeline

My son needs to watertest a natural gas pipeline that is 5.25 inchs (ID) in diameter. How many gallons of water will it take per foot? thanks...Lyle Corder

email address removed to prevent spam
So, it's a cylinder? And you want the volume of each foot in gallons? So it's a cylinder that's a foot long? --Tardis 16:58, 16 November 2006 (UTC)
Find the area of a circle with a diameter of 5.25 inches (A = piR^2, where R = D/2). Then multiply that by a length of 12 inches to get the volume, in square inches, of one foot's length of pipe. Then convert that value to gallons (there are 231 cubic inches in a gallon). Post his work here for a check. StuRat 01:22, 17 November 2006 (UTC)
Is it sufficient to test a gas pipeline with water? Even if it is water-tight it could leak gas. Yet it seems to be done by professionals. Interesting.
Anyway, since we are given an inner diameter, we may assume a standard pipe with a circular cross section. We must also make another assumption, that the gallons are U.S. gallons, not imperial gallons (and not dry gallons). Then, by definition, a gallon is exactly 231 cubic inches. If we can calculate the volume of a foot of pipe in cubic inches, the rest is easy. That's what StuRat is walking through. To get cubic inches we must work entirely in inches, which is why we convert one foot to 12 inches. We can simplify the area calculation a little by writing A = ⁄4D, with ⁄4 approximately equal to 0.7854. By my reckoning, it should take more than 1 gallon and less than 5 gallons per foot. (We don't give full answers in case this is a homework question in disguise.) --KSmrq 10:29, 18 November 2006 (UTC)

Logic problem: Getting data from every computer onto every other computer efficiently

Hi all,

I'm faced with a problem that, were it written down (which it is now), I think would count as a reasonable logic puzzle.

I (will, on Monday) have data on 60 computers. The data do not overlap -- every computer has a different data file. I need to collect all data files and put them on all 60 computers. i.e. all 60 computers will need to have all 60 different data files on them.

The computers are not networked. The "simplest" way would be to use one CD-RW and go from computer to computer to burn all the data, and then go back to each computer and unload all the data. This, of course, requires sticking in a CD 120 times, and will take quite a while.

However, I have unlimited numbers of CD-RWs, and two or three other people to help me. I feel sure that there is some remarkably clever, more efficient way to do this. Can anyone think of a clever way?

Thanks for any thoughts!

--John

This is known as an all-to-all broadcast or all-gather in parallel computing. Unfortunately, no articles, but I do have a link to the MPI specification; perhaps further research will turn up clever implementations. However, I can say this: 2 n 1 = 119 {\displaystyle 2n-1=119} CD interactions is the best you can do, because each computer must both read data and write data, and every computer except one must be writing to a disc that doesn't have everything on it and thus another disc (or the same disc again) must be provided to finish reading. The algorithm you stated achieves this optimum, since the last computer you visit can read and burn at the same visit. So the only thing you can hope to achieve is to utilize your accomplices to parallelize the project. The best strategy that occurs to me is just to divide up the computers into m {\displaystyle m} (nearly) equal groups, one for each of your m {\displaystyle m} people. Then each of you go to each of your n / m {\displaystyle \sim n/m\!} computers and burn, then go to all n {\displaystyle n} computers and load. Again, the last computer you burn with can also read, so that's a total of n + m ( n 1 ) {\displaystyle n+m(n-1)} CD insertions; with m {\displaystyle m} people, it should take as long as one person doing n / m + n 1 {\displaystyle n/m+n-1} insertions, which is a speedup over the optimal serial algorithm of 2 n 1 n ( 1 + 1 / m ) 1 2 1 + 1 / m  for  n 1 {\displaystyle {\frac {2n-1}{n(1+1/m)-1}}\approx {\frac {2}{1+1/m}}{\mbox{ for }}n\gg 1} . So with 3 assistants you can only expect to get 2 4 / 3 = 150 % {\displaystyle {\frac {2}{4/3}}=150\%} improvement. Hope this helps, and have fun! --Tardis 17:18, 16 November 2006 (UTC)
Ok, I almost understand your parallel solution, though not quite. Here's a solution I've come up with -- is it more or less efficient than the one you are suggesting (or is it the exact same solution)? The three people take 20 computers each, and burn the data onto one CD each (three CDs total). We then load all 60 files onto one computer. We then burn all 60 files onto 3 CDs. We then go around and each load the data onto 20 computers each.
This would be the same number of total interactions, but would only take the time required for 40 interactions (20 load, 20 unload), (+/- 1 for the "base" computer?).
Is that the right solution? Thanks! --John
  1. Burn data on first pass: n {\displaystyle n} operations (parallel).
  2. Pick one of the final computers and load everything on it: a free copy from the disc already there and then m 1 {\displaystyle m-1} operations (serial).
  3. Burning new discs, reusing whichever is last in it: m 1 {\displaystyle m-1} operations (serial).
  4. Putting data on all other computers: n 1 {\displaystyle n-1} operations (parallel).
So your total cost is 2 n + 2 m 3 {\displaystyle 2n+2m-3} disc insertions (although perhaps burns should count as costly?), which is better than my n + m n 1 {\displaystyle n+mn-1} if n + 2 m 2 < n m {\displaystyle n+2m-2<nm} or 2 m 2 < n ( m 1 ) {\displaystyle 2m-2<n(m-1)} or 2 < n {\displaystyle 2<n} , which it certainly is. But you have serial operations; your total time is n m + 2 m 2 + n 1 m 2 ( n m + m 1 ) {\displaystyle \left\lceil {\frac {n}{m}}\right\rceil +2m-2+\left\lceil {\frac {n-1}{m}}\right\rceil \approx 2\left({\frac {n}{m}}+m-1\right)} , which is better than my n / m + n 1 {\displaystyle n/m+n-1} if n m + 2 m 1 < n {\displaystyle {\frac {n}{m}}+2m-1<n} or 2 m ( m 1 ) + 1 < n ( m 1 ) {\displaystyle 2m(m-1)+1<n(m-1)} , which it is for m n {\displaystyle m\ll n} . So that is better all around. --Tardis 18:29, 16 November 2006 (UTC)
(after edit conflict) Well, I would try this: pass a CD A through computers 1..30 to collect their data, while your friend does the same with disk B on comps 31..60. When you're finished, store files 1..30 from A on comp.30, and let him store files 31..60 on comp.60. Then you swap CDs, so you can update the B with files 1..30 from comp.30 (and comp.30 with files 31..60 from B disk), and your friend updates A with files 31..60 (and comp.60 with files 1..30 from A). Then you both walk back and fill remaining 29 of your respective 30 computers with 60 files. This way each of you sticks a disk 60 times, and each CD gets sticked 60 times, so you save approx. half of time.
For N people (N dividing 60) the process splits into three phases:
  1. each person collects data from 60/N computers on a disk,
  2. disks are circulated (N-1) times on N computers, to collect 60 files on N comps and N disks,
  3. disks walk back through 60/N-1 comps each.
Each person makes (and each disk undergoes) 2·60/N + N - 1 read/write operations, ie. N=4 people do the work in 33 steps. If N does not divide 60, some fractions add to the above estimation. --CiaPan 17:30, 16 November 2006 (UTC)
(Note my different notation; my m = N {\displaystyle m=N} .)
  1. Collecting: n {\displaystyle n} operations (parallel).
  2. Circulating and updating m {\displaystyle m} computers: m ( m 1 ) {\displaystyle m(m-1)} operations (parallel).
  3. Redistributing: n m {\displaystyle n-m} operations (parallel).
So the total cost here is 2 n + m ( m 2 ) {\displaystyle 2n+m(m-2)} disc insertions, which is certainly competitive for m n {\displaystyle m\ll n} . Since it's all parallel, the total time is just 2 n m + m 2 {\displaystyle 2\left\lceil {\frac {n}{m}}\right\rceil +m-2} , as you said (except that you forgot one of your 1 {\displaystyle -1} s), which is precisely m {\displaystyle m} time steps shorter than John's time whenever n m = n 1 m {\displaystyle \left\lceil {\frac {n}{m}}\right\rceil =\left\lceil {\frac {n-1}{m}}\right\rceil } (which is true for n = 60 {\displaystyle n=60} except at m { 1 , 59 , } {\displaystyle m\in \{1,59,\dots \}} ; at m = 1 {\displaystyle m=1} all these become the same algorithm). --Tardis 18:29, 16 November 2006 (UTC)
Conclusion: CiaPan's answer is always the best of these three for reasonable m {\displaystyle m} , although oddly enough for m > 3 {\displaystyle m>3} its total amount of work is larger than John's; it just parallelizes better. (At m { 1 , 3 } {\displaystyle m\in \{1,3\}} the amount of work is the same, and at m = 2 {\displaystyle m=2} it's better because of the extreme efficiency of 1 swap.) My answer is horrible: it's best (in terms of time) only for m > n {\displaystyle m>n} , and better than John's semi-serial algorithm for m > n / 2 {\displaystyle m>n/2} . It's better (in terms of work) than CiaPan's handshaking algorithm only for m > n {\displaystyle m>n} , and it's the best in work only for m = 0 {\displaystyle m=0} , where the math breaks down! --Tardis 18:29, 16 November 2006 (UTC)


There is another factor which we all missed – it's the read/write time. We count the number of operations only, assuming the work is split among people and does not parallelize any further. But that's wrong, this way we simplify the problem. In the real situation one can handle several read/write operations on different computers at (almost) the same time: put a disk into a drive, start the read/write program and, while the operation in progress, go to another computer to start R/W on it, and so on.
Assuming that you can run k R/W actions before the first one completes, you perform k+1 actions in less than twice the single action's time, thus reducing the total time almost by factor ~ (k + 1)/2. The actual gain depends on the ratio of the disk and software handling time to the actual R/W time. And also on the distance you must walk from one computer to the next one. :)
Things get even more complicated when we realize that R/W's take a variable amount of time – appending one file to a CD in the first phase is shorter than appending 10 or 30 files in phase 2, and burning generally needn't be same fast as reading in phase 3...  --CiaPan 19:13, 16 November 2006 (UTC)
Thanks so much for all the answers! It's going to take a little time to digest... As for CiaPan's last comment, indeed this is true, and is a gain I used to good effect today when putting the initial program on all 100 computers myself. With three CDs and good timing, I managed to almost always have 2 drives spinning while I was loading the third.
Thanks a lot! --John
(feel free to keep hashing out the finer math points, if you like)

You said that they are "not networked together", but do they all have Internet access ? If so, this may provide a way to pass files directly between them (via FTP, for example). StuRat 01:13, 17 November 2006 (UTC)


One more approach, may be a bit crazy. Force parallelizing as far as you can, and you get a logarithmic algorithm...

  • For two computers you need two CD's: insert them into drives, burn, swap, read — done.
  • For four computers take four disks: write simultaneously one file on each, swap disks in computer pairs (1,2) and (3,4), next swap disk pairs, so that comp.1 and 2 get files from 3 and 4, and comps. 3 and 4 get files 1 and 2. This way after two swaps you spreaded 4 files among 4 computers.
  • In the next step swap four disks from computers 1..4 with (similarly prepared) four disks from 5..8, and so on — after S swaps you get 2 computers updated with 2 files.

That works fine as long as we have the power of 2 computers. For the given case of 60 computers you'll have to add 4 virtual computers. These are just placeholders on the last table, where you put additional 4 CDs.
The whole routine consists of 7 steps or phases:

  1. Put 60 disks into drives and write one file on each (4 spare disks get 'written' no files).
  2. Swap every pair of disks (disk n and n+1 for every odd n). Disks 61..64 don't need swapping ;) On each comp append that comp's file to a CD, and copy file from CD to local HD. Now you have 2 files on each comp and each CD.
  3. Swap pairs of disks in every four (i.e. swap (1,2) with (3,4), (5,6) with (7,8), ... (57,58) with (59,60)). Disks 60..64 don't need swapping. Add 2 files from each HD to CD, and copy 2 files from CD to HD. Now you have 4 files on each disk.
  4. Swap fours of CDs in eights. This is the first step involving four spare disks — CDs 57..60 go to the desk, CDs 61..64 get loaded into computers 57..60. Again copy all four files from each CD to HD and append new four files from HD to CD. Now every CD contains 8 files (except CDs 57..64 which contain 4 real files no 57..60 and 4 ghost files 61..64).

...and so on, until in step 7 you swap disks 1..32 with 33..64 and copy 32 files from each CD 1..28 onto HD 33..60, and 28 files from each CD 33..64 onto HD 1..32. Done! This step contains a CD–to–HD copying only.

The whole process would take only 7 = log 2 60 + 1 {\displaystyle 7=\lceil \log _{2}60\rceil +1} steps, however each step consists of loading, reading, burning, ejecting and swapping of sixty CDs. That totals to as much as 7×60=420 load-copy-burn-eject sequences. If you can hire 8 people for CD juggling, this method offers you a huge saving of the total process time (only 7 parallel phases!) On the other hand, if you try to do it yourself alone, it would take you much longer than simple algorithms discussed above—the whole gain achieved on parallel R/W would be lost on sequential load-run-eject actions. --CiaPan 03:30, 17 November 2006 (UTC)


November 17

Transportation problem

It is surprising to see that there is no wiki for such a famous problem. Could some one please create one? "Assignment problem" also needs cleanup. I need to study these problems, not at a detail level which would ofcourse require a text book. A wiki with usual depth will suffice.

Thanks and regards,

Did you have a look at Transportation theory? Welcome to Misplaced Pages, the 💕 that anyone can edit. If you can improve Assignment problem, you're welcome to do so.  --Lambiam 10:11, 17 November 2006 (UTC)
The article on Transportation Theory doesn't even consider an algorithm to solve the Transportation Problem, whereby goods are to be sent from several sources to several destinations at minimal total cost. A common one is to use Vogel's Method to get a good initial solution, then improve this by successively replacing one route in use by another not in use. The process is similar in concept to the basic iteration done in the Simplex Method for general linear programming, but done within a table whose rows and columns represent sources and destinations, and whose cell values are the flow along that particular route.
In fact, the article seems to be ludicrously abstract and essentially useless in its present form.81.151.247.61 21:07, 19 November 2006 (UTC)

US - Imperial measurements

How come fluid ounces are different in US customary measurements to those in the Imperial System, when both are based on the density of water? Both measurement systems use the same ounce, and the density of water is pretty much the same globally, ignoring slight changes due to temp/pressure. Laïka 10:05, 17 November 2006 (UTC)

I would guess it's salt fresh water versus ocean water, which have different densities. StuRat 10:34, 17 November 2006 (UTC)
I guess you meant fresh water vs. ocean water. :-) CiaPan 11:29, 17 November 2006 (UTC)
No; even if one was sea water, the measures are still out. They would be closer for brine, but brine seems like a slightly odd choice, given that pure water would be more practical. Laïka 16:19, 17 November 2006 (UTC)
Who said practicality had anything to do with imperial/customary units? Let's not forget the ugly Fahrenheit scale that use some bizzare value of uncertain origin as it's 0 point Nil Einne 17:31, 20 November 2006 (UTC)

Actually, while the Imperial fluid ounce was based on the density of water (at 16.7 °C), the US fl.oz is derived from the US gallon, which is a volume measurement defined as 231 cubic inches. Thus the Imperial gallon and US gallon have entirely distinct operational definitions. (Well, not any more, now that both are defined in terms of SI, but they used to.) EdC 00:06, 18 November 2006 (UTC)

This begs the question of when and why the two countries went their separate ways. The article on gallon offers some background. --KSmrq 10:40, 18 November 2006 (UTC)


November 18

Implicit differentiation

Hello. I don't understand how to differentiate equations like y = s i n ( x + y ) {\displaystyle y=sin(x+y)} for y where y is also part of another function. Could somebody walk me through the steps of this example or a similar one?--El aprendelenguas 23:17, 18 November 2006 (UTC)

Not sure about in general but in this case:
y=sin(x+y) so arcsin (y) = x+y, then x= arcsin (y) - y.
dx/dy can be easily found and by extension dy/dx .
dx/dy = 1/sqrt(1-y*y) - 1 = / sqrt (1-y*y)
dy/dx = sqrt (1-y*y) / (1-sqrt(1-y*y))
In this case I've simply rearranged so that x and y are separate - give another example if you wish..
Probably not what you where asking for? Need more explanation etc or is that ok? —The preceding unsigned comment was added by 87.102.9.39 (talkcontribs) 00:18, November 19, 2006 (UTC).
In the above "sqrt(1−y)" needs to be replaced by "± sqrt(1−y)", since x = sin Z has other solutions than Z = arcsin x, such as Z = π − arcsin x.  --Lambiam 00:42, 19 November 2006 (UTC)
Here is another way:
y = sin(x+y), so (d/dx)y = (d/dx)sin(x+y).
Using the chain rule, this gives:
y' = (1+y')cos(x+y).
The trigonometric function can be eliminated with the identity cos α + sin α = 1:
y' = ±(1+y')sqrt(1−y),
from which you can retrieve the earlier solution by solving for y'. The sign can flip only when |y| = 1, and this differential equation has more solutions (for example, the constant function y = 1) than the original equation. The whole thing is a bit tricky, since you can see when you graph the function that y' → ∞ as x → 0.  --Lambiam 01:07, 19 November 2006 (UTC)
Taking derivative means to find the rate of change AT A GIVEN POINT (a,b) satisfying b = s i n ( a + b ) {\displaystyle b=sin(a+b)} . Why y = c o s ( a + b ) / [ 1 c o s ( a + b ) ] {\displaystyle y'=cos(a+b)/} is NOT an acceptable answer? Twma 08:09, 19 November 2006 (UTC)
Is it because any values of a and b can be used regardless of whether those values satisfy the original equation? (bit confused, feels like I am back at school ??) —The preceding unsigned comment was added by 83.100.138.99 (talkcontribs) 17:14, November 19, 2006 (UTC).
To me it is, except I used x and y instead of your a and b. Then your answer is essentially equivalent to my y' = (1+y')cos(x+y). I added the next steps to relate this to 87.102.9.39's answer.  --Lambiam 18:45, 19 November 2006 (UTC)
Since we have an implicit equation, it may be of interest to take a different approach. We are looking at the zero set of the function f(x,y) = y−sin(x+y). A normal to such a curve at a point can be found as the gradient of f, which is the vector ∇f(x,y) = (−cos(x+y),1−cos(x+y)). Rotating the normal clockwise 90° gives a vector tangent to the curve, in this case (1−cos(x+y),cos(x+y)). The slope of this is the derivative of y with respect to x, namely ⁄1−cos(x+y). For example, at (0,0) the curve is vertical (y′ = +∞); at (⁄2−1,1) it is horizontal (y′ = 0); and at (π,0) it tilts downward (y′ = −⁄2). This approach seems both simpler and more flexible.
However, I wonder if the question was really meant to be about how to solve a differential equation, y′ = sin(x+y). --KSmrq 09:42, 19 November 2006 (UTC)

I can't make sense of what users "Lambian" and "KSmrq" have done here - can anyone confirm that their maths makes no sense (or otherwise)? (Please read original question) —The preceding unsigned comment was added by 83.100.138.99 (talkcontribs) 12:47, November 19, 2006 (UTC.

Makes sense to me. If you want to find dy/dx for the curve defined by the equation y=sin(x+y) then implicit differentiation gives you dy/dx=cos(x+y)/(1-cos(x+y)) and a little more work gives you dy/dx as a function of y alone, if you want it in that form. Try sketching the curve to see what is happening - probably easiest to use the inverse formula x=arcsin(y)-y, and take values of y from -1 to 1. Gandalf61 13:09, 19 November 2006 (UTC)
Lambian is basically just differentiation both sides of the equation wrt x. When you find an x, you just get dx/dx = 1, when you find a y just replace it by y'=dy/dx, the rest follows from the standard rules of differentiation, in particular the chain rule. This is a purely formal process, applying standard rules, so don't worry too much about the implications. In this example a lot of the complication comes from the particular example chosen, which takes some algebra to turn the formal solution y'=(1+y') cos(x+y) into a solution involving just y'. You may find it easier to consider a simpler equation say y=x. --Salix alba (talk) 13:35, 19 November 2006 (UTC)
Assuming you're the original questioner, can you say something about your background knowledge? For example, do you know and understand the chain rule? Have you read the article on implicit functions? Can you point out where it is you get stuck when trying to understand it?  --Lambiam 15:56, 19 November 2006 (UTC)
It was me who said "I can't make sense of..." - I couldn't understand what you two were doing - I added the first reply - gandalf and salix alba explained what you were up to and now it makes a bit more sense.. (No idea what happened to the original question asker)
Say if I needed to differentiate x^3+x^2+2=y^7+y+4 I would use : z=x^3+x^2+2 and find dz/dx and dz/dy. dy/dx is given by (dz/dx)/(dz/dy) That's (effectivly) the same method as you used, yes? —The preceding unsigned comment was added by 83.100.138.99 (talkcontribs) 16:26, November 19, 2006 (UTC).
Yes, if you use z=y^7+y+4 to find dz/dy, but note that this only works if you can separate the variables as in f(x)=g(y). For a case like sin(x − sin y) = cos(y + cos x) you need a more general method.  --Lambiam 18:11, 19 November 2006 (UTC)
Yes, i get (1-cos y*dy/dx)cos(x-siny)=-(dy/dx-sinx)sin(y+cosx) then rearranging..is this right? —The preceding unsigned comment was added by 83.100.138.99 (talkcontribs) 18:24, November 19, 2006 (UTC).
Looks right to me. If you read Implicit function (and understand partial derivatives), you can see how to do this so that you don't need the tedious rearranging (assuming the purpose is to bring dy/dx out). By the way, please sign your contributions using 4 tildes like this: ~~~~. Thank you.  --Lambiam 18:55, 19 November 2006 (UTC)
Seem like just using the chain rule - I probably was taught this at some point but forgot it because I never needed to use it. Thanks for bringing it up. Who knows maybe one day I will actually really use it. Thanks.83.100.138.99 19:01, 19 November 2006 (UTC)
My answer is correct; feel free to test its results against any answer you trust more. Does it make sense to you; can you understand it? That's a different question! I apologize if it is not clear to a general reader; I was trying to briefly support Twma's hypothesis.
I'll walk slowly through the example of 83.100.138.99, then through the more challenging example of Lambiam, and try to show the idea more clearly.
We are given the equation x+x+2 = y+y+4. Consider all pairs of real numbers, (x,y); some will satisfy this equation, but most will not. Those that do satisfy it trace out a curve in the plane. In general that curve may not have a single intersection with a given vertical line. We need that to define y as a function of x. (Consider x = 1−y, which is a circle.)
The pivotal step is to transform the problem. First, change the original equation to
x 3 + x 2 + 2 y 7 y 4 = 0. {\displaystyle x^{3}+x^{2}+2-y^{7}-y-4=0.\,\!}
We have merely subtracted the right-hand side from the left-hand side. Any (x,y) pair that satisfied the original equation will satisfy this one. Now define a function of two variables,
f ( x , y ) = x 3 + x 2 + 2 y 7 y 4. {\displaystyle f(x,y)=x^{3}+x^{2}+2-y^{7}-y-4.\,\!}
The solutions of the original equations are the same as the solutions of f(x,y) = 0. Now think of f as describing the height of a surface above a given point of the plane, z = f(x,y). The surface can have hills and valleys and ridges and so on, but only one height at each (x,y) position. If we consider z = 0 to be "sea level", positive heights will be dry (above water) and negative heights will be wet (below water). Our solution curve is the shore line. Through any given point on that curve we wish to find the line best matching the shore there.
The gradient of f is the vector whose first component is the derivative of f with respect to x, and whose second component is the derivative of f with respect to y, ∇f = (⁄x,⁄y). As discussed in our article, that vector points straight in the "uphill" direction. Consequently, the gradient ∇f is perpendicular to the curve, and so perpendicular to the shoreline, at the given point. We may thus rotate the gradient 90° to get a vector pointing along the shore (a tangent vector).
Applied to our current example, we find
f = [ f / x f / y ] = [ 3 x 2 + 2 x 7 y 6 1 ] . {\displaystyle \nabla f={\begin{bmatrix}\partial f/\partial x\\\partial f/\partial y\end{bmatrix}}={\begin{bmatrix}3x^{2}+2x\\-7y^{6}-1\end{bmatrix}}.}
Rotating this 90° gives the vector
[ 7 y 6 + 1 3 x 2 + 2 x ] . {\displaystyle {\begin{bmatrix}7y^{6}+1\\3x^{2}+2x\end{bmatrix}}.}
Our original quest to find the derivative is now fulfilled by taking the ratio of the second component (y) to the first (x),
d y d x = 3 x 2 + 2 x 7 y 6 + 1 . {\displaystyle {\frac {dy}{dx}}={\frac {3x^{2}+2x}{7y^{6}+1}}.}
This only makes sense at a point on the curve, but it works even if y is not single-valued in terms of x. (For example, the circle mentioned above gives f(x,y) = x+y−1; its gradient is (2x,2y); a tangent is (−2y,2x); and the derivative is −x/y.) It necessarily fails at any point where a curve intersects itself or abruptly changes direction; at such a point the derivative we seek does not exist.
Is it clear why we can find the derivative from the tangent? If not, ask.
Now let's try Lambiam's example, sin(x−sin y) = cos(y+cos x). Our implicit function will be
f ( x , y ) = sin ( x sin y ) cos ( y + cos x ) . {\displaystyle f(x,y)=\sin(x-\sin y)-\cos(y+\cos x).\,\!}
Its gradient is
f = [ cos ( x sin y ) sin ( x ) sin ( y + cos x ) sin ( y + cos x ) cos ( y ) cos ( x sin y ) ] . {\displaystyle \nabla f={\begin{bmatrix}\cos(x-\sin y)-\sin(x)\sin(y+\cos x)\\\sin(y+\cos x)-\cos(y)\cos(x-\sin y)\end{bmatrix}}.}
And the derivative of y with respect to x at a point (x,y) is
cos ( x sin y ) sin ( x ) sin ( y + cos x ) sin ( y + cos x ) cos ( y ) cos ( x sin y ) . {\displaystyle -{\frac {\cos(x-\sin y)-\sin(x)\sin(y+\cos x)}{\sin(y+\cos x)-\cos(y)\cos(x-\sin y)}}.}
We are never required to solve for y as a function of x, nor for x as a function of y. So long as we have a point (x,y) that satisfies the equation, we can substitute its coordinates in the formula to get the derivative there. For example, we can easily verify that Lambiam's equation is satisfied by (0,⁄2), with derivative −1, and also by (0,−⁄2), with derivative +1. Similarly, we can see that (1,0) satisfies our first equation, with derivative 5. --KSmrq 06:47, 20 November 2006 (UTC)

Thank you to everyone who contributed!--El aprendelenguas 01:18, 20 November 2006 (UTC)


November 19

Mathematical modelling problem

I am a landlord. I am interested in buying a house near a large organisation to rent out to that organisations personnel.

The most important number for me to try to estimate, is the likely time that the house I buy will stay empty before it is let to someone. If it is going to be too long a time, then it is not worth investing.

I have some statistics, and I would like to know if I have sufficient information to estimate this number. There are 360 households who rent houses in the surrounding area. Each household stays in the area for four years before moving on. There is a list of 40 vacant houses that new personnel coming in can choose from.

It is easy to see that there will be 360/4 = 90 new households arriving in the area every year and looking for something to rent.

But is it possible to estimate the average time that a vacant house will take to let please? There may be a simple solution that I am not quite seeing, or it may be more complex and require assumptions about the relevant probability distributions.

Would the answer in fact be 40/90 years, or slightly over five months, or have I got this wrong please?

I arrive at the same result, under the assumption that every house is rented out at least every now and then. My reasoning goes as follows: There are 360+40 = 400 houses for 360 households, so the occupancy rate is 90% and the vacancy rate is 10%. Per "turn" between one household moving in and the next, the average occupancy time is 4 years, which accounts for 90%. The vacancy time, which accounts for the remaining 10% = 10/90th of 90%, is therefore 10/90 × 4 years = 5+ months. Of course, there is no guarantee that any particular single house will see a rate anywhere near the average.  --Lambiam 16:15, November 19, 2006 (UTC)
It seems to me that the expected time of initial vacancy would be half that, since we don't know where in the ideal 4/9 year of vacancy we are when we start (though obviously we know we're in it as no one's living there!). --Tardis 17:39, 20 November 2006 (UTC)

I don't think this type of estimation will be very accurate, as it doesn't include whether the housing you are considering is preferable to others. Instead, I suggest you demand rental records from the current owners, to know exactly what portion of the time they were able to rent it out. (Don't trust them, demand to see the records.) StuRat 07:36, 20 November 2006 (UTC)

While I agree this would be useful, one disadvantage would be your assuming the housing environment in that area hasn't changed. In reality, this is unlikely to be the case. The question is, how has it changed and by how much? Nil Einne 17:27, 20 November 2006 (UTC)

Quartic equation

for a quadratic x^2+ax+b=0 a solution(s) is found using the substitution x=y-a/2

for a cubic x^3+ax^2+bx+c=0 solutions are found using the substitution x=y-a/3 and then y=z-a'/3z (a' is a new coefficient found in the equation in terms of y)

as I'm sure you will be aware.

My question is:

Can a quartic (x^4+ax^3+bx^2+cx+d=0) be solved by substuting x=y-a/4, then y=z-a'/4z followed by a further substitution of q = fn(z) {as yet unknown to me?} It seems likely that a cubic involving (q^4) terms would be formed just as the solution to the cubic involves a quadratic involving (z^3) terms. If so what is the substitution.. If not can anyone explain why this pattern breaks down. Thank you83.100.138.99 18:45, 19 November 2006 (UTC)

What is a'? If it is the coefficient of z^3, then a' = 0. If it is the coefficient of z^2, what good does this do? Did you study Ferrari's method (see Quartic equation)?  --Lambiam 19:03, 19 November 2006 (UTC)
As per Cubic_equation#Cardano.27s_method then a' would be p in the depressed cubic(in the wiki page it is expressed in terms of t not y. In the quartic I assumed it would be α in the depressed quartic (as shown in ferrari's method - the wikipedia page)
Well, then just do your substitution u = z − α/4 on that depressed quartic and you'll see an undepressed quartic, setting you back.  --Lambiam 20:47, 19 November 2006 (UTC)
(For Lambian):The second substitution was u=z-(α/4z) not u=z−(α/4) (don't know if that was a typo) Does that make it any clearer as to what I am trying to find out here?
but I was asking about a third substitution q=fn(z) to give a solution - does anyone know what that substitution is (or of a pattern?)
I read too quickly, but still don't see how this brings you any further. Applying the substitution u := z−(α/4z) to u + αu + βu + γ results in Q/(4z), where
Q = 256z + 256βz + (−32α+256γ)z − 64αβz + α.
This is much messier than what we started out with and does not look promising in any way. Did you actually do the substitution yourself?  --Lambiam 05:08, 21 November 2006 (UTC)
Yes I've tried this sub. and knew it didn't make the equation look any better. (I haven't checked to see if you've done it right - assumed you have). However reading my first comment you will notice I was looking for a third substittion that would convert this in to a cubic in powers of 4 eg x^12+ax^8+bx^4+c. (which can the be solved by the cubic method) I was hoping that someone would be aware of a method like this. Please don't trouble yourself too much if you don't want to.
Clearly there's a pattern in the first substitution that works for quadratic and cubics, my guess that the second substitution would follow that pattern was just that - a guess. It's possible that if this method works the second substitution for the quartic will be related to the second substitution for the cubic (but possibly not in the simplistic way I've listed here). Getting the third substitution seem fairly impossible to me.. But I hoped such a method might exist - I'm still hoping that.87.102.16.174 17:38, 21 November 2006 (UTC)

November 20

WP Math desk

I am so glad that there is a math desk for you folks. At first I was resisting this specialized place and thought that it would be just fine for these questions to be deliberated at /Science. How wrong I was, this desk has been an inspiration to me by the quality and depth of the questions, responses and argument here. I don't understand a lot of it but love it all the same and you have provided links into areas that I may never have known about but for this desk. Thanks y'all for a very informative and interesting place. --hydnjo talk 03:52, 20 November 2006 (UTC)

The Science Reference Desk is busy enough, thanks. :P x42bn6 Talk 20:23, 20 November 2006 (UTC)

A lousy attempt..

i = sqrt(-1)

==> i^2 = -1

==> i^2 + 1 = 0 (quadratic, b=0, a=1,c=1)

==> i = 0 +/- sqrt(- (4 x 1 x 1))/2 (quadratic rule)

==> i = (0 +/- sqrt(-4))/2 (quadratic rule)

==> i = /2 (quadratic rule)

.:. sqrt(-1) = /2 (final result)

What's wrong with this proof?

--138.217.32.78 07:00, 20 November 2006 (UTC)

The i is not a variable, it is a number, like 1 is. So your proof looks a bit like this:
Let the Roman numeral I stand for 1. Then:
I = sqrt(1)
⇒  I^2 = 1
⇒  I^2 − 1 = 0 (quadratic, b=0, a=1,c=−1)
⇒  I = 0 ± sqrt(− (4 x 1 x −1))/2 (quadratic rule)
⇒  I = (0 ± sqrt(4))/2 (quadratic rule)
⇒  I = /2 (quadratic rule)
∴  sqrt(1) = /2 (final result)
If you read ± here as indicating two possible choices, not all of which need to apply, then there is not much wrong with this. In general, sqrt(x) = sqrt(4x)/2, also when x = −1. Since x = (−x), by squaring you introduce a second possibility to be considered in solving for x, in case x is an unknown variable. In general the solution set of a quadratic equation may have two different solutions. In your proof (and my mimic of it), however, x is not an unknown variable, and only one of the two "formal solutions" can be right. In this case, it is the one where ± is +.  --Lambiam 07:57, 20 November 2006 (UTC)

I couldn't see much wrong with it - the final result sqrt(-1)=/2 equals +/- i as expected? I think this was supposed to be a trick questiom??? Though I don't understand your 'quadratic rule' if ax^2+bx+c=0 then x=b/2a +/- sqrt (b^2/4a^2 - c/a) in this case giving i=+/- sqrt(-1).... So where on earth does the 4 in "sqrt(- (4 x 1 x 1))/2" come from? (apologies if I am having a stupid day) Sorry ignore that . Not thinking.

If I was being critical I would say the problem with the proof is that it's not a proof - just a few lines of algebra that starts and ends in the same place - what does it prove - nothing. Therefore - not a proof. —The preceding unsigned comments were added by 83.100.250.33 (talkcontribs) 13:10 – 13:37, November 20, 2006 (UTC).

Direct proportionalities involving area, volume, and mass

Dear Wikipedians,

I am studying some basic physics. I am at a point in my book that deals with scaling--that is, how volume increases exponentially with length and area. This is the part I'm having trouble understanding: it says that since

A L 2 {\displaystyle A\propto L^{2}}

and

M L 3 {\displaystyle M\propto L^{3}}

then

A M 2 / 3 {\displaystyle A\propto M^{2/3}}

where A is the surface area of a three dimensional object, M is its mass (assuming that density and shape remain constant), and L is the length of any linear dimension. I believe them, but I want to see why this is true, and I can't figure out how it follows. I do not know calculus--will it be required to solve this sort of problem? Thanks. 69.223.189.14 16:52, 20 November 2006 (UTC)

How general do you want the explanation to be? For a specific example, take eight cubes and assemble them into a single cube. Observe that:
  • The big cube has the same number of edges as the little ones, but each edge is twice as long.
  • The big cube has the same number of sides as the little ones, but each side has four (=2) times the area.
  • The big cube weighs eight (=2) times as much as the little ones.
Ilmari Karonen (talk) 17:08, 20 November 2006 (UTC)
Basically, I want to know how you can work these kinds of direct proportions on paper. I can't figure out how they're getting to A M 2 / 3 {\displaystyle A\propto M^{2/3}} .69.223.189.14 17:29, 20 November 2006 (UTC)
Method one: cube both sides of the A proportionality and square both sides of the M proportionality:
A 3 L 6 M 2 {\displaystyle A^{3}\propto L^{6}\propto M^{2}}
then take cube roots to get to your eventual solution.
Method two: take logs of both sides
log A = 2 log L + c 1 {\displaystyle \log A=2\log L+c_{1}}
log M = 3 log L + c 2 {\displaystyle \log M=3\log L+c_{2}}
then solve the simultaneous linear equations and exponentiate the results.
David Eppstein 18:39, 20 November 2006 (UTC)
The conclusion follows from the two stated proportions by simple algebra. In the proportions, let the constants of proportionality be κ and λ, so we have
A = κ L 2 {\displaystyle A=\kappa L^{2}\,\!}
and
M = λ L 3 . {\displaystyle M=\lambda L^{3}.\,\!}
From the second equation we deduce
L = ( M / λ ) 1 / 3 . {\displaystyle L=(M/\lambda )^{1/3}.\,\!}
Substituting in the first equation gives
A = κ ( ( M / λ ) 1 / 3 ) 2 , {\displaystyle A=\kappa ((M/\lambda )^{1/3})^{2},\,\!}
which simplifies to
A = μ M 2 / 3 , {\displaystyle A=\mu M^{2/3},\,\!}
where μ equals κ/(λ). This is the desired proportionality. --KSmrq 23:07, 20 November 2006 (UTC)
All right, thank you all for your time. I understand now. Somehow that just wasn't clicking for me. 71.144.12.115 23:28, 20 November 2006 (UTC)

Resistance to probabilities

I don't know whether to ask this on the maths or humanities section but here goes... Given the amount of resistance there appears to be to the basic 0.999... concept, how much resistance do you think there is to basic probabilities concepts? For example, if you I were to say your chance of winning the lottery with the numbers 1,2,3,4,5,6 is the same as if with 3,9,19,25,31,40. I would suspect this would surprise a lot of people (sadly enough) but I wonder how many will actively resist the idea and try to disprove it (like with 0.999...). What do you think? Nil Einne 17:15, 20 November 2006 (UTC)

Have you seen Talk:Monty Hall problem? Good times. Melchoir 19:36, 20 November 2006 (UTC)
O why me.
The player has three choices (he doesn't know)
The games master removes one choice (he knows) leaving 2, the player has 2 choices.
The player still has 2 choices - the gold is behind one of those two doors.
Should he switch? it's 50/50. toss a coin.
Good luck Melchior and Nil Einne and happy xmas. 83.100.174.103 20:00, 20 November 2006 (UTC)
If the argument is dumbed down enough, you can quite easily convince people. The one above can be fairly quickly disproved by multiplying probabilities. x42bn6 Talk 20:22, 20 November 2006 (UTC)
So are you saying the probability of the gold being behind one of the two remaining doors is not 1/2 ?83.100.174.103 20:26, 20 November 2006 (UTC)
Good examples : people have every information under their nose and stick to propaganda. Stupid things repeated unrelentlessly. Good luck! -- DLL 21:05, 20 November 2006 (UTC)
Thank you, you saved my life.83.100.253.24 21:08, 20 November 2006 (UTC)
What I've observed — remembering my own misconceptions as a child — is that clumping seems to be hard to understand. For instance, 20 heads in a row on a fair coin sounds a lot less likely than the "appropriately random" HTTHHHTHHTHHTTHTHTHH. This may be related to the true statement that precisely 1000 heads in 2000 tosses is quite unlikely: randomness gets confused with disorder in cases like these, as 1014/986 seems less orderly than 1000/1000 and thus more random and thus more likely/believable. Similarly, in a repeated random (fair) shell game it seems better to consistently pick one shell ("It has to come up this shell eventually!") rather than to change shells, which feels like opening oneself up to foolishly "dodging" the moving correct shell. Of course, it goes the other way, too: in paper rock scissors, a strategy of RRRRRRRR... (that is, hoping for an opposing S sometime) seems really bad. This is ironic because, in terms of randomness, it's entirely equivalent to the consistent shell game strategy; perhaps the difference arises because our opponents in PRS are typically not random and would quickly take advantage of so predictable a strategy. --Tardis 00:11, 21 November 2006 (UTC)
Clumping is hard to accept. (I've done some model simulation, both by hand and computer; and I've had to work with my own misconceptions a bit. The misconceptions are also reportedly rather common by roulette gamblers, as described by Darrell Huff.) My personal guess is that this is related to a biase in the selective forces on the human mind, as to understanding chance versus recognising patterns. Pre-humans and young humanity had great use of recognising patterna, less so of understanding that some incidents may happen almost simultaneously by pure chance. (My favourite example: Recognising that birds flying low in the evening is positively correlated to bad wheather next morning could be of great use, although the scientific explanation of the phenomenon still was rather far away.) Hence, we search a system as soon as there is clumping - and conversely, when we don't expect sytems, then we don't expect incidents of similar kinds grouping together. End of quasi-psychology:-)
Having any opinion on it, resisting or accepting, seems like a bad idea until you have gotten that recurring decimal thing defined to you. So, what does 0. 9 ¯ {\displaystyle 0.{\bar {9}}} really mean? Just saying that the decimal repeats endlessly sounds awfully vague. I want a proper definition. Is it the limit of 0.9 , 0.99 , 0.999 , {\displaystyle 0.9,0.99,0.999,\ldots } , perhaps? —Bromskloss 10:32, 21 November 2006 (UTC)
I linked you, just in case you were really asking the question rather than merely suggesting that it should be understood. --Tardis 17:23, 21 November 2006 (UTC)
Correlation does not imply causation is a favorite for resistance to statistics. --Salix alba (talk) 17:15, 21 November 2006 (UTC)
So, is there an article for Broken symmetries lead to unequal chances? Melchoir 18:52, 21 November 2006 (UTC)

A graph of x!

I would like to know whether a continuous function exists which yields f(n)=n! for integer n, and which could perhaps then shed light on the possible meaning of (say) 2.5!

Thanks, Nathan Ntownshend 21:54, 20 November 2006 (UTC)

See Gamma function. Note that it's shifted by one -- Γ(n+1) = n!. --Trovatore 21:59, 20 November 2006 (UTC)
I cannot find any Applications of Gamma function in differential equations, probabilty from the above page, except notational convenience. Twma 02:33, 21 November 2006 (UTC)
The Gamma function features with a non-integer argument in, amongst others, the Chi distribution, Dirichlet distribution, Gamma distribution, Pearson distribution, Rayleigh distribution, and Weibull distribution. I don't see a claim that the Gamma function has applications in differential equations, but it is applied as such in, among others, the Airy function, Bessel functions (see also Bessel-Clifford function), the hypergeometric differential equation, Laguerre polynomials, and Meijer's G-function.  --Lambiam 06:49, 21 November 2006 (UTC)
(If you're looking for a numerical value and not meaning there's also Stirling's approximation.)87.102.16.174 18:51, 21 November 2006 (UTC)

Taxes

If I am an American citizen who filed taxes already for 2005 and recieved a refund from my w-2s. But because of a ss # error in a general contractor job. I never reported income on a 1099 for the wages paid. But then filled out a w-9 for the employer to give them the right ss #. How do I go about paying those taxes... Plain and simple. I didnt file for a general contracting job because they had the wrong social security number, but now the IRS has the right info. I am sure it is only a matter of time before I get a letter. Will they ever find out? How can I fix this problem and get them their money? Can I still write off any of it? And no... Going to the irs website is even more confusing! THANKS!

Legal questions are best answered by a lawyer. In this case, an accountant may be of some help. --TeaDrinker 01:50, 21 November 2006 (UTC)

This question is double-posted; see the Miscellaneous RD.  --Lambiam 07:47, 21 November 2006 (UTC)

three legged table

I have a heavy (~30 lbs) three legged table with very oddly spaced legs. I want to measure the total weight of the table but I only have two scales. Otherwise I could use the relation a+b+c=d. With two scales I can get weights for only two legs at a time as follows: 13.25+b+14.875=d, 13.71875+b+15.34375=d, 13.3125+2.5+c=d, a+1.86875+15=d.

Without knowing the total weight of the table what is the best way of solving for the total weight of the table given this data? 71.100.6.152 04:10, 21 November 2006 (UTC)

Um... what kind of scale are you using that provides weights down to the hundred-thousandth of a pound? Anyway, why not just invert the table and set it on one scale? Or set it on edge on the two scales. Putting scales under the legs two at a time is problematic because the table is in a different orientation each time. You could perhaps do some sort of least squares fit to the data, or else just average your various readings for each leg in hopes that they have no systematic error (which is a big hope). --Tardis 06:05, 21 November 2006 (UTC)
Another practical solutions in addition to those given by Tardis. 1) Put some brick or a book under the third leg, so each time all legs end at the same level. This will reduce the table slope, so weighting two legs at a time would give more consistent results for each 'leg'. 2) Take some plank, and put it horizontally on the scale. Place the table so that two legs are supported by two ends of the plank, the third leg on the other scale. This will require some practice to get things stable, as the first scale needs to divide the plank's length in a ratio equal to the two legs' weights ratio, which is unknown in advance. ;) Add the results, then subtract the plank weight. --CiaPan 07:06, 21 November 2006 (UTC)
Do a, b and c represent the weights of the legs? Is the weight of the table only formed by the legs? Naming the legs (after the variables representing their weights) A, B, and C, why should it be the case – as I surmise from your equation – that putting say A and C each on a scale giving readings of respectively rA and rC, it should be the case that a = rA and c = rC? Finally, forgetting the context and just looking at your equations, substituting d := a+b+c, you have four equations with three unknowns (a,b, and c), so unless the equations are dependent there is no exact solution. In fact, the first two come down to a+c = 28.125 and a+c = 29.0625, which cannot hold (exactly) at the same time. For any valuation of a and c, the other two equations allow an exact solution in b and d, so the only issue is with this pair. Here is a shortcut, which (in this particular case) is equivalent to the use of a least-squares fit. Just replace it by the arithmetic average a+c = 28.59375, and you have a system of three linear equations in three unknowns, which I assume you know how to solve.  --Lambiam 07:25, 21 November 2006 (UTC)

I think there's something wrong with your data "13.25+b+14.875=d, 13.71875+b+15.34375=d"? Ignoring that I'd assume that your putting scales under each of the three legs in turn. This gives the force on each leg with the third leg acting as a pivot (Please correct me if I've misunderstood). I think you need to generate equations for force in terms of distance of the legs apart (a triangle) and the centre of mass (assuming this simply isn't in the middle of the triangle). But your data has confused me, surely there should only be three readings - you have 4??87.102.16.174 18:01, 21 November 2006 (UTC)

mathematicians

What is the reason that most of the great mathematicians were from Germany or France ? pavanto (59.144.104.243 08:12, 21 November 2006 (UTC))

Newton, Euler, Euclid, Archimedes? It would be easier to answer why you think most great mathematicians were from those places if you explain in more detail who these great mathematicians were — how notable does a mathematician have to be to be called great, and where are you getting the statistics on their home country? —David Eppstein 08:18, 21 November 2006 (UTC)

Well... Gauss, Reimann, Laplace, fourier, Leibnitz are few to name. But if you look at the list of mathematicians by nationality, you will know why I am asking "this" question. And by great means who had profound influence on mathematics which changed the course of mathematics.... I hope this helps -- pavanto(59.144.104.243 09:30, 21 November 2006 (UTC))

Perhaps part of the reason this may be is that when Western Europe was strengthening in math was also a time when math had come to formalisms and abstractions. Many of the disciplines within math were first being defined, and the fundamental theorems and early, important results were being discovered. Also the idea of math as a profession was first arriving. Certainly they were great mathematicians, but they were also in the right place at the right time for having very fundamental results and areas of math named after them. Also, in western culture, we are bound to focus a little more on western mathematicians. Don't forget the ancient Greeks' foundations for geometry, the Indian foundations for trigonometry, and the Persians who laid the foundations for Algebra. The Chinese developed much of number theory before the West. Very few of the discoveries of these people are named after those who discovered them so their names are not common-knowledge, or sometimes even forgotten to history. It doesn't mean they didn't have a profound influence on mathematics. —siroχo 10:15, 21 November 2006 (UTC)
This question confuses quantity with quality. The greatest mathematicians are few in number and have come from all parts of the globe. The greatest number of mathematicians are found around centers of learning. A large percentage of living mathematicians have studied or taught in the U.S., regardless of original nationality. In part this is because Germany and Russia became inhospitable to many whom the U.S. welcomed. (Emmy Noether is a famous example.)
Some measure of the importance of association over the last few centuries can be found by browsing through the Mathematics Genealogy Project. For example, Gottfried Leibniz, considered one of the inventors of calculus, was the doctoral advisor of Jacob Bernoulli, who advised Johann Bernoulli, who advised Leonhard Euler, who advised Joseph Louis Lagrange, who advised Siméon Denis Poisson, who advised Johann Peter Gustav Lejeune Dirichlet, who advised Rudolf Lipschitz, who advised Felix Klein, who advised Philipp Furtwängler, who advised Wolfgang Gröbner, who advised Bruno Buchberger, who created one of our more important tools in computer algebra. That's a chain of a dozen notable mathematicians! But we also have great mathematicians who are part of no chain, like Niels Henrik Abel of Norway. --KSmrq 12:17, 21 November 2006 (UTC)

November 21

Differential equation- Temperature

I am doing differential equations in calc. and there was a problem where the rate of change of the temperature of coffee was modeled by:

y=-0.1(y-7)

in minutes and it started at 190 and the room was 70, how do i find the temperature after ten minutes? --205.154.39.10 16:25, 21 November 2006 (UTC)

This looks like Newton's Law of Cooling. I think the equation that you should have is
d y d t = 0.1 ( y 70 ) {\displaystyle {\frac {dy}{dt}}=-0.1(y-70)} . From here, you can use the formula on that page to find your answer. --HappyCamper 17:40, 21 November 2006 (UTC)

Monty Hall problem (undeleted)

Monty Hall Problem

Any chance of getting the page Monty Hall problem wiped, deleted or corrected? I am assuming the answer is no, not in this place. Still I must ask.83.100.253.24 21:18, 20 November 2006 (UTC)

Imagine an encyclopedia in which whenever a reader didn't like an article, they could erase it. Would that be an encyclopedia worth reading? Melchoir 21:27, 20 November 2006 (UTC)
Attempting to do this would be like trying to take out a machine gun nest with a toothpick, any volunteers?83.100.253.24 21:46, 20 November 2006 (UTC)

User:Kieff (→Monty Hall Problem - removed non-question (possibly trolling) - this is a wiki, if you feel something must be corrected, do it.)

It's not a non-question - the monty hall page is mathematical nonsense - not a troll. Whether it has value as it stands (as perhaps User:Melchoir seems to be suggesting is another question).87.102.16.174 17:49, 21 November 2006 (UTC)

Hypothetical metaphors aside, I'm not sure why you would want to the delete the article, or what specifically you're looking to "fix". It's basic conclusion is correct (that you have a better chance of winning the prize if you switch to the curtain Monty Hall didn't open). But if you found a minor error somewhere in the article, your best bet is to point it out on that article's talk page. Dugwiki 22:18, 20 November 2006 (UTC)

I think that you are wrong, and that the majority of people still reading the Monty Hall talk page might be difficult to reason with. That's why I've brought it up here.
From the problem itself:The chances of the prize being behind either of the two remaining doors (after one non-winning door has been eliminated) is/are equal. The Monty Hall page goes to great lengths to prove the wrong answer true. Does this matter?87.102.16.174 17:49, 21 November 2006 (UTC)
The chances are not equal, and the article is correct. If you don't believe me, try it with someone. Take bets. Record the outcome. You will find that it is statistically speaking better to switch. - Rainwarrior 18:18, 21 November 2006 (UTC)
I don't get it. there are two doors, the prize is behind one - statistically speaking I expect to break even.87.102.16.174 18:40, 21 November 2006 (UTC)
Well, your expectations don't take into account the information gained between the first and second steps. If you've read the article and you don't trust its analysis, then play the game 30 times or so with someone, and record the results. The correct probability will become apparent. - Rainwarrior 18:46, 21 November 2006 (UTC)
What information is gained? As far as I can see the probability of winning increases from 1/3 to 1/2. Nothing more.
You can read the article or its talk page which has plenty of explanation of this, but as I've said, you really need to try out the game yourself before you continue arguing against the facts. There are several simulators available online linked from the website , and if you don't trust them you can do it yourself with some dice a pencil and paper. - Rainwarrior 18:59, 21 November 2006 (UTC)
This is nonsense. The reasoning on the page is wrong. Can't you reason?87.102.16.174 19:04, 21 November 2006 (UTC)
I think the best analogy is to look at this similar example. Let's say the there were a million curtains, only one of which has a car. You pick curtain number 1. Monty says "Ok, you can keep that curtain, or ..." then he opens ALL the other curtains except for curtain number 237,486 and shows that none of the other curtains had a car. He continues "or you can have what is behind curtain 237,486". Which curtain do you think is more likely to have the car: the one you picked at random initially, or the curtain that was left over out of all the other 999,999 choices when Monty opened everything else up? Obviously the answer is that your curtain still has only a one in a million chance of having the car, so you should switch.
The situation is very similar with just three curtains. You pick a curtain at random initially and have a 1/3 chance of getting the car. Monty opens up all but one of the remaining curtains, so the chance that the curtain he didn't open has the car is 2/3. Dugwiki 19:08, 21 November 2006 (UTC)

For those with a programming bent, it's quite easy to code up a simulation of the Monty Hall problem and run it 3 million times. It should become clear that switching is actually beneficial. I see it this way: 2/3 of the time, your first guess was wrong - that much is uncontroversial. Every time your first guess is wrong, you'll get a car by switching, because he's narrowed the places the car could be down to one other. Only the 1/3 of the time that your first guess was correct is it a good idea to stick with it. -GTBacchus 19:17, 21 November 2006 (UTC)

Let's try a different way - this time there are only two curtains; one has a car, the other a goat behind it. You can pick one. Which curtain should should pick out of the two? This is the same as the monty hall problem after a non winning curtain has been eliminated.87.102.16.174 19:23, 21 November 2006 (UTC)
No its not, as there is a 1 in 3 chance it is behind one of the original curtains, so the, and a 1 in 2 chance it behind one of the remaining curtains, so you switch from a 33:66 chance to a 50:50 in your favour. Philc TC 19:27, 21 November 2006 (UTC)
On removing one curtain the odds of your first answer being right change from 1 in 3 to 1 in 2. Is this a source of confusion?87.102.16.174 19:32, 21 November 2006 (UTC)
I'm sorry, but no. Try it, seriously. 2/3 of the time, your initial guess is wrong, and that makes it worth it to switch to what's been revealed as the only other possible non-goat curtain. You can't change the probability of something that's already happened. Really - try it. -GTBacchus 19:34, 21 November 2006 (UTC)
I'm sorry you don't understand or choose to be stupid. The probability of you being right does change. Are you drunk or something?87.102.16.174 19:42, 21 November 2006 (UTC)
Category: