Jump to content

Wikipedia:Reference desk/Mathematics: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Scsbot (talk | contribs)
edited by robot: archiving July 30
Line 130: Line 130:
:::EDIT: Concerning the cross-ratio, I'm reading into it.
:::EDIT: Concerning the cross-ratio, I'm reading into it.
:::EDIT2: I looked at this [http://www.mathpages.com/home/kmath543/kmath543.htm page], and I believe there are typos in their formulas. [http://www.cut-the-knot.org/pythagoras/Cross-Ratio.shtml Cut-the-knot] has the correct ones. Also, does anyone know how Wolfram defined the cross ratio of a square to be 2 [http://mathworld.wolfram.com/CrossRatio.html here] (or the values for any of the other shapes for that matter)? [[Special:Contributions/76.238.91.100|76.238.91.100]] ([[User talk:76.238.91.100|talk]]) 04:25, 2 August 2008 (UTC)
:::EDIT2: I looked at this [http://www.mathpages.com/home/kmath543/kmath543.htm page], and I believe there are typos in their formulas. [http://www.cut-the-knot.org/pythagoras/Cross-Ratio.shtml Cut-the-knot] has the correct ones. Also, does anyone know how Wolfram defined the cross ratio of a square to be 2 [http://mathworld.wolfram.com/CrossRatio.html here] (or the values for any of the other shapes for that matter)? [[Special:Contributions/76.238.91.100|76.238.91.100]] ([[User talk:76.238.91.100|talk]]) 04:25, 2 August 2008 (UTC)
:::::Well AC and BD are Lsqrt(2) whereas AD and BC are just L ? (the points on the square go ABCDA etc) is that it?[[Special:Contributions/87.102.86.73|87.102.86.73]] ([[User talk:87.102.86.73|talk]]) 22:32, 2 August 2008 (UTC)


= August 2 =
= August 2 =

Revision as of 22:32, 2 August 2008

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:


July 26

Integrals

If you have, where u and v are both functions of x, can you split it up into ? 92.0.139.45 (talk) 10:39, 26 July 2008 (UTC)[reply]

No, not usually. For example, if u(x)=x and v(x)=x then
See integration by parts for the rule that actually applies here. Gandalf61 (talk) 10:51, 26 July 2008 (UTC)[reply]
It does work for addition, though. --Tango (talk) 15:18, 26 July 2008 (UTC)[reply]

3d annulus?

What is the name for the 3-d equivalent of an annulus, ie. the region between two spheres, not the same size, with a common centre? 203.221.127.38 (talk) 17:16, 26 July 2008 (UTC)[reply]

If there is a name for such, it is not in List of geometric shapes#Curved but probably should be. GromXXVII (talk) 17:52, 26 July 2008 (UTC)[reply]
"Thick shell" would be a good name eg see Shell theorem#Thick shells 87.102.86.73 (talk) 17:58, 26 July 2008 (UTC)[reply]
"solid of revolution of the annulus" would be a fairly unambiguous interpretable description.87.102.86.73 (talk) 18:41, 26 July 2008 (UTC)[reply]
If we are to be rather pedantic, this is somewhat ambiguous, since if the axis of revolution does not go through the center of the annulus, then you get something else. I would use "symmetric difference of two concentric balls". Oded (talk) 00:59, 27 July 2008 (UTC)[reply]
"Hollow Sphere" is in fairly common use http://www.google.co.uk/search?ndsp=20&um=1&hl=en&q=hollow%20sphere&ie=UTF-8&sa=N&tab=iw 87.102.86.73 (talk) 18:56, 26 July 2008 (UTC)[reply]
I would interpret "hollow sphere" to mean a shape with zero thickness, in other words a 2-sphere. I think "thick shell" is the best term. Solid of revolution is ambiguous if you don't specify the axis - unless you say otherwise, everyone is going to assume you mean a diameter, but it's still ambiguous. --Tango (talk) 23:01, 26 July 2008 (UTC)[reply]
As you might expect, it's called an annulus. --C S (talk) 17:41, 27 July 2008 (UTC)[reply]
A 3-annulus? I've never heard the phrase before, but I suppose it's pretty clear what it would mean. --Tango (talk) 18:41, 27 July 2008 (UTC)[reply]
This term is used in all dimensions, not just 2 and 3. For example, see annulus theorem, one of the most famous results in geometric topology. Sadly, WP seems lacking in this department, but I'll get around to it eventually. (I don't watch this page regularly. Leave a note on my talk page if you have further questions)--C S (talk) 19:11, 27 July 2008 (UTC)[reply]

Thanks, folks. You always deliver :) 202.89.166.179 (talk) 11:58, 28 July 2008 (UTC)[reply]

In a nutshell, its gotta be a shell, surely

Simultaneous equations

I have three simultaneous equations in three variables. I either have to 'solve the simultaneous equations or prove that they have no solution'. After some investigation, it becomes apparent that the first two equations can only have a solution if they are the same equation. This now leaves me with two equations in three unknowns. I can tell from this that there is no unique solution to these equations, however does it count as solving the equations if I put one variable in terms of another, which I can do? Thanks 92.3.123.172 (talk) 18:45, 26 July 2008 (UTC)[reply]

Is this hypothetical or do you have the equations? Because - After some investigation, it becomes apparent that the first two equations can only have a solution if they are the same equation doesn't make much sense to me, are they not linear equations?
If you have two equations with three unknowns then you should do what you suggest, which is as near to a solution as you may be able to get.87.102.86.73 (talk) 19:02, 26 July 2008 (UTC)[reply]
'Solving equations' means to find the solutions to the equations. If there is no solution, (which is usually the case when the equations contradicts one another, such as 0x=1), it means stating that fact. If there is only one solution, (which is usually the case when the equations are linear, such as x+y=2; x−y=0), it means to state that solution. If there is a finite number of solutions, (which is usually the case when the equations are of finite degree > 1, such as x2=x+1), it means to list these solutions. If there is a continuum of solutions, (as is usually the case when there are more unknown than equations, such as x=y), it is not possible to list all the solutions. The best one can do is to put one variable in terms of another, so yes, it counts! Bo Jacoby (talk) 19:09, 26 July 2008 (UTC).[reply]
Please keep all advice as general as possible, I want to do all the hard work for myself. The equations are:
If you make y the subject of the first equation and sub it into the second, then equality can only hold if either a=1 or y=z. Subbing both of those conditions into equations 1 and 2 reduces both of them to .
While I appreciate your advice 87.102.86.73, I find it a bit unhelpful because the questions tells me to either solve the simultaneous equations or prove they have no solution. You seem to be suggesting something that is in between these two things. Does giving the equations make it any clearer? 92.3.123.172 (talk) 19:13, 26 July 2008 (UTC)[reply]
x+y+az=2=x+ay+z
y+az=ay+z
(a-1)z=(a-1)y
x=y y=z (or a=1 as you say)
so the equations become
x+(1+a)z=2
2x+2z=2b
Which you can solve as you said - BUT you have 5 unknowns and only three equations.87.102.86.73 (talk) 19:26, 26 July 2008 (UTC)[reply]
You must have made a mistake because from the first two I get x=y. Did that make sense? Can you take it from there.87.102.86.73 (talk) 19:23, 26 July 2008 (UTC)[reply]
No, you made the mistake; you eliminated x in your first step, leaving everything in terms of y and z, and then somehow added in back in in the last line. Try subbing in x=y and then try y=z. I also forgot to mention that a and b are both constants. I think I should probably just go with putting one variable in terms of another. 92.3.123.172 (talk) 19:28, 26 July 2008 (UTC)[reply]
Yes, (corrected) - you still have too many unknowns.87.102.86.73 (talk) 19:31, 26 July 2008 (UTC)[reply]
I wrote in my last post that a and b are both constants, not variables. Unless, by 'too many unknowns', you mean 3 variables for two equations, which I mentioned when I started this thread. 92.3.123.172 (talk) 19:33, 26 July 2008 (UTC)[reply]
After solving and simultaneously, the only way they can both have a solution is if they are the same equation. So I take it that I just have to prove the three original equations have no solution, which I think I've basically done by showing that the only solutions make them into the same equation. 92.3.123.172 (talk) 19:40, 26 July 2008 (UTC)[reply]
(that should have been an edit conflict... somehow it just put my comment below the ones that weren't present when I started editing) Here's your mistake: you proved that a=1 OR y=z, which is correct. Then you assumed that a=1 AND y=z, which is incorrect. When y=z, a doesn't have to be 1. When a=1, y doesn't have to equal z. When you have an "OR" like that, you need to divide the problem into 2 subproblems and solve them separately. First substitute a=1 (leaving y and z as independent unknowns) and solve (or prove unsolvable) the resulting three equations. Then go back to the start, substitute y=z (but leave a unknown) and do it again. Your final answer will be something like "If a=1, there are _____ solutions. If a!=1, there are _____ solutions." --tcsetattr (talk / contribs) 19:51, 26 July 2008 (UTC)[reply]
Ah, I see. It does make sense not to solve with a=1 and y=z at the same time. It'll still leave me with three unknowns for two equations but perhaps the equations won't have to be identical for there to be a solution. Thanks. 92.3.123.172 (talk) 19:58, 26 July 2008 (UTC)[reply]
You correctly deduced that either a=1 or y=z. What you should do now is split the rest of the solution into two cases, like this: "Case 1: a=1. Then [...]. Case 2: a≠1. Then it follows that y=z and [...]." You shouldn't substitute both a=1 and y=z at the same time, since that will get you only a subset of the solutions. Note that in case 1 you won't be able to solve the equations completely—you'll be able to find y+z but not y or z individually. -- BenRG (talk) 20:03, 26 July 2008 (UTC)[reply]
You have as one option x+(1+a)z=2 and 2x+2z=2b (or x+z=b)
Therefor 2-(1+a)z=x=b-z
2-az=b
2-b=az
(2-b)/a=z ?! This is a solution?
After solving and simultaneously I get:
x+2y=2 and 2x+y+z=2b
2-2y=b-y/2-z/2 or 1-x/2=2b-z-2x
4-4y=2b-y-z or 2-x=4b-2z-4x
z=2b+3y-4 or 2z=4b-3x-2
87.102.86.73 (talk) 19:50, 26 July 2008 (UTC)[reply]
I think the confusion is because you actually have a family of sets of simultaneous equations. Your final answer is going to something along the lines of "For these values of a and b, there are infinitely many solutions, of the form (whatever), for these other values of a and b, there is a unique solution, (whatever) and for these values of a and b, there are no solutions." It looks like you've made a good start, just keep going like you are but keep in mind that the number of solutions will depend on a and b. --Tango (talk) 23:10, 26 July 2008 (UTC)[reply]

Solving n equations in n unknowns is conveniently split into two steps. The first step is to combine the equations, trying to end up with n equations each in one unknown. The second step is to solve these independent equations one by one. When the equations are linear, as in your case, the second step is reduced to making a division. The equations are x+y+az−2 = x+ay+z−2 = 2x+y+z−2b = 0. Eliminate the variable x by subtracting the first expression from the second. As both expressions are 0 the difference is also 0. (x+ay+z−2)−(x+y+az−2) = 0 or (a−1)y+(1−a)z = 0. Consider separately case one: a=1, and case two: a≠1. Case one gives x+y+z−2 = x+y+z−2 = 2x+y+z−2b = 0. The two first expressions are identical, so effectively there are only two equations: x+y+z−2 = 2x+y+z−2b = 0. You eliminate the variable y by subtracting the first expression from the second. You get (2x+y+z−2b)−(x+y+z−2) = 0. You eliminate x by subtracting twice the first expression from the second: (2x+y+z−2b)−2(x+y+z−2) = 0. Having done the hard work you end up with one equation in x and another equation in y and z. In the second equation you may consider z to be an independent variable, and y to be defined as a function of z. Then proceed to case two. Bo Jacoby (talk) 05:04, 27 July 2008 (UTC).[reply]

I know it's been a while, but I would like to suggest some answers. Again, if I'm wrong, please don't tell me the answers.
There are only two ways that the first two equations can have a solution; if either a=1 or y=z. In the case a=1, the solution of the whole system is x=2(b-1) and y+z=2(2-b). In the case y=z the solution of the whole system is and . In both cases there are infinitely many solutions but in the case y=z a=0 is not a possible solution. How's that? 92.0.60.66 (talk) 17:30, 2 August 2008 (UTC)[reply]

Well done. The solution (x,y,z) = ((ab+b−2)/a, (2−b)/a, (2−b)/a) counts as one solution because a and b are constants. What happens if a=0? The answer depends on whether b=1 or not. Bo Jacoby (talk) 21:35, 2 August 2008 (UTC).[reply]

Thanks for checking it for me, really appreciate it. I don't see though why b equalling 1 will have any bearing on the solution if a=0; isn't division by zero undefined? 92.0.60.66 (talk) 21:39, 2 August 2008 (UTC)[reply]

Yes, division by zero is undefined, so you must insert a=0 in the original equations to solve that case. Bo Jacoby (talk) 08:30, 3 August 2008 (UTC).[reply]

Probablity equation?

Is there any probablity equation using which we can assess the probablity of frequent natural events like rainfall on a particular day? If so, what is it?117.201.96.242 (talk) 19:14, 26 July 2008 (UTC)[reply]

The short answer is not really.
But if it rains x days a year you can say the probability of rain is x/365 everyday.
If you have many years of data you can assess each day separately for the probability of rain, and get a better guess. But you will need data from previous years etc..87.102.86.73 (talk) 19:29, 26 July 2008 (UTC)[reply]
And, of course, the probability of rain in the next few days can better be estimated based on current weather patterns (is a warm front moving in ?) than historical data. StuRat (talk) 05:16, 27 July 2008 (UTC)[reply]
Once again you have done an immense favour to be. I'm absolutely surprised by being familier to your depth of knowledge. Thank you for answering. The common people should learn from you.117.201.96.242 (talk) 20:04, 26 July 2008 (UTC)[reply]
We ARE the common people. But some of us are more common than the others!

Trigonemtry problem

I've been itching away at this for the post couple hours, but still can't get this figured out. Please help me, and if you can, please tell me how you got to the answer.

tan alpha + cot alpha = 4/2

alpha 's period is (4/7 , pi/1)

cos^2(x) - 2sin(x)cos(x) - sin^2(x)

so

given f(x) = cos^2(x) - 2sin(x)cos(x) - sin^2(x)

Find the min positive period of f(x)

Find the max and min values of f(x) —Preceding unsigned comment added by Benadrill (talkcontribs) 21:35, 26 July 2008 (UTC)[reply]

You seem to be sometimes saying alpha is a variable, at other times it's a constant. I'll assume it's a constant, in which case the first equation becomes a simple quadratic (two solutions), and the answers follow easily. The last one, try applying some trig identities. -mattbuck (Talk) 21:58, 26 July 2008 (UTC)[reply]

The function you've called ƒ(x) is just cos(2x) − sin(2x), by a couple of standard trigonometric identities. That has period π. Michael Hardy (talk) 18:09, 28 July 2008 (UTC)[reply]


July 27

Infinite Series

I have two questions about infinite series. The first one is a concept question. In the all the books I have read, it always says that if are positive and decreasing (), then the following alternating series converges if an only if the summands approach zero. My questions is that if all of these hypothesis are met, then would also converge if and only if the summands approach zero as n goes to infinity? This is true right? Because all I am doing is that I am taking the first series, which is converging, and then multiplying it by -1 which will be well defined. And by a similar argument, will also converge if and only if the summands approach zero as n gets large, right? Because all I have done is multiplied by -1 and then added the first term?

The second question is, how do I find out in which region (in the upper half plane y>0) does the series diverges, converges conditionally, or converges absolutely?. Thanks!69.224.231.242 (talk) 07:33, 27 July 2008 (UTC)[reply]

First question - no. It's complicated - firstly the series a1,a2,a3 might not converge even if the terms tend to zero eg 1/1,1/2,1/3,1/4,1/5 etc
WRONG. You didn't read the question carefully. The answer is yes. Michael Hardy (talk) 18:05, 28 July 2008 (UTC)[reply]
Try reading the fucking question lord hardy - it doesn't make any sense because : quote "it always says that if are positive and decreasing (), then the following alternating ..."
I've underlined the two bits you need to check on. Hope that helps87.102.86.73 (talk) 20:41, 28 July 2008 (UTC)[reply]
Try reading that carefully and making any fucking sense out of it. B doesn't follow A.87.102.86.73 (talk) 20:40, 28 July 2008 (UTC)[reply]
Also try 1/2+1/3+1/4+1/5 etc does that converge - the numbers are decreasing??87.102.86.73 (talk) 20:49, 28 July 2008 (UTC)[reply]
Also check the bit about "if and only if the summands approach zero" - if a(n)=a(n) in the two series mentioned (rather than a1=a1-a2 a2=a3-a4 etc ) then the statement is true if "if and only if the summands approach zero". ie the part about the summands is irrelevent?87.102.86.73 (talk) 21:25, 28 July 2008 (UTC)[reply]
Second - the series a1,-a2,a3,-a4 etc - no . In fact there are series which oscillate and diverge which can be shown to have a real value (of the sum) at a limit of infinity.
Sorry you said 'summands' - if the 'summands' are a1-a2, a3-a4 etc then yes..
So the third question - no. obviously you are right that if the series A converges then the series -A also converges.
The problem is with your use of the term if and only if - if you remove that then your reasoning is correct. Ignore that - I missed the bit about summands.87.102.86.73 (talk) 12:06, 27 July 2008 (UTC)[reply]
You still need to bear in mind that a1>a2>a3>a4 etc does not guarantee convergence of the series.87.102.86.73 (talk) 12:08, 27 July 2008 (UTC)[reply]
Please see Convergent_series#Examples_of_convergent_and_divergent_series87.102.86.73 (talk) 12:11, 27 July 2008 (UTC)[reply]
I think you may find useful the two articles Alternating series and Alternating series test.87.102.86.73 (talk) 11:45, 27 July 2008 (UTC)[reply]

Have you tried combining odd and even terms into a new series and then testing for convergence using the 'ratio test' see Convergent_series#Convergence_tests.87.102.86.73 (talk) 11:31, 27 July 2008 (UTC) You would need to find the boundaries at which the series stops converging obviously.87.102.86.73 (talk) 11:44, 27 July 2008 (UTC)[reply]

Everything you say in the first paragraph is correct. For your second question, you'll probably want to use the alternating series test (that's what your first paragraph is about, if you haven't heard the name) for convergence. I haven't thought about absolute convergence yet. Algebraist 11:52, 27 July 2008 (UTC)[reply]
I agree. For absolute convergence, the hardest part is to work out the case of y=1 and figure out for which x this converges. After you do this, you get the answer for other y using the comparison test. For the tricky case y=1 (I would guess that there is a WP page on this, but I was not able to find it) you can use the integral test, if you know integration. If not, then it can also be done directly. Let us know and we can give you a few hints. Oded (talk) 16:42, 27 July 2008 (UTC)[reply]

The answer to the first question is yes. If

converges, the so does

Often the blind lead the blind on this page, it seems. Michael Hardy (talk) 18:03, 28 July 2008 (UTC)[reply]

You're not wrong there - because that is the answer to the SECOND question. As you say 'you didn't read the question carefully' well done.87.102.86.73 (talk) 21:06, 28 July 2008 (UTC)[reply]
Was I not clear enough? I already said 'Everything you say in the first paragraph is correct'. Algebraist 18:31, 28 July 2008 (UTC)[reply]
You were right, 87.102 was wrong. --Tango (talk) 18:35, 28 July 2008 (UTC)[reply]
Oh I was wrong - why didn't someone tell me.87.102.86.73 (talk) 20:36, 28 July 2008 (UTC)[reply]
I didn't because I could barely work out what you were talking about at all. Algebraist 21:25, 28 July 2008 (UTC)[reply]

Bit of politeness wouldn't kill everybody — whether you're pointing out an error or having one pointed out to you, try to keep it down to a dull roar, please, thanks guys! --tiny plastic Grey Knight 21:28, 28 July 2008 (UTC)[reply]

probability

probabiliti based short cut to solve question speedly —Preceding unsigned comment added by Anujay12 (talkcontribs) 18:42, 27 July 2008 (UTC)[reply]

What question? --Tango (talk) 18:55, 27 July 2008 (UTC)[reply]
This may be the biggest leap in question interpretation since "suitly emphazi", but I'm going to suggest Monte Carlo method as a way to use random input to help solve a problem. Confusing Manifestation(Say hi!) 23:19, 27 July 2008 (UTC)[reply]
Ah, it's been such a long time since I've "suitly emphazied" anything. :-) StuRat (talk) 17:31, 28 July 2008 (UTC)[reply]

Exponential Proportions

I was wondering, if i wanted to write 7^4 in cube form, what would it look like. I mean, how 64^1/2=2^3, what value of x makes 7^4=x^3. And how do you do that, so in the future i can do it myself. Simple terms please, just finished Algebra 1 last year.--Xtothe3rd (talk) 22:32, 27 July 2008 (UTC)[reply]

The value of x which makes is the cube root of , which can be written as or . Using the rule it can be simplified to . --tcsetattr (talk / contribs) 23:11, 27 July 2008 (UTC)[reply]
So then, (7^4)^(1 / 3) = 7^(4 / 3) = 13.3905183... more or less -hydnjo talk 01:45, 28 July 2008 (UTC)[reply]

You got be very careful.

If you write 7^4 = x^3

Then

x^3 = 2401

x = 13.39 or x = -6.69 - 11.6 i or x = -6.69 +11.6 i

or if you want exact answers

x = 7 (7)^(1/3) or x = -7 * (-7)^(1/3) or 7 * (-1)^(2/3) * (7)^(1/3)

122.107.182.1 (talk) 11:14, 28 July 2008 (UTC)[reply]


July 28

Point wise union

If I have two sets of sets; {{1,2},{3}} and {{4},{5,6}} then the cartesian product is {({1,2},{4}),({1,2},{5,6}),({3},{4}),({3},{5,6})}. However I am after the set of sets that I get when I instead of producing ordered pairs take the union. So that I arrive at . Does this operation have a name? Taemyr (talk) 14:29, 28 July 2008 (UTC)[reply]

This may not be what you're looking for, but you can write the operation compactly as a set comprehension: . -- BenRG (talk) 17:49, 28 July 2008 (UTC)[reply]
That set is the range (or image) of the union of those sets. Is that any help? --tiny plastic Grey Knight 20:36, 28 July 2008 (UTC)[reply]

This operation is useful in the study of set-theoretic ideals. It can be notated by a union sign with an underbar. I just call it pointwise union. --Trovatore (talk) 20:47, 28 July 2008 (UTC)[reply]

Then I'l go with that. Thx all. Taemyr (talk) 00:00, 29 July 2008 (UTC)[reply]

Notation for multivariate polynomials of at most degree m

I’m looking for a notation for the set of polynomials over a field in variables of total degree at most . Anyone know any? GromXXVII (talk) 19:41, 28 July 2008 (UTC)[reply]

It tends to be used for PDEs and mixed partial derivatives, but the Multi-index notation will serve. RayAYang (talk) 20:35, 28 July 2008 (UTC)[reply]
or should work, as long as you define it the first you use it. The only issue I can see is that it isn't clear if the notation means degree at most m, or degree exactly m. And, of course, the second choice could be mistaken for meaning polynomials over a vector space, but that would be rather weird. --Tango (talk) 21:38, 28 July 2008 (UTC)[reply]

July 29

July 30

Probability of extraterrestrial intelligent life

So I've been idly pondering the likelihood of intelligent extraterrestrial life and I'm wondering about a probability question. I don't have much experience in probability (although plenty in other mathematical areas). Suppose an experiment with desirable outcome (say, the formation of a star with a planet on which an intelligent species evolves), which has an unknown, nonzero but presumably low probability, and furthermore, many, many repeated and (assumedly) independent trials (7.22 x 1022, say). Given that it has occurred at least once, is there any way we can quantify the probability that it occurred only once? Is it possible to quantify the probability of a very unlikely event occuring precisely once in a very large number of trials? Cheers! Maelin (Talk | Contribs) 06:09, 29 July 2008 (UTC)[reply]

If an event has probability p, then the probability of it occuring exactly once in N independent trials is . For example, if you toss a coin the probability of seeing exactly one heads in 4 tries is 4*(1/2)*(1 - 1/2)^3 = 1/4. For low probability events, such as seeing intelligent life appear, which means that if it only occured once we would expect . Dragons flight (talk) 06:42, 29 July 2008 (UTC)[reply]
Hi. See Drake equation for the problem at hand, and Poisson distribution for the statistics of low-p high-N systems (and maybe Stein's method too, if you feel like some rigour). HTH, Robinh (talk) 07:29, 29 July 2008 (UTC)[reply]
But note that if the occurrence of life in each different star system are truly independent events, then the occurrence of life here on Earth tells us absolutely nothing about the probability of life occuring elsewhere in the Universe - otherwise the events would not be independent. Gandalf61 (talk) 09:49, 29 July 2008 (UTC)[reply]
Well, it does tell us that the probability is nonzero (assuming the number of places where intelligent life could evolve is finite). Obligatory link to anthropic principle. « Aaron Rotenberg « Talk « 10:50, 29 July 2008 (UTC)[reply]
Is possible to calculate x and y such that there is a 95% chance than the probability of life arising on a planet is greater (less) than x (y) given we know it's happened once? That might be more useful than just an expected value. --Tango (talk) 18:34, 29 July 2008 (UTC)[reply]
So is there a way of calculating the likelihood that an outcome with unknown probability occurs precisely once in 7 x 1022 trials? Maelin (Talk | Contribs) 01:09, 30 July 2008 (UTC)[reply]
Well, no, since it will be different for different probabilities. --Tango (talk) 03:33, 30 July 2008 (UTC)[reply]

If you suppose one can quantify a) L the number of planets in the universe, and b) P the probability of intelligent life (whatever that is) arising on a planet, then you certainly have the gall to calculate (1 - P)(L - 1) = the probability of life not arising on the (L - 1) planets that are not this one.Cuddlyable3 (talk) 13:42, 31 July 2008 (UTC)[reply]

I suppose you mean (1 - P)(L - 1). For that you also need the gall to assume life arises independently on different planets. Algebraist 13:51, 31 July 2008 (UTC)[reply]

I finally realised that the intuitive feeling I had that some sort of figure was calculable was based on the notion that knowledge of the existence of life on the first planet we examined was evidence to suggest that P couldn't be very low - that is, high values of P suggest other life is probable, and low values of P are themselves unlikely because life arose on Earth. Fortunately, I finally realised that this is anthropic reasoning - since P could just as easily be low as high, and in universes with low P, if intelligent life did arise as a fluke, such reasoning would lead inhabitants to the erroneous conclusion that P on their universe is unlikely to be low, when in fact it's merely they who are unlikely.

This, I guess, spells the death of the "it's such a big universe, it seems unlikely that of all those stars, only ours has life on it" argument for the probable existence of aliens. Thanks to all who helped! Maelin (Talk | Contribs) 12:15, 2 August 2008 (UTC)[reply]

Cardinality

Hi. Consider the natural numbers whose factorisation contains, at most, one of each prime. That is, their factorisation is a proper set, not just a bag. The first few of these numbers are 1, 2, 3, 5, 6, 7, 10, 11, 13, 14, 15, 17, 19, 21, 22, 23, 26, 29. I'll call these the unique factor naturals, or uf-nats. Obviously, being a subset of the natural numbers, the set of all uf-nats has cardinality aleph-zero. Now, the set of all primes (call it P) also has cardinality aleph-zero. All uf-nats are a subset of P, and any subset of P must be a uf-nat. So there is a one-to-one correspondence between uf-nats and subsets of P.

The set of all subsets of P (P's power set) is therefore equal to the set of all uf-nats. P's power set has cardinality 2^P = 2^aleph-zero = aleph-one. How is it possible for a set with cardinality aleph-one (P's power set) and aleph-zero (the uf-nats) to be in a one-to-one correspondence? 79.72.192.135 (talk) 12:02, 29 July 2008 (UTC)[reply]

In your mapping, an uf-nat is mapped to a finite subset of P. There are no uf-nats corresponding to infinite subsets of P - for example, there is no uf-nat that corresponds to the set of all primes greater than 2. So the cardinality of the set of all uf-nats does not have to be the same as the cardinality of the power set of P - indeed, as you have shown, it is smaller. Gandalf61 (talk) 12:14, 29 July 2008 (UTC)[reply]
Yes, that would do it, thanks. So there are only countably many finite subsets of a countable set, but uncountably many infinite subsets. It also occurred to me to type that sequence into OEIS; it turns out what I called uf-nats are also called square-free numbers. 79.72.192.135 (talk) 12:22, 29 July 2008 (UTC)[reply]
Darnit, I was just coming here to post the Sloane index and you've beaten me to it! Oh well, it is A005117 if anyone else happened to want to know. --tiny plastic Grey Knight 12:42, 29 July 2008 (UTC)[reply]
Yes, they are called square free and we even have an article on them Square-free integer. --Tango (talk) 18:36, 29 July 2008 (UTC)[reply]

In high school, we were taught that "most naturally occurring random variables are distributed normally," by which they meant stuff like height, weight etc. within a given population. Later I found out the connection between this and the Central Limit Theorem. Then something occurred to me: if X is normally distributed, then non-linear transformations of X will not be. The problem is that most naturally occurring random variables can be transformed non-linearly into other fairly natural variables (eg. tree trunk radius into cross-section area), so only a fraction of those can be normal. Another good example is height and weight: these are related non-linearly, although not as closely as radius and area, so they can't both have normal distribution curves within a population, for a given gender (as the Normal distribution article confirms). Is there any general way that you can determine which of two related variables will be normally distributed, and is it possible that both will have a roughly normal, but skewed distribution? 202.89.166.179 (talk) 15:56, 29 July 2008 (UTC)[reply]

Your question has essentially all the ingredients of the answer. You should expect near normal distribution of a variable if it is a result of many independent or nearly-independent contributions (where no particular few are dominant). Here, "contribution" should be interpreted in the additive sense. So if is a non-linear function of , you would still have as a function of many independent events, but in this case the events would not combine by addition. For example, a somewhat reasonable model for the distribution of the price of a stock at a fixed future time is the exponential of a normal random variable. This is based on the explanation that individual events have multiplicative effects on the stock price, which is the same as an additive effect on the log of the stock price. Oded (talk) 16:18, 29 July 2008 (UTC)[reply]

Thanks for that answer. But is it possible that two variables, related but not linearly, can both have nearly normal distributions, ie. both skewed? 202.89.166.179 (talk) 17:21, 29 July 2008 (UTC)[reply]

That happens a lot, in a way. For example, suppose that and is a normal random variable. If is nearly linear near the mean of , then will be nearly normal. This is not quite precise, since I have not said what nearly and near mean, but it is possible to come up with precise versions of this statement. Many useful and naturally occuring functions are smooth, and the smooth functions are close to linear on small scales. Oded (talk) 21:23, 29 July 2008 (UTC)[reply]

Thanks again, :) 202.89.166.179 (talk) 05:05, 2 August 2008 (UTC)[reply]

Does it start with a 1 or a 0? --117.196.136.3 (talk) 16:29, 29 July 2008 (UTC)[reply]

Conventionally it starts with a 0, as in Sloane's OEISA000045. --tiny plastic Grey Knight 16:35, 29 July 2008 (UTC)[reply]
But note that the initial 0 is the 0th term of the sequence. I think everyone agrees that the 1st and 2nd terms are both 1, the only dispute being that some prefer to leave off the 0th term. Algebraist 17:12, 29 July 2008 (UTC)[reply]
Okay, good clarification. :-) For an encore, discuss the difference between a geometer's and topologist's n-sphere in 100 words or less. :-) --tiny plastic Grey Knight 17:22, 29 July 2008 (UTC)[reply]
A topologist's n-sphere is a naked topological space. A geometer's one is equipped with a smooth structure and probably a Riemannian metric. Algebraist 17:29, 29 July 2008 (UTC)[reply]
Related to what Algebraist says, I think the important thing is that the element of index 0 is 0, and the elements of index 1 and 2 are both 1. This results in the nice property that . This normally means that the sequence starts with a 0 (but can actually extended infinitely both forwards and backwards), unless you're one of the lots of people who believe natural numbers start with 1, in which case the sequence starts with two 1s. – b_jonas 16:29, 31 July 2008 (UTC)[reply]

Tall tree heights

How do you determine the height fo a tall tree without climbing up with a tape measure —Preceding unsigned comment added by 79.64.140.117 (talk) 20:36, 29 July 2008 (UTC)[reply]

Cut it down! No actually, this might not be the best idea. Let's see... Maybe you can use some geometry and the fact that light travels in straight lines? Oded (talk) 21:27, 29 July 2008 (UTC)[reply]
Or a rangefinder and the Pythagorean theorem. But without fancy tools I’d probably go with measuring the shadow, finding the angle of the sun, and using similar triangles. GromXXVII (talk) 21:39, 29 July 2008 (UTC)[reply]
Gah, ya beat me to it, Grom. Yes, measure the shadow, and then take the measurement of the shadow of a meterstick, and see how many of the meterstick-shadows fit in the tree-shadow. Or something like that. That doesn't count for the roots, though. But I don't think that matters. Excuse my rambling. IceUnshattered (talk) 22:53, 29 July 2008 (UTC)[reply]
Usually in a forest you cannot discern the shadow of a tree. Oded (talk) 23:26, 29 July 2008 (UTC)[reply]
Measure a known distance from the trunk with a tape measure. Stand at that distance and get some kind of rod and line it up from your eye to the top of the tree. Measure the angle from the rod to the horizontal (a string with a weight on the end hanging from the rod to give you a vertical can help) and then use basic trig to calculate the height - remember to add the distance from the ground to your eyes to the final result. --Tango (talk) 01:13, 30 July 2008 (UTC)[reply]
Climb up with a stone and a stop watch. Drop the stone from the top of the tree and measure the time it takes to hit the ground. Use Newton's second law to compute height. Density of branches has pros and cons. Tlepp (talk) 10:55, 30 July 2008 (UTC)[reply]
Wait until a bird lands on top of the tree. Measure the angular size of the bird. Shoot the bird. Measure the bird. Do the calculation. McKay (talk) 11:05, 30 July 2008 (UTC)[reply]
(This method requires a set of bathroom scales). Weigh yourself at the bottom of the tree (call this ), then climb it and weigh yourself at the top (calling this ) (this method also requires good balance). If you know that the radius of the Earth at the tree's location is , then the height of the tree is just . --tiny plastic Grey Knight 13:12, 30 July 2008 (UTC) more seriously, User:Tango's answer seems best[reply]
First, acquire a barometer. Then use one of the methods listed in the barometer question article. Gandalf61 (talk) 13:16, 30 July 2008 (UTC)[reply]
I find the tree's custodian and offer to exchange the barometer for telling me the height of the tree. --Random832 (contribs) 13:29, 30 July 2008 (UTC)[reply]
I don't know if a dryad would be interested in having a barometer, but I suppose it can't hurt to try. --tiny plastic Grey Knight 13:51, 30 July 2008 (UTC)[reply]
Climb up the tree with a piece of string, cut the string to be as long as the tree is high. Climb back down the tree, and measure the string. Philc 0780 13:49, 30 July 2008 (UTC)

On a cloudy day, or if the shadow isn't clear for some other reason, use a slingshot to shoot a stone so that it just makes it over the tree at the top. Time its fall to the ground and you can calculate the height: the horizontal travel won't change the time for the stone to fall to the ground. --Slashme (talk) 13:52, 30 July 2008 (UTC)[reply]

If you can control the initial velocity and angle of the stone, adjust those so the stone just hits the top of the tree, and you can calculate the trajectory, and thus the height of the tree. --Carnildo (talk) 20:37, 30 July 2008 (UTC)[reply]

Come on, people, that's enough. I've given the standard method, the question is answered, let's stop with all the jokes, huh? --Tango (talk) 17:50, 30 July 2008 (UTC)[reply]

What jokes? ō_ō hydnjo talk 23:46, 30 July 2008 (UTC)[reply]
Assume a spherical tree... « Aaron Rotenberg « Talk « 04:45, 31 July 2008 (UTC)[reply]
The real standard method, if the base of the tree is not accessible but everything round about is level, is to take two measurements of the angle to the top of the tree from points a known distance apart in line with the base. If the distance is x and the angles are alpha and beta, then the height is x/(cot beta - cot alpha).…217.43.211.113 (talk) 09:55, 31 July 2008 (UTC)[reply]
To Grey Knight: I recommend measuring a weight with a kitchen scale instead of a bathroom scale becasue bathroom scales are often inaccurate if not placed on a flat horizontal surface (they can give wrong results even on a fluffy carpet), and the treetop doesn't provide for such a surface. – b_jonas 16:23, 31 July 2008 (UTC)[reply]
I hope I'm not messing up a test, but this question is often used to see if people will ask that very important 'why' question when given a task. Dmcq (talk) 20:09, 2 August 2008 (UTC)[reply]
The standard tool used for measuring angles in triangulation is the theodolite, but perhaps a sextant can be used as well. --Bowlhover (talk) 12:01, 3 August 2008 (UTC)[reply]
The article on horizon shows how to calculate the height of a tree by walking away from it till the tip just disappears. Just measure how far you walk and how high you are. It has a helpful picture as well as the formula. Dmcq (talk) 19:14, 3 August 2008 (UTC)[reply]

Finding all roots to a 4th degree polynomial

The first of many such questions goes like this:

Given: f(x)=x^4-3x^3+2x^2-7x-11 Find all roots to the nearest .001

I tried to separate the groups with parenthesis, so, (x^4-3x^3)+(2x^2-7x)-11. But I didn't think this works when there's an x^0 in the equation. So I moved the 11 to the other side, (assuming f(x) was equal to zero) and tried to factor out from what was left. But I couldn't factor. The next thing I thought was matrices, so I plugged them into a 5X1 Matrix and hit "rref(". But the response was merely the matrix I sent in. I've heard there's a long way, but I can't remember it. Could somebody help? --Ye Olde Luke (talk) 03:04, 30 July 2008 (UTC)[reply]

There are several ways of approaching this, but one way might be to iteratively use Newton's method. By hand, that would be considered a "long way", though. Baccyak4H (Yak!) 03:27, 30 July 2008 (UTC)[reply]
Since the question says "to the nearest .001" I expect you are intended to do it numerically. If you're allowed to use a computer (as it seems you are), I suggest plotting a graph (you could plot it by hand if you want, but a computer is far easier!) to find out roughly where the roots are and then try an iterative method to find the roots (rearrange f(x)=0 to x=g(x) and then plug a value of x near the root into the new function, g, and keep doing so until you have a precise enough answer). That's not guaranteed to work (the values of x may get further and further away from the root, rather than closer), but it often does. If it doesn't, you'll need some other numerical method - if you're being asked that kind of question, I imagine you've been taught some. --Tango (talk) 03:31, 30 July 2008 (UTC)[reply]
The general fourth degree polynomial equation is known to be solvable by radicals (i.e., extracting roots, multiplication, division, addition and subtraction) since 1545. See the Timeline of algebra and quartic equation. The solution on that page looks rather complicated. I plugged your equation into Mathematica, and Mathematica spits the four solutions, two real and two complex. For example, one of the real solutions is 3.32901. For the higher degree equations, it has been proved by Galois that generally no solution by radicals is possible. In such cases, one reverts to numerical methods. To use Newton's method effectively, you need to first find a point that is quite close to a solution. This is a nontrivial problem. See, for example the Acta 1989 paper by Doyle and McMullen. Oded (talk) 05:25, 30 July 2008 (UTC)[reply]
In fact, PlanetMath has the quartic formula, http://planetmath.org/encyclopedia/QuarticFormula.html, although for finding the solutions it’s pretty much useless because a method of derivation using the given values would be both involve less computations and be less error prone than plugging everything in. GromXXVII (talk) 10:55, 30 July 2008 (UTC)[reply]
I graphed the equation using my graphing calculator, and 3.3201 apears to be one of the zeroes. The other is somewhere close to -.9121094. I'm sorry, I've been on summer vacation for months, and can barely dreg up what I've already stated. I there any way to clarify the Wikipedia article examples? I vaguely recall learning that the funny thing about Complex numbers is that as solutions they always come in pairs, one negative and one positive. So if I can find one, I can find the other, right? (By the way, you're all getting Reference Desk barnstars for your help)--Ye Olde Luke (talk) 05:45, 30 July 2008 (UTC)[reply]
Regarding the "pairs" of complex solutions, you are thinking of the complex conjugate root theorem, on which we have an article. Which articles do you think have confusing examples? Perhaps those pages can be improved (you could even help if you like!). --tiny plastic Grey Knight 09:17, 30 July 2008 (UTC)[reply]
Here is something that works for this particular equation and does not require any advance math and you can do by hand (if you care to). First, if you evaluate the polynomial at the three points , you get positive, negative and positive answers, in this order. Therefore, you can use the bisection method to find approximations of two roots, one between 0 and 4, and the other between -1 and 0. (I guess you already did this.) You will need to get these roots with a higher level of accuracy than the target of 0.001, since you will use them to find the others. (I think the answers you wrote are not accurate enough.) So say the root approximations that you found where a and b. Then you divide your original polynomial P by the polynomial , using polynomial division. If a and b where the exact roots, the division would leave no remainder, and you would get a second degree polynomial. However, since they are not quite the exact root, the division would have a remainder, and you would have
where Q is a second degree polynomial that you find, and R is the remainder, which is a linear polynomial. Now, since a and b are approximate roots, the coefficients of R will be rather small in absolute value. Therefore, if you plug into P the roots of Q, you get something close to zero. In other words, the roots of Q are approximations of the roots of P. You find the roots of Q using the quadratic formula, which gives you approximations of all four roots of P. Oded (talk) 15:30, 30 July 2008 (UTC)[reply]
After the polynomial division, I got "x^2-3.9x+3.51+(-26.36x+14.53/x^2+.9-3)" Since you said to find the roots of Q, which I took to be x^2-3.9x+3.51 , I used the quadratic formula, which looked like this:
But, when I reduced that, it didn't give me complex answers, it gave me 2.49 and 1.41 . The only thing I didn't do was make my first two answers more exact. Would that really cause the whole problem to turn out incorrectly? --Ye Olde Luke (talk) 18:54, 30 July 2008 (UTC)[reply]
You've done something wrong with the polynomial division. You should end up with the remainder being of the form ax+b, there shouldn't be a 1/x2 term. --Tango (talk) 19:01, 30 July 2008 (UTC)[reply]
I parrot-copied the way the Wikpedia article did it, and their answer looked like that. Did I pick the wrong section of the article to copy? --Ye Olde Luke (talk) 19:05, 30 July 2008 (UTC)[reply]
For one thing, did you multiply out before dividing? If your approximation is good enough, then the remainder R that you get would have small coefficients. There is something else that might be confusing to you, that I wrote the equation as , while on that polynomial division article they would write it instead in the form . If you write out your steps in greater detail, we'd be able to make sure they are ok. By the way, when you wrote above "x^2-3.9x+3.51+(-26.36x+14.53/x^2+.9-3)", did you mean ?. In any case, the remainder does not look small enough. Oded (talk) 21:01, 30 July 2008 (UTC)[reply]
I think I found your mistake. It occured when you multiplied out . Presumably, you got , whereas the correct answer is approximately . Is that it? Oded (talk) 21:12, 30 July 2008 (UTC)[reply]
You're right. I forgot to add -3.3 to .9 . I'm gonna try the problem again, one minute. --Ye Olde Luke (talk) 00:05, 31 July 2008 (UTC)[reply]
All right, I've completely writen out the steps I took to solve the problem, but to save Reference Desk space, I've completed it at User:Ye Olde Luke/proof. Please check to see if I did all the steps right. --Ye Olde Luke (talk) 01:08, 31 July 2008 (UTC)[reply]
I haven't checked your arithmetic, but the method looks right. Checking the numbers is easy - just plug them into the polynomial and see if you get zero! One thing - you were asked for values accurate to the nearest 0.001, but haven't gone anywhere near that close. --Tango (talk) 01:17, 31 July 2008 (UTC)[reply]
Oops. I fixed that now. --Ye Olde Luke (talk) 01:30, 31 July 2008 (UTC)[reply]
Now, you didn't - you need to use the more precise real values in the calculation of the complex ones (in fact, you should use slightly more precise values in order to account for any multiplication of errors). --Tango (talk) 01:36, 31 July 2008 (UTC)[reply]
(edit conflict) I think you got the long division right. But it seems you made a few errors here and there. At some point you switched the sign of the root near -0.9, and the square root leading to the imaginary part was messed up. Tango is also right. You need more accuracy. Regardless of the target of 0.001, just to feel safe I would not be happy to drop the remainder if its coefficients are larger than 0.1. Once you work more accurately, you can check that you are getting the right answers by plugging in, as Tango suggested. Do you know how to get the first two real roots accurately? Oded (talk) 01:40, 31 July 2008 (UTC)[reply]
On a TI-84 graphing calculator? No. I just zoomed in a whole bunch of times.--Ye Olde Luke (talk) 01:47, 31 July 2008 (UTC)[reply]
That should work pretty well. It's basically an electronic version of the bisection method. That article will explain how to do it by hand. --Tango (talk) 01:56, 31 July 2008 (UTC)[reply]
Oh, okay. I've increased the acurracy to 3.3290176, and -.9112938. I'm going to use the more exact figures to adjust my work. --Ye Olde Luke (talk) 02:37, 31 July 2008 (UTC)[reply]
Darnit. With the more precise numbers, one answer worked out great, leaving a remainder of less than .0002. I made a mistake somewhere with the other. --Ye Olde Luke (talk) 03:10, 31 July 2008 (UTC)[reply]
You have some difficulties with consistency. (I would not hire you to do my taxes. :-) In the third from the top box on the right, you did not carry the -11 down and made an error in the column with the -7 in it. Oded (talk) 04:00, 31 July 2008 (UTC)[reply]
I see what I did wrong! When you add a negative to a negative, it gets further from zero! That was a dumb mistake. All right, I think I've gotten it finished. Both remainder coefficients were well below .1, and Oded or myself have (I think) managed to locate all arithmatic mistakes. Is it correct? --Ye Olde Luke (talk) 06:05, 31 July 2008 (UTC)[reply]
One more small mistake. . Always plug it in to check. Oded (talk) 06:26, 31 July 2008 (UTC)[reply]
Mistake fixed. Thanks. One last thing: this time, to check, I plugged .291 + 1.882i into the orignal equation to see if it worked. The answer returned was: 6.3257249E-5+8.2283318E-5i . I'm not sure what that means. Did that happen just because my answer is a little approximated? --Ye Olde Luke (talk) 06:50, 31 July 2008 (UTC)[reply]
That's exponential notation for 0.000063257249 + 0.000082283318i, a complex number that's pretty close to zero. Its magnitude (absolute value) is so you can be pretty confident you've got the right answers. --tcsetattr (talk / contribs) 07:58, 31 July 2008 (UTC)[reply]
Congrat's! You got it. To elaborate on tcsetattr's entry, the E-5 means that you need to multiply the previous number by 10-5. Oded (talk) 15:50, 31 July 2008 (UTC)[reply]
Wow, I actually did it! Thanks Oded, Tango, and everyone else who helped me out! And, as per my promise, everyone who helped me out gets a barnstar! --Ye Olde Luke (talk) 17:11, 31 July 2008 (UTC)[reply]

Using the J (programming language), (which is downloaded for free from www.jsoftware.com), you write

  p. _11 _7 2 _3 1

where the sign p. solves the equation -11-7x+2x^2-3x^3+x^4=0. The answer is

┌─┬────────────────────────────────────────────────┐
│1│3.32901 0.29114j1.8818 0.29114j_1.8818 _0.911294│
└─┴────────────────────────────────────────────────┘

meaning that the four solutions are approximately 3.329, 0.291+1.882i, 0.291-1.882i, and -0.911 . If you want to know what you are doing, study the Durand-Kerner method. Bo Jacoby (talk) 11:23, 1 August 2008 (UTC).[reply]

Adding to a running average

I hope someone can help with this, it's a problem I've come up against whilst coding a game, but I think the problem belongs here rather than on the Computing board.

I have access to a number which is a pre-calculated average of a series of other numbers. I do not know what the individual values making up this average are. All I do know is how many values there were. I want to add a new number to this mystery series, and get a new average value. Is this even possible? If not -- how best can I get a reasonable aproximation of what the value would be?

195.195.236.129 (talk) 18:40, 30 July 2008 (UTC)[reply]

Sure. If your old average is A and you had previously n numbers and you get a new number x, then the new average is . Check it out using the definition of average. Oded (talk) 18:48, 30 July 2008 (UTC)[reply]
It's fairly simple to show why this is true, too. Your running average was found by dividing the running total by the number of values, so you can regain that running total by multiplying the average back by the number of values (so in Oded's notation). Adding on your new number, your new total is , and you've got one more value so you find the new average by dividing by to get (which is the same formula as above).--PaulTaylor (talk) 19:06, 30 July 2008 (UTC)[reply]
The running average article tells us a more stable formula you shoule use if you don't do calculations with exact numbers: the new average should be computed as . (I'm not really good in numerical analysis, but I do remember having read this somewhere, probably in Knuth vol 2. There's also a similar formula for computing the population variance incrementally, but I can't tell what it is.) – b_jonas 16:13, 31 July 2008 (UTC)[reply]

July 31

Prime Factorisation

While finding out all of the prime factors of a number by the prime factorisation method, do we take the smallest possible prime number or the largest possible prime number, while dividing each time? 117.194.228.194 (talk) 17:17, 31 July 2008 (UTC)[reply]

Doesn't matter, either will work. I usually start with small ones since it's easier to see if they divide the number. --Tango (talk) 17:23, 31 July 2008 (UTC)[reply]
Right. The small ones are easier and hopefully when you divide by all the small factors your number is small enough that it is easier to find the larger prime factors, if there are any. Oded (talk) 17:46, 31 July 2008 (UTC)[reply]
Minor quibble, but prime factorisation is just another name for finding out all of the prime factors of a number. The method I think you're talking about is trial division. As the article mentions, there are faster ways of factoring large numbers than trying every possible factor in whatever order. -- BenRG (talk) 18:07, 31 July 2008 (UTC)[reply]
And just to be explicit, the reason why it doesn't matter which prime factor you choose is the fundamental theorem of arithmetic. —Keenan Pepper 03:32, 1 August 2008 (UTC)[reply]

Algebra refresher

In the equation, (-2X^3)(-X^2)(2X), do you add the exponents together or multiply them? This sample test I have doesn't explain how I get to the answer of 4X^6. Thanks, Dismas|(talk) 23:44, 31 July 2008 (UTC)[reply]

You add. Xn is just a shorthand for X multiplied by itself n times, so (X2)(X3) (say) is (XX)(XXX)=XXXXX=X5. It's clear that multiplying can't be right, since in that case multiplying by X1=X wouldn't change the exponent. Algebraist 23:50, 31 July 2008 (UTC)[reply]
Well, when you put it that way, I can see where I should have been able to see it... Thanks! Dismas|(talk) 00:11, 1 August 2008 (UTC)[reply]
Hope I'm not giving you a usless answer or making you confused, but there are cases where you multiply the exponents too. In (X^2)^3 would become X^(2*3) or X^6. --Wirbelwindヴィルヴェルヴィント (talk) 16:03, 1 August 2008 (UTC)[reply]

August 1

Statistics

Hello. I'm a grad student who's been asked to look at some data and come up with some statistics for possible publication, but the data set is small and limited to "present/not present", so I'm not sure how to approach it. To give a little more detail, I have been provided two collections of items, each of which has been attributed with specific features, as follows:

Collection A Collection B
Feature 1 0/30 49/50
Feature 2 5/30 45/50
Feature 3 15/30 40/50
Feature 4 0/30 10/50
Feature 5 20/30 0/50

My experience with statistics is very limited, and I'm having trouble working with the various statistics articles, so the questions I have are as follows:

  1. How would I go about determining the degree of significance of individual features with this data, considering that it's limited to present/absent data as opposed to a range of values?
  2. How could I figure out the likelihood and error that, given the value of three features, an item belongs in a particular set?
  3. What kind of other useful statistics can I even generate regarding this data?

Honestly, I'm not even sure where to start, so any help you can provide would be extremely helpful. Many thanks. - But I Played One On TV (talk) 15:18, 1 August 2008 (UTC)[reply]

For Q3, one possibility might be odds ratio. For Q1 and Q2, you would need to apply a reasonable statistical model. The top of the odds ratio article might offer a hint. Baccyak4H (Yak!) 16:07, 1 August 2008 (UTC)[reply]
Thanks for the odds ratio pointer! I've been reading all day and definitely learning, albeit slowly. Now then, would I be completely out to lunch to try to calculate the p-values for each feature by doing the following?:
  • Define the null hypothesis as OR=1.0
  • Run the natural log of the odds ratio through the standard logistic function to get a range 0<=f(OR)<=1
  • Use the probability mass function where n = sum of collection members (80), k = n * f(OR), and p = 0.5 (which is f(1.0))
Thanks again! - But I Played One On TV (talk) 22:11, 1 August 2008 (UTC)[reply]
Further, if you find those articles too dense, call someone in your school's stats (or in lieu of that, math) department and ask them. Since you mention a publication is possible, you will probably get someone's attention. :-) Baccyak4H (Yak!) 16:21, 1 August 2008 (UTC)[reply]

Hello. Assuming that the collections, A and B, are samples from a big population, you want to know about the population based on knowing the sample. The probability of each feature can be estimated with some uncertainty from the sample data. A collection contains n items of which i have some feature. If you knew the probability, x, that a random item of the population has the feature, then you could compute the probability pi(x) that the collection contains i = 0, 1, 2, ... , n items having that feature. This probability is given by the binomial distribution

This distribution is summarized by it's mean value ± standard deviation:

This means that if you know the population frequency, x, of some feature, then you can estimate the sample frequency of the feature, which is

This formula for estimating i knowing x and n is however not what you want. You want a formula for estimating x knowing i and n. The distribution function for x, knowing i and n is still

apart from an unimportant normalization factor. This distribution function is known as the beta distribution. The mean value of the beta distribution is not , but rather , and the standard deviation of the beta distribution is not but rather So the formula you want is

Substituting your data into this formula gives the following estimates for the population frequencies:

Collection A Collection B
Feature 1 0.03±0.03 0.96±0.03
Feature 2 0.19±0.07 0.88±0.04
Feature 3 0.50±0.09 0.79±0.06
Feature 4 0.03±0.03 0.21±0.06
Feature 5 0.66±0.08 0.02±0.02

Now you want to know if the two collections can be believed to come from the same population. Is a number from a distribution 0.03±0.03 likely to be equal to a number from a distribution 0.96±0.03? Compute the difference

Is this difference likely to be zero? Zero is 0.93/0.05=18.6 standard deviations away from the mean value of the distribution. This difference is highly significant.

Be warned that different statisticians use different approximations and thus may reach different results. The above approach may not be considered standard by your teacher. Have fun!

Bo Jacoby (talk) 23:16, 1 August 2008 (UTC).[reply]

Geometry :convex quadrilateral

let ABCD be a convex quadrilateral .Consider the points E and F such that C is the mid point of the line segment AE and D is the mid point of line segment BF. Evaluat with proof ,the ratio of [ABEF] and [ABCD]


ACtually I am not sure what is meant by [ABCD]. —Preceding unsigned comment added by Khubab (talkcontribs) 22:33, 1 August 2008 (UTC)[reply]

The brackets mean "the area of". I'm thinking about what the best solution to this problem may be (I already have one solution, but it's almost surely not what you're looking for). But remember, do your own homework -- that's the policy of the Reference Desk. You should also be a little more specific when you ask for help. 76.238.91.100 (talk) 04:11, 2 August 2008 (UTC)[reply]
Au contraire — I thought the brackets meant the cross-ratio, as used for example here. —Keenan Pepper 04:15, 2 August 2008 (UTC)[reply]
Hmmm, I didn't know about that. Anyway, if the brackets mean area of, then the answer would be very simple; just use the formula
where is the angle between the diagonals and . This formula works for all quadrilaterals.
EDIT: Concerning the cross-ratio, I'm reading into it.
EDIT2: I looked at this page, and I believe there are typos in their formulas. Cut-the-knot has the correct ones. Also, does anyone know how Wolfram defined the cross ratio of a square to be 2 here (or the values for any of the other shapes for that matter)? 76.238.91.100 (talk) 04:25, 2 August 2008 (UTC)[reply]
Well AC and BD are Lsqrt(2) whereas AD and BC are just L ? (the points on the square go ABCDA etc) is that it?87.102.86.73 (talk) 22:32, 2 August 2008 (UTC)[reply]

August 2