Jump to content

Wikipedia:Reference desk/Mathematics

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by MagneticFlux (talk | contribs) at 19:49, 21 June 2008 (nvm). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

Main page: Help searching Wikipedia

   

How can I get my question answered?

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



How do I answer a question?

Main page: Wikipedia:Reference desk/Guidelines

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


June 15

solution of a Diophantine equation

Given integer n, what are solutions in integers x and y of the Diophantine equation x^2-y^2=n? Bubba73 (talk), 06:11, 15 June 2008 (UTC)[reply]

x = √n*sec(t) y = √n*tan(t)

for some parameter t. —Preceding unsigned comment added by 124.191.114.87 (talk) 06:45, 15 June 2008 (UTC)[reply]

x2−y2=(x+y)(x−y). So factor n=ab and chose x=(a+b)/2, y=(a−b)/2. If n is odd then x and y are integers. If n is even but not divisible by 4 then a+b and a−b are odd and there are no integer solutions. If n is divisible by 4 then chose a and b even. Bo Jacoby (talk) 08:12, 15 June 2008 (UTC).[reply]
Thanks, I had thought of factoring n, but I didn't know if that was the best way. I need all solutions, so that will do it. Bubba73 (talk), 14:28, 15 June 2008 (UTC)[reply]

question about inequalities

Hi Why does the inequality sigh change when both sides are multiplied or divided by a negative number?Does this happen with equations? —Preceding unsigned comment added by Lighteyes22003 (talkcontribs) 08:37, 15 June 2008 (UTC)[reply]

Is the "inequality sigh" the sound you make when confronted with an inequality ? :-) StuRat (talk) 05:08, 16 June 2008 (UTC)[reply]
Hi, your questions sound very much like homework, and we will not do your homework for you. We may give hints if you have at least shown you have tried to do it. I suggest you look at the article on inequality. -mattbuck (Talk) 14:13, 15 June 2008 (UTC)[reply]
The questions don't sound like homework to me, but rather requests for clarification of topics that were not clearly explained in the OP's class. They are very difficult to answer without knowing more about the OP's background. -- Meni Rosenfeld (talk) 14:18, 15 June 2008 (UTC)[reply]
Look what happens with this simple inequality: . You see that multiplying both sides by minus 2 gives . That demonstrates the inequality sign turning around. Equations don't contain inequality signs, instead they have an equals sign that doesn't change, as long as you multiply or divide both sides by the same (any) number.Cuddlyable3 (talk) 14:55, 15 June 2008 (UTC)[reply]
(This doesn't sound like homework to me, it's a general question.) When you multiply by a negative number, the number line is basically flipped over, it's reflected about zero. This reverses all the inequalities. For example 1 < 2, but -1 > -2. It's pretty obvious that this works with numbers, but it works in exactly the same way with more complicated expressions, since once you evaluate them at a particular point, they are just numbers. Diving works in the same way as multiplying, since it's just multiplying by one over the number. Does that help at all? --Tango (talk) 14:58, 15 June 2008 (UTC)[reply]
Oh, and no, it doesn't happen with equations. You can't flip an equals sign - if two things are equal, you can do anything you like to them and as long as you do the same thing to both, they will still be equal. --Tango (talk) 14:59, 15 June 2008 (UTC)[reply]
This doesn't look anything like homework to me either. The "flipping the inequality sign" bit also applies to taking a negative root. Thus X2 > 4 has solutions of X > 2 and X < -2. With some practice you should have flippin' inequality signs mastered in no time. StuRat (talk) 05:12, 16 June 2008 (UTC)[reply]

Inequality

How do you know if a value is a solution to an inequality?How is this difference from determining if a value is a solution to an equation?Lets say you replace the equal sigh with the inequality sign,is there ever a time when you have the same value solution for both an inequality and the equation? —Preceding unsigned comment added by Lighteyes22003 (talkcontribs) 08:44, 15 June 2008 (UTC)[reply]

Hi, your questions sound very much like homework, and we will not do your homework for you. We may give hints if you have at least shown you have tried to do it. I suggest you look at the article on inequality. -mattbuck (Talk) 14:13, 15 June 2008 (UTC)[reply]
See my comment above. -- Meni Rosenfeld (talk) 14:19, 15 June 2008 (UTC)[reply]
Put the value you think is the solution back into the equation or inequality concerned and see whether it works. For example, is an equation and its solution is . You know this solution is right because times indeed equals 12. Note that many different numbers will satisfy (not "solve") most inequalities. Cuddlyable3 (talk) 15:08, 15 June 2008 (UTC)[reply]

THIS WAS HOMEWORK.......I HAVE THE SAME CLASS for AXIA COLLEGE!!!!

Euler-Lagrange equations - The inverse problem

Is there a way to numerically compute the Lagrangian of a system, given a path that the system followed? 212.143.139.133 (talk) 11:08, 15 June 2008 (UTC)[reply]

What a good question! Historically, the path of planet Mars was observed and recorded numerically by Tycho Brahe. Then the data were reduced into physical laws by Johannes Kepler. Further reductions by Isaac Newton and Joseph-Louis Lagrange lead to the Lagrangian. So yes, there is a way! Usually the induction of a physical law from experimental observations is more tricky than the deduction of an experimental result from the physical laws. Bo Jacoby (talk) 10:25, 16 June 2008 (UTC).[reply]
Does a numerical algorithm for solving this kind of problems exist? I am particularly interested in a one dimensional system. Will I be needing more than one path in order to solve the problem? 212.143.139.133 (talk) 11:18, 16 June 2008 (UTC)[reply]
If the motion is periodic, then the energy is conserved. If the kinetic energy as a function of velocity is (1/2)mv^2, then you can numerically compute kinetic energy as a function of position, and from that a table of potential energy as a function of position. Then you need to compute an interpolating function of the table. As several interpolating functions are possible, your solution is not unique. Several paths might improve certainty. Bo Jacoby (talk) 12:20, 16 June 2008 (UTC).[reply]
Unfortunately, the motion is not periodic, it is very general. Furthermore, the potential itself changes all the time and I am not even sure that L=T-U. I guess it is quite a problem!
I am looking for a numerical algorithm which will help me approximate a family of Lagrangians based on paths of the one-dimensional system. 212.143.139.133 (talk) 07:41, 17 June 2008 (UTC)[reply]

Will they ever give up on this pi thing?

I mean, what the heck are the practical implications of finding the last number (if there is one)? Billions of places? Why?--Sam Science (talk) 13:28, 15 June 2008 (UTC)[reply]

There is no last digit, and it has no practical implications (except possibly the testing of new computers). I doubt everyone's going to give up on it any time soon, though: many people seem to enjoy it. Me, I prefer e. Algebraist 13:35, 15 June 2008 (UTC)[reply]
I guess it could help a little in answering the question of whether or not pi is normal. Obviously, an actual proof is needed to answer the question completely, but calculating enough digits could provide strong evidence against normality (I don't think it can really provide much evidence in favour of it). At least then, people would know what to try and prove. --Tango (talk) 14:53, 15 June 2008 (UTC)[reply]

And when they've finished with that, they should have one of thier interns take atom inventory.Sam Science (talk) 14:25, 15 June 2008 (UTC)[reply]

Question: I see from the article that e has been calculated up to 100 billion decimal places. Has it been done with only one algorithm or piece of software? If so, how do we know it's correct? Zain Ebrahim (talk) 14:35, 15 June 2008 (UTC)[reply]

I don't know about e, but when people calculate digits of pi, they will use two algorithms and compare the answers. See here for one of the most recent announcements, explaining the process. I expect the same applies to e. --Tango (talk) 14:53, 15 June 2008 (UTC)[reply]
The constant e and its computation Cuddlyable3 (talk) 15:32, 15 June 2008 (UTC)[reply]

If you had an idea for an algorithm that could compute the digits of pi that ran fast enough to find more digits than anyone has ever found before, how could you resist the urge the write and run it? GromXXVII (talk) 17:37, 15 June 2008 (UTC)[reply]

<joke> calculating enough digits of pi might also uncover secret messages. </joke> Oliphaunt (talk) 21:24, 15 June 2008 (UTC)[reply]
If pi is normal, you will uncover all possible secret messages... eventually. JohnAspinall (talk) 20:53, 16 June 2008 (UTC)[reply]


June 16

trigonometry

How can we calculate sin 18o —Preceding unsigned comment added by Rohit max (talkcontribs) 05:36, 16 June 2008 (UTC)[reply]

See Exact trigonometric constants#How can the trigonometric values for sine and cosine be calculated?. --Prestidigitator (talk) 07:47, 16 June 2008 (UTC)[reply]

Mensuration

How can we calculate the volume of prism? And of Pyramid? —Preceding unsigned comment added by Rohit max (talkcontribs) 05:45, 16 June 2008 (UTC)[reply]

Try checking our articles on prisms and pyramids. Maelin (Talk | Contribs) 05:54, 16 June 2008 (UTC)[reply]

Image of a set

I feel myself very dumb, but... I have a R^2 set S whose image set Z in R^2 should be illustrated. The image set Z consists of vectors z1 and z2 that are represented by functions f1(x1,x2) and f2(x1,x2), respectively. I know how to illustrate S, but how to illustrate Z? How do I 'convert' the vectors in x1,x2 coordinates into vectors in z1,z2 coordinates? —Preceding unsigned comment added by 82.130.19.65 (talk) 09:26, 16 June 2008 (UTC)[reply]

You have a mapping . To find the z-vectors, you just need to know the x-vectors and the functions f_1 and f_2. -mattbuck (Talk) 10:04, 16 June 2008 (UTC)[reply]
Thanks mattbuck, that helps. But still, say I have a set S constrained by and , and the functions are determined by and , where the parameters can assume values from . I just don't "get" how to relate Z to S. 82.130.19.65 (talk) 06:09, 17 June 2008 (UTC)[reply]

antiderivative.. help!

Anyone feel like having a crack at:

ʃekx/x2 dx

or more specifically the function I started out with ʃekx(1-a2/x2) dx

(More specifically the integral between z and infinity where z is positive real, and z=a, k will be negative..).. Also the second (double) integral as well if you get the first..

Hints also appreciated. (87.102.86.73 (talk) 16:44, 16 June 2008 (UTC)[reply]

Integration by parts will reduce it to the exponential integral. Oded (talk) 17:01, 16 June 2008 (UTC)[reply]
is Exponential_integral#Convergent_series (these two covergent series) the best I can expect in terms of ease of calculation..? If so it looks like I would do 'just as well' as expressing the original function as a power series, integrating, and then evaluating (in terms of 'computer arithmetic time'). Thanks. Are there any other options?87.102.86.73 (talk) 18:58, 16 June 2008 (UTC)[reply]
I have to admit I was hoping for a clever substitution I hadn't thought of that would reduce the integral to a sumless form.. such is optimism.87.102.86.73 (talk) 19:00, 16 June 2008 (UTC)[reply]
The advantage in converting it to Ei is that Ei is probably better studied, in terms of its relationships to other functions. Perhaps there is also knowledge out there about efficient ways to calculate it and even ready-made routines. Oded (talk) 19:22, 16 June 2008 (UTC)[reply]

Percentages help

70% of my math mark is 68%. What if the other 30% (my final exam) is a big fat 0%? How would I put these together to find out my final mark?--Richard (Talk - Contribs) 22:46, 16 June 2008 (UTC)[reply]

Well, I assume you mean that you have scored 68% average over the first 70% of the course, rather than having 68% from 70% possible so far. It's pretty simple, multiply 0.7 by 0.68 to get your current percentage mark, then add on 0.3 times your exam mark. -mattbuck (Talk) 23:20, 16 June 2008 (UTC)[reply]
(ec) What you need to do is take a weighted average of the two scores, 68% and 0%, using respective weights of 70% and 30%. So you have 68%*70% + 0%*30% = 68% * 0.7 = 47.6%. Suppose the pass mark were 50%, then you could find out what you need to get in the final to pass - you need an extra 2.4%, and dividing that by 0.3 gives a total of 8 marks needed. (If you're interested, see what your maximum mark is, assuming you ace the final.) Confusing Manifestation(Say hi!) 23:22, 16 June 2008 (UTC)[reply]

That works, ConMan. Thanks. If I get a 0 on the exam, I'll have a 47.6%, though if I ace it, I'll get a 77.6%. Hopefully I'll get over 50 to pass... Thanks for your help guys.--Richard (Talk - Contribs) 00:21, 17 June 2008 (UTC)[reply]


June 17

Arithmetic

shanu 07:42, 17 June 2008 (UTC)Suppose than x,y,z are real numbers not equal to zero. a & b are two negative real nos. Is it always possible to find another real no. c such that xa + yb = zc . For example consider 2-1 + 3-1 = 1.2-1 . I am thinking of this because fermat's last theorem doesen't allows it for natural nos. greater than 2.

For any given x, y, a and b values the left side of your equation is some constant value: v = xa + yb. Then the equation v = zc with given z has a solution defined by logarithm: c = logzv = log v / log z. --CiaPan (talk) 07:59, 17 June 2008 (UTC)[reply]

Cube Root

How can we find cube root of any no. ,like 2 without using calculator? —Preceding unsigned comment added by Rohit max (talkcontribs) 07:59, 17 June 2008 (UTC)[reply]

We can use a paper and a pencil. Possibly Tables of logarithms, too... --CiaPan (talk) 08:02, 17 June 2008 (UTC)[reply]
Without a log table it's a little harder. A good way to do it would be to start at some estimate and repeatedly iterate . -- Meni Rosenfeld (talk) 08:54, 17 June 2008 (UTC)[reply]
Perhaps this will also be interesting. Not very effective for pen and paper, though. -- Meni Rosenfeld (talk) 09:10, 17 June 2008 (UTC)[reply]
Apparently, there are a couple of "paper and pencil" algorithms for finding cube roots. This is one example (haven't checked it out, to be honest). Pallida  Mors 01:41, 18 June 2008 (UTC)[reply]
The simplest way is by the bisection method. Of course, if you actually mean *any* number, you'd have to consider calculating sines and cosines as well...--Fangz (talk) 01:55, 18 June 2008 (UTC)[reply]

-3^2 = ?

I brain farted with the initial question, asking 9^9. This is why Meni answered 'wrongly' - it's my fault -- 88.217.28.51 (talk) 08:54, 17 June 2008 (UTC)[reply]

Hi all,

-3^2 = 9

vs

-3^2 = -9

Which is correct? We can't agree, so I am asking here.. -- 88.217.28.51 (talk) 08:43, 17 June 2008 (UTC)[reply]

See Order of operations. Exponentiation takes precedence over negation. Thus to evaluate -9^2, we first replace 9^2 with 81, giving -81. Thus -9^2 = -81. If we wanted to do the negation first, we would use parentheses: (-9)^2 = (-9)*(-9) = 81. -- Meni Rosenfeld (talk) 08:49, 17 June 2008 (UTC)[reply]

^ vs **

Now, they claim that ^ (not the XOR kind) and ** are different operators. Opinions on that one? -- 88.217.28.51 (talk) 10:38, 17 June 2008 (UTC)[reply]

What is the context? In what way do "they" claim the operators are different? ** is not used in mathematical writing, only in some programming languages. Some languages use ^ to mean exponentiation, and some use **. I do not know of any other difference. -- Meni Rosenfeld (talk) 10:47, 17 June 2008 (UTC)[reply]
My thoughts exactly. Thanks -- 88.217.28.51 (talk) 10:52, 17 June 2008 (UTC)[reply]
The only language I know of that distinguishes between them is Haskell. ^ raises any number to an non-negative integer power (thus the result can have the same type as the base even in the case of integers, and it can be computed by repeated multiplication). ** raises numbers to floating-point powers and gives a floating-point result (in this case we can make no guarantee about whether the result is an integer or even rational, and we have to use a different algorithm to calculate the value). --Taejo|대조 11:51, 17 June 2008 (UTC)[reply]
See also Exponentiation#Exponentiation in programming languages. PrimeHunter (talk) 12:16, 17 June 2008 (UTC)[reply]
Python is another example. ** is exponentiation and ^ is XOR. Dragons flight (talk) 16:04, 18 June 2008 (UTC)[reply]
OP said "not the XOR kind" --Taejo|대조 17:44, 22 June 2008 (UTC)[reply]

June 18

Constant rule of differentiation

Constant rule states that derivative of any constant is zero:

let y=c.

Why should 0/0 be 0 rather than undefined?--218.102.124.108 (talk) 05:24, 18 June 2008 (UTC)[reply]

Because limit of the ratio of two functions is not necessarily equal the ratio of limits of those functions. Anyway check the limit's definition, and see that values of 0/Δx are arbitrarily close to zero when Δx approaches zero (in fact they are all equal zero), so they satisfy conditions in the limit definition. --CiaPan (talk) 05:47, 18 June 2008 (UTC)[reply]
Your mistake is in the step . Taking a limit is not the same as plugging in a value for the function; that is, is not necessarily (if it was, we wouldn't invent limits in the first place). The correct steps are . If you make this mistake it will happen when you calculate any derivative, not just for a constant. Do read up on the definition of limits. -- Meni Rosenfeld (talk) 08:28, 18 June 2008 (UTC)[reply]
More specifically, you can 'plug in' limits like that, provided the denominator does not equal zero, as it does in your case.--Fangz (talk) 11:51, 18 June 2008 (UTC)[reply]
You can plug in values if the function is continuous at the point. It is true that for rational functions, this happens exactly when the denominator is not zero at the point. Not all functions are rational, though. -- Meni Rosenfeld (talk) 12:54, 18 June 2008 (UTC)[reply]
Thanks everyone. I think I've known what's wrong with me. But what I intended to solve is 0/0:
So what is the result of 0/0?--218.102.124.108 (talk) 15:34, 18 June 2008 (UTC)[reply]
0/0 is undefined in all common structures. See division by zero. -- Meni Rosenfeld (talk) 15:38, 18 June 2008 (UTC)[reply]
, and that's true for any number x (it can also be true for infinity in some circumstances), so basically 0/0 can equal anything. If you end up with a 0/0 somewhere, you have to go back a step and work it out a different way, because it could come out to be absolutely anything. For example, if f(x)=0/x, then, if you want f to be continuous, you have to set f(0)=0, but if f(x)=x/x then f(0)=1, or if f(x)=2x/x, then f(0)=2. (Those are pretty trivial examples, but they should give you an idea of what can happen.) --Tango (talk) 15:52, 18 June 2008 (UTC)[reply]
The string of characters "0/0" can mean two different things. It can mean an attempt to divide 0 by 0, in which case it can't equal anything as it is undefined. It can also mean a certain Indeterminate form, in which case it could indeed evaluate to anything, but is only a mnemonic, not an actual mathematical entity. -- Meni Rosenfeld (talk) 16:05, 18 June 2008 (UTC)[reply]
Yes, I should have been clear I was speaking very informally, just to give an idea of why it is undefined. --Tango (talk) 16:18, 18 June 2008 (UTC)[reply]

cubic metres, cubic kilometers

A recent article about the Niger Delta talked about "10 trillion cubic meters of natural gas reserves" in one region there, and "28,800 cubic km" (kilometres, we assume) of natural gas reserves is Russia. Too many zeroes...will 1000 cubic meters be 1 cubic kilometre, and therefore 28,800 cubic km, will be 28,800,000 cubic meters...which is only 28.8 million cubic meters...which must be way less than 10 trillion (10,000,000,000,000 (is a trillion a thousand billion?)...So the Niger Delta reserves in this one region are millions of times more than the reserves in Russia? Surely we are confused over the math, but maybe the press was wrong. Can anyone confirm or correct our understanding? Thanks if you can help. —Preceding unsigned comment added by 213.84.41.211 (talk) 14:20, 18 June 2008 (UTC)[reply]

There are 1000 meters in a kilometer, but 1000^3 = 1,000,000,000 cubic meters in a cubic kilometer. Wikiant (talk) 14:27, 18 June 2008 (UTC)[reply]
So there are in fact 29 trillion cubic meters of gas in Russia. I think mass is a much more useful measure for the quantity of a gas then volume, though. -- Meni Rosenfeld (talk) 15:36, 18 June 2008 (UTC)[reply]
Agreed. I don't think Nigeria is the same temperature as Russia. Algebraist 15:42, 18 June 2008 (UTC)[reply]
It might be underground, though. At least, there is probably less of a difference. --Tango (talk) 15:48, 18 June 2008 (UTC)[reply]
I think such measures are based on what the real volume would be under certain standardized conditions. See Natural gas#Energy content, statistics and pricing. PrimeHunter (talk) 00:04, 19 June 2008 (UTC)[reply]
I figured as much, but I still find it unnecessarily confusing. -- Meni Rosenfeld (talk) 11:49, 19 June 2008 (UTC)[reply]

In answer to the side question, most people writing about numbers that big in English use a billion to mean 1,000,000,000 (109) and a trillion to mean 1,000,000,000,000 (1012). But until recent decades, it was usual in English outside of North America for a billion to mean 1,000,000,000,000 (1012) and a trillion 1,000,000,000,000,000,000 (1018). The cognate words in most other languages have the larger meanings, and some people still prefer them for use in English. See long and short scales (and please do not debate them here). --Anonymous, 02:27 UTC, June 19, 2008.

A billion being a thousand million is pretty much universal these days. There's no need to worry about possible alternatives. --Tango (talk) 11:58, 19 June 2008 (UTC)[reply]
See billion (word). Bo Jacoby (talk) 22:35, 20 June 2008 (UTC).[reply]

Random numbers

Random numbers may be generated on computers, graphing calculators, and even Excel spreadsheets. (Although these are technically referred to as "pseudo" random numbers, that distinction is irrelevant for purposes of this question.) The following scenario came to mind, from which this question arises. Let's say that a teacher asks his students, as a homework practice exercise, to generate 5 random numbers, with each random number ranging from 0 to 9 inclusively. So, for example, one student might generate 3, 7, 2, 1, 9. Another student might generate 5, 6, 3, 5, 2. And so forth. Now, say there is a lazy student who did not do the homework and, when asked, lies to the teacher and fabricates that he generated 7, 7, 7, 7, 7. (Also, indicating a none-too-bright student, as he could just as easily have lied with a less "suspicious" result of another fictitious string of numbers such as, say, 4, 1, 8, 3, 0 or so.) So, the teacher gets suspicious at the result of 7, 7, 7, 7, 7, and suspects that the student cheated and did not, in fact, actually do the homework assignment. So, here is my question. Should the teacher, in fact, get suspicious at such a result? Is a result such as 7, 7, 7, 7, 7 equally likely as a series of 5 different digits (say, 3, 8, 0, 2, 6) … or is such a result not as equally likely in the generating of random numbers? My understanding is that any (and all) of the 5 separate digits is randomly generated and, thus, a result such as 7, 7, 7, 7, 7 should not be a surprising result. But, my gut instinct also tells me that it is highly unlikely to generate a result such as 7, 7, 7, 7, 7 and that a mixture of different digits is much more likely / probable. What is the truth of the matter? If all 5 digits are randomly generated, why does a result like 7, 7, 7, 7, 7 seem so improbable? Any insights? Thanks. (Joseph A. Spadaro (talk) 23:23, 18 June 2008 (UTC))[reply]

There are more than one way to answer this; I'll pick the one that seems most in line with your motivation. It all comes down to Bayes' law. Let A be the event "student cheated", B be "Student chose 38026", C be "student chose 77777". Assume P(A)=10% and that a cheating student can only come up with a constant sequence, thus P(C|A)=10%. Then , while . Of course you can replace the assumptions with whatever you find reasonable to get more realist estimates. -- Meni Rosenfeld (talk) 23:36, 18 June 2008 (UTC)[reply]
Theoretically a computer can generate a random number, not just a pseudorandom number. Although in my opinion and ignorance of physics, I am under the belief that of what’s on the market, only the quantum random number generators can be truly random, and those will cost as much as the computer to run them.
As for the actual question… I would try to find some way of measuring how random a number “looks”. Very subjective, but 2 4 9 5 2, 9 5 2 3 1, and 7 7 7 7 7 are all equally likely, but like most normal people my first reaction wouldn’t be to question the first two, but would be the third: because there are a lot of numbers that “look like” the first two, but only a few if any numbers that “look like” the third. GromXXVII (talk) 23:57, 18 June 2008 (UTC)[reply]
(e/c)Random is as random does - but human brains are very good at spotting patterns, even when they're spurious. Write down what you think would be 50 perfectly random coin tosses, and you're not likely to write down any sequence with more than 3 or 4 heads in a row. And yet, you're actually quite likely to get a run of 5, which you will find if you actually do the coin tosses a few times. The run of 5 heads is a pattern, and since we don't expect to see patterns in "random" data, it throws us.
That said, if you see something "odd", then you can perform a hypothesis test to see if it's statistically unlikely. First, you get an idea of what the results would look like if they were selected randomly - say, with each digit uniformly distributed between 0 and 9. Then you quantify just what is "odd" about Johnny's 7, 7, 7, 7, 7 (i.e. "it's the same digit 5 times). Finally, you calculate the probability that you would find a result equally as odd as or more odd than Johnny's, and from that probability determine whether it still seems unlikely (5% is a common cutoff, 1% if you're being more lenient). The probability of getting 5 digits the same is 1/1000, or 0.1%, so Johnny might be looking a little nervous right now.
And for the silly answer, both students fail. The perfectly random selection would be 4, 4, 4, 4, 4[1]. Confusing Manifestation(Say hi!) 00:06, 19 June 2008 (UTC)[reply]
[ec] Some more thoughts:
  1. 77777 has a lower Kolmogorov complexity than 38026. This is why a cheater with no access to an adequate RNG is more likely to generate 77777 than 38026.
  2. While 77777 is as likely as 38026, there are simple associated variables that are not equilikely. For example, you can define a variable "how many different digits are in the sequence". This will be 5 with probability ≈30%, and 1 with probability 0.01%.
  3. Occam's razor says the simplest explanation to an observation tends to be the correct one. The sequence 38026 is not likely to occur, but if it does occur, the only explanation is that it happened randomly (again assuming that without a RNG it's difficult to come up with it). If, however, we are presented with 77777, the simplest explanation is that the student cheated.
-- Meni Rosenfeld (talk) 00:14, 19 June 2008 (UTC)[reply]
Here are some approximate odds (I didn't want to use a calculator to find the exact odds):
Chances of a given student picking 7 7 7 7 7 exactly: 1 in 100,000.
Chances of a given student picking any number 5 times in a row: 1 in 10,000.
Chances of any student in a class of 25 picking any number 5 times in a row: 25 in 10,000 or 1 in 400.
Chances of any student in a 8 classes of 25 each picking any number 5 times in a row: 200 in 10,000 or 1 in 50.
Chances of any student in a 8 classes of 25 each picking any number 5 times in a row or any sequence of 5 numbers in a row (0-4, 1-5, 2-6, 3-7, 4-8, 5-9, 6-0, 7-1, 8-2, 9-3): 200 in 5,000 or 1 in 25.
Add in reverse sequences like 9 8 7 6 5 and even sequences like 0 2 4 6 8 and odd sequences like 1 3 5 7 9 and now reverse those, too, and there's a good chance that one student would hit one of those. StuRat (talk) 00:17, 19 June 2008 (UTC)[reply]


I don't think that's a good argument. There's a lot of reason to think that a student without a RNG can just make up a number like 38026, and it's arguable that a number like 77777 is unlikely to arise out of a student told to work out a random number generation and thus *more* likely to be random. (In fact, IIRC, there's good evidence that in human generated sequences, usually runs of numbers are *less* common than in actual random numbers, especially in the binary case.) Trying to find ways that 77777 is special is also very dangerous, since the arguments previously put forward are equally applicable to any finite sequence. Even something like Kolmogorov complexity isn't helpful, because you can easily define a post-facto language where 38026 is easy to generate while 77777 is not. (E.g. 38026 can be someone's birthday, while 77777 cannot)
I think the probably best way to deal with the problem is a bayesian approach. You need to pre-specify an impression of what a human generated sequence is like, and what a good rng is like, and set some prior probabilities. Then just update your beliefs. Specifically, there isn't a good way to just say a probability - your view of whether the sequence is random or not can only be stated relative to a well (and in advance, especially not based on perceived specialness of the sequence) defined alternative hypothesis and/or a set of priors.--Fangz (talk) 00:48, 19 June 2008 (UTC)[reply]
  1. You have raised the psychological warfare issue - "the student knows I will suspect 77777, and thus will avoid it if he cheats". The problem with this is that it can always be taken one step further - "The student knows I know he knows, and thus will choose 77777 if he cheats in order to trick me". It's thus not very reliable reasoning.
It is not reliable reasoning, but it does serve to point out a flaw in your argument. Implicit in any attempt at discriminating one hypothesis from another is a model - and indeed, a psychological model of how the student is likely to react. It is impossible to argue broadly that out of *all* possible algorithms the student may use instead of a random number generator, certain sequences are objectively more likely than according to random chance.
  1. You say that trying to find projections from the space of sequences to a lower-dimensional space in which 77777 is projected to a salient outcome is dangerous. However, it is only dangerous if the projection is complicated and arbitrary. For example, we could define " is 0 if , otherwise ". Then will have a very low probability, so we will reject an answer of 38026. However, this projection is very arbitrary and silly. If we stick to something simple and natural, like " is the number of distinct digits in ", we should be good.
But the issue is that there is no rigorous mathematical framework around that definition of 'simple and natural'. I stress, the difference is that you need to pre-define your specialness criteria. Not choose it based on the number itself. (For example, regarding 38026, 38026 is 2 * 19013, which is a very rare 5 digit centered square prime number. 77777 is not a multiple of two primes like that. Are prime numbers more special and non-arbitary than repeating digits? Who can tell?) --Fangz (talk) 15:57, 21 June 2008 (UTC)[reply]
  1. In your Bayesian framework, you say we need "an impression of what a... sequence is like". But this can only be formalized in terms of some projection like above. The essence of your suggestion is that instead of arbitrarily choosing the probability of a student cheating and the distribution of given that he is, we should calculate them based on observations. However, such observations are hard to come by. Cheating students will generally not admit to doing so, and asking random students to invent their own sequences may not give you a lot of insight into the mind of the cheater.
-- Meni Rosenfeld (talk) 11:45, 19 June 2008 (UTC)[reply]
If you want to get psychological you also need to account for the fact that if a student genuinely gets 7,7,7,7,7 out of a RNG, they are likely to think something has gone wrong and do it again. --Tango (talk) 15:04, 19 June 2008 (UTC)[reply]

Basically, to give a sensible assignment like that, you should ask for enough numbers that a sensible randomness test will give a clear answer. Say you ask for 200 numbers and you get the following output from a student:

1549248135779511892489513549165798
7691249876216984798416498765194327
9165498732498490987951979164984691
9498496519496195498795195746249832
4981951976249519762495462498746579
5162195762169795194957264916

Did he do this by tapping on a keyboard or by using a RNG? (Hint - I am lazy!) So maybe you can do the chi-square test and the runs test and get a pretty good answer. --Slashme (talk) 13:52, 19 June 2008 (UTC)[reply]

Maybe the runs test isn't very sensitive! For example, for the numbers I gave (monkey style), I got a runs test value of -1.2535104, giving a P-value of 0.10601 and for 200 random numbers from Excel, I got a runs test result of -1.5420651, giving a P-value of 0.06258. (done using a javascript applet found on the web, so maybe there's a bug? I'm too lazy to check the code for correctness) --Slashme (talk) 14:40, 19 June 2008 (UTC)[reply]

Follow up

Thanks for all the responses above. They were all very helpful. What makes the most sense to me lies within Grom's reply, which essentially states that some data will "look" randomly generated and some data will not "look" randomly generated. (Thus, arousing the teacher's suspicions.) So, let me re-phrase my original question. Let me use "39710" as a value that does look randomly generated, and let me use "77777" as a value that does not look randomly generated. I understand that the definition of "look" is fuzzy, but I assume that people generally know what I mean. (For example, a value such as "12345" does not look randomly generated, but a value such as "83016" does.) So, to re-phrase my original question … in terms of mathematics and random number generation and probability … is a value that does look randomly generated (e.g., 39710) equally like / probable as a value that does not look randomly generated (e.g., 77777)? If you want to clarify the fuzzy definition of "look", I can ask it this way: is a random number which has no repeating digits (e.g., 39710) equally likely / probable as a random number which has all 5 digits repeated (e.g., 77777)? In a true random generator, will both of those values appear with equal likelihood / equal probability? Thanks. (Joseph A. Spadaro (talk) 16:24, 19 June 2008 (UTC))[reply]

The chance of a specific sequence coming up is the same for any sequence (assume a truly uniform and independent random number generator). So 83016 is just as likely as 77777. The real question is about how many "random looking" sequences there are and how many "non-random looking" sequences there are, because those are what determine the chance of the sequence you generate being random looking or not, because you don't actually care which (non-)random sequence you get, you just care if it looks random or not (ie. you could replace 77777 with 55555 and it wouldn't make any difference). There are 105=100,000 possible sequences of 5 digits. How many of those don't look random depends on your definitions (for example, does 12121 look random or not?), but you even with quite restrictive definitions you can find quite a few. Also, it's important to note, as someone pointed out above, that even quite unlikely occurrences end up being quite likely to occur if you do the experiment enough times. --Tango (talk) 16:37, 19 June 2008 (UTC)[reply]
The problem isn't in the randomness, but in the prejudice of the reader. When selecting randomly from the set of integers from 1 to 100,000, the numbers 77777, 12345, 39710, and 83016 all have the same probability of occurring (1 out of 100,000). It is only the reader's misplaced "feeling" that 77777 is less likely than 83016 that is responsible for the suspicion that 77777 was not randomly selected. (In fact, one might exploit that prejudice as follows: A (large) list of numbers that contains no numbers such as 77777, 12345, 54321, etc. is likely "faked.") Wikiant (talk) 16:35, 19 June 2008 (UTC)[reply]
If I was the teacher then 77777 would make me suspicious and 83016 would not. Not because 77777 seems less likely than 83016 to be the result of a random process, but because 77777 seems more likely than 83016 to be the result of a non-random process. It could for example be cheating to avoid home work, or a cheeky student testing how the teacher or other students would react, or the result of using a poor method to generate the sequence, or simply a stuttering student. But without more information I don't think there is a meaningful way to assign percentages to these and other possibilities. PrimeHunter (talk) 17:21, 19 June 2008 (UTC)[reply]
I'm not sure that your reasoning is clear. Let F be the event "student has fabricated the data". Let 7 be the event that the student reports 77777, and let 8 be the event that the student reports 83016. What I heard you say is, "Pr(7|F) > Pr(8|F)." I believe that the pertinent question is, "is Pr(F|7) > Pr(F|8)?" Wikiant (talk) 21:13, 19 June 2008 (UTC)[reply]
I estimate Pr(7|not F) = Pr(8|not F), and Pr(7|F) > Pr(8|F). Based on this (and 0 < F < 1), I conclude Pr(F|7) > Pr(F|8). So I think 77777 gives rational reason to suspicion even though a random number would have the same chance of being 83016. PrimeHunter (talk) 22:19, 19 June 2008 (UTC)[reply]
From Bayes' theorem, we have: Pr(F|7) = Pr(7|F) Pr(F) / Pr(7) and Pr(F|8) = Pr(8|F) Pr(F) / Pr(8). If you are correct that Pr(F|7) > Pr(F|8), then (from Bayes) it must be true that Pr(7|F) / Pr(7) > Pr(8|F) / Pr(8). You claim that Pr(7|F) > Pr(8|F). But if the cheater is more likely to use 7 than he is to use 8, then the unconditional probabilities must be such that Pr(7) > Pr(8). This, however, leaves us with no conclusion as to the comparison of Pr(F|7) and Pr(F|8). Wikiant (talk) 22:53, 19 June 2008 (UTC)[reply]

P(F|7) > P(F|8) with my assumptions is intuitively clear to me and can probably be shown easier than the following.

P(8) = P(F)P(8|F) + (1-P(F))P(8|not F).
P(7) = P(F)P(7|F) + (1-P(F))P(7|not F).

I assume 0 < P(F) < 1, and 0 < P(7|not F) = P(8|not F).
Let a = (1-P(F))P(7|not F) = (1-P(F))P(8|not F). Then 0 < a < 1.
P(8) / P(7) = [P(F)P(8|F) + a] / [P(F)P(7|F) + a].

From Bayes' theorem:
P(F|7) = P(7|F)P(F)/P(7), and P(F|8) = P(8|F)P(F)/P(8).
Then P(F|7) / P(F|8) = P(7|F)/P(8|F) * P(8)/P(7).
Substituting the earlier expression for P(8)/P(7) gives:
P(F|7) / P(F|8) = P(7|F)/P(8|F) * [P(F)P(8|F) + a] / [P(F)P(7|F) + a]
                = [P(F) + a/P(8|F)] / [P(F) + a/P(7|F)].
I estimated P(8|F) < P(7|F), so (remembering a > 0):
P(F) + a/P(8|F) > P(F) + a/P(7|F), and then P(F|7) > P(F|8).

PrimeHunter (talk) 01:02, 20 June 2008 (UTC)[reply]

follow on (from another person)

(please excuse my bad manners)
Seeing as we've now had the discussion I would like to point out that "the teacher asks for five random numbers from his students, and then proceeds to mark them." does represent some sort of 'false hypothesis' - only the teacher is wrong here... Clearly though the sequence "1","7","banana","3.4","8","0","4" is wrong in at least two ways... Can you spot them?

Here's a 'spin' on the question - you ask me to generate 5 random numbers ignoring the original "only 0-9" qualification)- I present "pi","e","sqrt(2)","1" and "0" .. is this sequence any less random than eg "2","6","5","7","1" ? Do I gain or lose marks for 2i ?87.102.86.73 (talk) 17:16, 19 June 2008 (UTC)[reply]

Well, say the teacher asks for 2000 random digits and proceeds to mark them, and one set of numbers, according to one of the standard randomness tests has a probability of 0.0000001% of having been generated by a random process (because the student just banged on the numeric keypad 100 times and cut and pasted the resulting numbers 20 times) should he fail the student?. --Slashme (talk) 13:13, 20 June 2008 (UTC)[reply]

My opinion

I think the answer depends on whether or not the order of the numbers matters. If order does matter then I say yes something like "77777" is more unlikely than say "12345". If order does not matter then it is just as likely as anything else.

When order does matter, then the second you get something thats not a 7 you're screwed so to speak. So the chance of "77777" being the result is (1/10)^5 because you have to get a 7 each time. But with "12345" you could, for example, get any of the five digits, then any of the four remaining, then three etc so the probability can be worked out with combinations and it will be more likely than "77777"

When order does not matter, the probability of any number sequence (of 5 digits in our case) is always (1/10)^5 --212.120.247.132 (talk) 17:43, 20 June 2008 (UTC)[reply]

Yes, that sounds right, 5 different specific digits should be 120 (5!) times more likely than one specific digit 5 times. --Tango (talk) 18:15, 20 June 2008 (UTC)[reply]

Thanks to all for the above discussion. You have all been helpful. And your mathematical insights have been very elucidating for me, on this topic. Thanks. I really appreciate the input and the discussion. (Joseph A. Spadaro (talk) 01:13, 20 June 2008 (UTC))[reply]

Seems to me that the fault lies with the teacher for not specifying clearly what they meant by "5 random numbers". If the teacher wanted 5 different random numbers then they should have said so. Without this qualification, it is unfair to penalise the 7 7 7 7 7 response unless you also penalise every other response that might have been generated some non-random process (or not even pseudo-random) process. What about 1 2 4 8 6, or 1 3 9 7 1, or 1 4 9 6 5, or 1 1 2 3 5, or 3 1 4 1 5, or 2 7 1 8 2, or 5 7 7 2 1, or 1 6 4 4 9 ? Each of those sequences has a pattern, and so should also be penalised. Of course, the teacher's ambiguity could be deliberate, and the responses could be a springboard for a discussion of how assigning a meaning to the term "random number" is not as straightforward as it appears at first sight. Gandalf61 (talk) 12:07, 21 June 2008 (UTC)[reply]
Exactly - a single sample from any distribution tells us precisely nothing..87.102.86.73 (talk) 14:12, 21 June 2008 (UTC)[reply]

June 19

Infinite Series Involving Prime Numbers

I came across the following series while studying some Fourier Analysis. Given the infinite series



After writing it in the following closed form



where returns the n-th prime number. Now this series seems to be converging and in fact it seems to be converging to a numerical value of . My question is, how can we tell for sure if this series is converging or not and if it is converging, what is it converging to? Is there anyway to find out what the exact value is? Is this a well-known fact, a well-known constant?A Real Kaiser (talk) 01:49, 19 June 2008 (UTC)[reply]

The series certainly converges, by the alternating series test. Have you tried Plouffe's inverter for the limit (I don't have a precise enough estimate)? Algebraist 01:13, 19 June 2008 (UTC)[reply]

Actually no, I had not tried looking up in the inverter. I want to but the problem is that this series converges so slowly, after adding up the first 100,000 terms, I still only had 1.04693... and I am not even sure about the last digit 2 yet. So, first I have to write up a more efficient program to calculate more digits (faster) so that I can obtain more decimal places. Meanwhile, does anyone have any idea what this number is?A Real Kaiser (talk) 01:49, 19 June 2008 (UTC)[reply]

I'm fairly certain it starts 1.046932971... (with the last 1 possibly a 0). Plouffe's returns no hits. -- Meni Rosenfeld (talk) 09:56, 19 June 2008 (UTC)[reply]
See Proof that the sum of the reciprocals of the primes diverges -- Q Chris (talk) 10:32, 19 June 2008 (UTC)[reply]
How is this relevant? -- Meni Rosenfeld (talk) 10:47, 19 June 2008 (UTC)[reply]
I think I've found it on OEIS: [2] - note that their formulation differs from yours, because you've omitted 2 and 3, and included 1. Oops, didn't notice the oddity in your thing. It isn't the same after all. Well, maybe that's a start, at least.--Fangz (talk) 11:35, 19 June 2008 (UTC)[reply]

Maths (Indian mathematicians)

How do I get the clips of Sridhara on wikipedia?Minintelligent (talk) 10:52, 19 June 2008 (UTC)[reply]

What do you mean by "clips"? You can add pieces of information to the Sridhara article if you have anything suitable. If you are having trouble with editing then you should try reading Wikipedia:How to edit a page, which gives lots of assistance. --tiny plastic Grey Knight 11:55, 19 June 2008 (UTC)[reply]

Meaning of Exponent In Trigonometric Expressions?

What does mean? And And ? Etc.
The Piano Man (talk) 14:14, 19 June 2008 (UTC)[reply]

  • means or equivently . It is used to distinguish easily from . Similarly the same rule applies for the other trig functions. Rambo's Revenge (talk) 14:32, 19 June 2008 (UTC)[reply]
It's important to note that for most other functions, the same notation means to apply the function twice, . The way it's used for trig function is an abuse of notation, but it's a very convenient one. --Tango (talk) 14:39, 19 June 2008 (UTC)[reply]
Be careful though, as , but is instead equal to . -mattbuck (Talk) 15:20, 19 June 2008 (UTC)[reply]
And if you see , it's best just to run away and hide! --Tango (talk) 15:27, 19 June 2008 (UTC)[reply]
Are you sure about that? I’ve only seen this notation used as composition when is being considered as an operator. It then only naturally makes sense because operator spaces have their multiplication operation as composition, while function spaces have their multiplication operation as pointwise multiplication. Thus if is being considered an operator, it is unambiguous , while if is being considered in a typical function space it is still unambiguous, GromXXVII (talk) 00:02, 20 June 2008 (UTC)[reply]
The notation is sometimes unambiguous for trivial reasons: if the image of f is not contained in its domain, then the first interpretation is impossible, while if the range of f has no multiplication operation, then the second is impossible. Algebraist 00:09, 20 June 2008 (UTC)[reply]
Yeah, pretty sure. That's the way I've generally seen it used. The most obvious example is f-1 - that almost universally means the inverse of f, never it's reciprocal, and other exponents generally work the same way. I'm not sure what you mean by a "function space" - I would usually that term to refer to a vector space of functions, which doesn't have a multiplication (other than scalar multiplication, of course). The closest you get to a multiplication would be an inner product, but that gives you a scalar, not a function. --Tango (talk) 12:14, 20 June 2008 (UTC)[reply]
I think he was referring to when you have an algebra of functions. --137.205.233.134 (talk) 13:06, 20 June 2008 (UTC)[reply]

savant mathématicien

Bonjour, Pourquoi M.Jan MIKUSINSKI né le 3 avril 1913 à Stanislawow et décédé le 27 juillet 1987 à KATOWICE ne figure pas dans la liste des grands mathématiciens connu pour son travail de pionnier dans l'analyse mathématique.M.Mikusinski a développé un calcul opérationnel 44a40 calculus of Mikusinski,qui sont pertinentes pour résoudre les équations différentielles.Son calcul opérationnel est basé sur un calcul de la convolution des fonctions à l'égard de la transformés de Fourier.De la convolution produit qu'il va à définir ce que dans d'autres contextes est appelé le domaine de fractions ou un quotient domaine.Ces couples de fonctions M.Mikusinski appels opérateurs-Mikusinski opérateur,44a40 il est également bien connu pour Cube et Antosik-Mikusinski Théorem,Mikusinski convolution algèbre etc. Récupéré "de http://en.wikipedia.org/wiki/Jan_Mikusinski" Plusieurs grands savants polonais figurent aux États-Unis en Suède et font des conférences partout dans le monde. La Pologne peut être très fière d'avoir des savant d'une telle renommée dans le monde entier. —Preceding unsigned comment added by 90.54.102.79 (talk) 14:41, 19 June 2008 (UTC)[reply]

Sir, this is not a question, but a statement. You might have also read that he died twenty years ago... Monsieur, ce n'est pas une question, mais une déclaration. Vous avez peut-être également lire qu'il est mort il ya vingt ans. 86.152.76.21 (talk) 17:02, 19 June 2008 (UTC)[reply]
Ne pleure pas, Alfred - j'ai besoin tout mon courage pour mourir á vingt ans! Damien Karras (talk) 21:05, 19 June 2008 (UTC)[reply]
I don't understand this language. Can anyone make a translation?--218.102.124.108 (talk) 17:03, 20 June 2008 (UTC)[reply]
It's french. He's complaining that a certain man did various work in mathematical analysis, but does not figure in some list of great mathematicians.--Fangz (talk) 23:13, 20 June 2008 (UTC)[reply]
Translation: Hello, Why does Mr. Jan MIKUSINSKI born April 3 1913 in Stanislawow, deceased July 27 1987 in KATOWICE and known for his pioneering work in mathematical analysis not figure in the list of great mathematicians[?] Mr. Mikusinski developed an operational calculus [which helps] resolve differential equations. His calculation...is based on the convolution of Fourier functions. The convolution produces what is defined in other contexts as the domain of fractions or a quotient domain. Mr. Mikusinski calls this set of operators mikusinski operater, it is known equally well as Cube and antosik-mikusinski theorem, Mikusinski convolution algebra, etc. Recovered from http://en.wikipedia.org/wiki/Jan_Mikusinsk . Several great Polish scholars figure in the United States [and] in Sweden and give lectures all over the world. Poland can be very proud to have such world famous scholars. Cuddlyable3 (talk) 14:30, 21 June 2008 (UTC)[reply]

June 20

June 21

Differentiation

I'm looking at the assumed knowledge for a financial mathematics course, and I'm ok with all of it except this one question:

Differential Calculus

As an indication of the level of calculus required, students should be able to interpret the following equation:

I only know very basic differentiation (e.g. polynomials, basic trig functions). I've spent some time trying to figure it out but it's got me stumped. I can't tell if P is meant to be a function of y, or if D is meant to be a constant... I always thought capital letters in calculus just referred to the integral of an expression.

I understand if you don't want to tell me the answer, but can someone please identify the specific area of differential calculus I should be researching? And even better, a website/chapter in a book that can help me with this?

Thanks,

60.242.124.184 (talk) 12:19, 21 June 2008 (UTC)[reply]

P has to be a function of y, or differentiating it with respect to y is meaningless. D could be a constant or a function of y. If I had to guess, I think I'd go for a constant, since that's a common use for capitals from the beginning of the alphabet (though one normally starts with either A or C). Algebraist 12:27, 21 June 2008 (UTC)[reply]
This looks like a formula for bond duration (that is a really poor article). P is the price of the bond and y is the yield to maturity. So P is definitely a function of y. For small interest rate moves, D is typically treated as a constant but, in theory, it will change if the other variables change.
Duration is a measure of the sensitivity of the price of a fixed income asset to changes in interest rates. The Macaulay Duration is calculated as the average time to each cashflow weighted by the PV of that cashflow. Express the value as
and find the derivative wrt y to see how the formula above gives the Macaulay Duration. Zain Ebrahim (talk) 13:25, 21 June 2008 (UTC)[reply]

Given that we are expected to use dP/dy I'd automatically assume that P is a function of y, and (again) in the absence of further information that D is a constant - since the alternatives (eg D is also a function of y) are just too complex..

So I'd rearrange to get

dP/dy = -D P/(1+y)

ie

d fn(y)/dy = k fn(y)/(1+y) (k is a constant equal to -D)

SPOILER BELOW ?? to avoid just read the bolded and underlined bits first

Since there is a equation that has the derivative of a function to be the function times another function of y , my first guess would be to try fn(y)=eg(y) since
d(eg(y))/dy = g'(y) eg(y)
ie if P=eg(y) then dP/dy = g'(y) P (g'(y) is the derivative of g(y) = d g(y)/dy )
Therefor I get one solution if g'(y) = k/(1+y), and because I already know that d (ln(1+x))/dx = 1/(1+x) I get g(y)=k ln(1+y)
So I think g(y)=k ln(1+y)
This gives P=ek ln(1+y) = (eln(1+y))k = (1+y)k
So P=(1+y)-D
Hopefully that will help, please ask about any specific parts, and hppefully others will pick me up on any mistakes I've made.
That should be one type of solution - I've no idea if there may be others as well...
As general advice - if you get a differential equation of the form d fn(x)/dx = fn(x) times another function of x it's worth trying the substituion fn(x)=eg(x) due the properties of the derivative of eg(x)87.102.86.73 (talk) 14:35, 21 June 2008 (UTC)[reply]
The thing is, it didn't say to solve it, it said to interpret it. That could mean any number of things, but probably nothing as complicated as actually solving for P. --Tango (talk) 14:57, 21 June 2008 (UTC)[reply]
The area to look at would be "first order differential equations", assuming you know how to differentiate (and integrate) polynomials, logs, and exponentials the equation should be ok..
Even if D is a function of y it may be possible to still solve it with the above knowledge.
I assumed that an answer would be a simple way to show the type of knowledge required..

In general capital letters don't mean the integral of an expression. They simply refer to a variable (which may or may not be a function) in the same way lower case letters do.87.102.86.73 (talk) 15:14, 21 June 2008 (UTC)[reply]

Indeed, however D(x) is often used for the integral of d(x), which is probably what the OP was thinking. I would never assume that's what was meant unless it was actually stated, though - it's a common choice of symbol, it's not a standard notation. --Tango (talk) 15:17, 21 June 2008 (UTC)[reply]

To the original poster: In financial mathematics, the formula you wrote is a very common way to express Macaulay Duration. You should check with the course convenor at the institution (they're normally quite responsive to emails) whether you need to know how to solve that differential equation but I rather doubt it since they clearly specified that you need to interpret it. The solution calculated by 87 above represents a special case: here, P represents the price of a zero coupon bond (ZCB) that pays one dollar D years from now. For ZCBs, the duration is merely the term to maturity. Zain Ebrahim (talk) 15:27, 21 June 2008 (UTC)[reply]