Wikipedia:Reference desk/Archives/Mathematics/2011 November 18

Mathematics desk
< November 17 << Oct | November | Dec >> November 19 >
Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


November 18 edit

Probability and boolean events edit

Suppose you want to buy a toy for your daughter and you want to make sure she will like it. To make sure she'll like it, you decide to ask her friends (for this problem you can imagine she has infinity friends). Each friend, independently, can tell you whether she will like it or not correctly with probability 2/3 (each friend gives a boolean answer though).

How can you find out your daughter will like the toy you are about to buy with probability >= 1 - 2^(1/n) where n is the number of friends you will ask? — Preceding unsigned comment added by Rain titan (talkcontribs) 04:39, 18 November 2011 (UTC)[reply]

First, I think you meant 1 - (1/2)^n. 1 - 2^(1/n) is always negative. Assuming you did, this is called probability amplification. Short answer: choose k bigger than  , and ask 2k friends. If more than half say yes, assume she likes it. Otherwise, assume she doesn't.
Justification: if you made the wrong decision, then at most half her friends gave the right answer. The odds of this happening is  .
So you need   So  , and thus  .--121.74.125.249 (talk) 05:42, 18 November 2011 (UTC)[reply]
Just noticed you specified that you can only ask n friends. In that case, it's not possible. The best you can possibly do is majority vote, and your certainty doesn't increase that fast. For example, with three friends, you only have probability (20/27) of making the right choice.--121.74.125.249 (talk) 05:48, 18 November 2011 (UTC)[reply]
This is a frequentist solution. For a Bayesian solution You need to know the prior probability. If A = "Your daughter likes it" and D = "m out of n friends asked says she likes it", then
 
If we assume for simplicity that   and that m is high, then this is roughly  . So only in the highly unlikely case that everyone says yes you'll have   confidence.
This could have been solved more simply by considering odds ratios. Every friend who says yes multiplies the odds ratio by 2, every one who says no divides it by 2. -- Meni Rosenfeld (talk) 08:31, 18 November 2011 (UTC)[reply]

Euler's Identity Question edit

Just a quick question, something I don't understand about Euler's identity.

Why does

 

when

 ?

174.93.63.116 (talk) 15:53, 18 November 2011 (UTC)[reply]

It comes from the identity  . Plug in   and you get the desired result. Readro (talk) 16:06, 18 November 2011 (UTC)[reply]
(edit conflict) How do you get to 23.1406926i ? By playing fast and loose with re-arrangements of infinite series we can informally "prove" Euler's identity as follows:
 
 
 
Gandalf61 (talk) 16:07, 18 November 2011 (UTC)[reply]
  , not  . At this point in the calculation there is no reason to believe that the right-hand side is not equal to -1. If you want to go this route you have to keep working on the right-hand side until it has the form  . 98.248.42.252 (talk) 16:24, 18 November 2011 (UTC)[reply]

The error is that  , not  . Looie496 (talk) 16:28, 18 November 2011 (UTC)[reply]

Probability of certain factors existing edit

Hi, is there any way of estimating the probability that a randomly chosen n-digit number will have at least one factor whose length is between p and q digits? Assume n is sufficiently large. 81.159.104.115 (talk) 21:00, 18 November 2011 (UTC)[reply]

The expected number of factors between   and   doesn't depend on   (as long as   is sufficiently large) and is
   =  .
The expected number of prime factors between   and   is
   =  .
You asked for a probability, not the expected value. Assuming that   is sufficiently large, the number of prime factors between   and   should follow a Poisson distribution, so the probability of having at least one prime factor between   and   is   =  . For the probability with composite factors allowed, I don't know. The number of factors doesn't follow a Poisson distribution because the events are not very independent. I don't know what distribution it follows so I'll let someone else take it from here. 98.248.42.252 (talk) 07:03, 19 November 2011 (UTC)[reply]

Power series for arcsine edit

What's a relatively straightforward way to find a power series for arcsin(x)? I'm stumped! — Trevor K. — 21:49, 18 November 2011 (UTC) — Preceding unsigned comment added by Yakeyglee (talkcontribs)

This may be a bit dodgy, but how about:
 
I'm not sure what happens when  , as arsin(x) is defined but this integral isn't? Given that |x|<1 we can use the Maclaurin series for the square root (from Taylor_series:
 
 
 
(I think) Not very straightforward though... 77.86.108.27 (talk) 22:33, 18 November 2011 (UTC)[reply]
Impressive! I like it! It's reminiscent of the polynomial expansion of the Lorentz Factor from special relativity! I am satisfied! :P — Trevor K. — 22:45, 18 November 2011 (UTC) — Preceding unsigned comment added by Yakeyglee (talkcontribs)
The integral exists for  , see Improper integral. -- Meni Rosenfeld (talk) 16:55, 19 November 2011 (UTC)[reply]
The Lagrange inversion theorem is relevant. -- Meni Rosenfeld (talk) 16:55, 19 November 2011 (UTC)[reply]