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

From testwiki
Revision as of 12:03, 27 February 2023 by imported>MalnadachBot (Fixed Lint errors. (Task 12))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Error:not substituted

{| width = "100%"

|- ! colspan="3" align="center" | Mathematics desk |- ! width="20%" align="left" | < November 17 ! width="25%" align="center"|<< Oct | November | Dec >> ! width="20%" align="right" |Current desk > |}

Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is a transcluded 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

Probability and boolean events

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)

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 n/log2(9/8), 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 i=0k(2ki)(2/3)i(1/3)2kii=0k(2ki)(2/3)k(1/3)k(2/9)ki=0k(2ki)(2/9)k22k=(2/9)k4k=(8/9)k.
So you need (8/9)k<2n So klog2(8/9)<n, and thus k>n/log2(9/8).--121.74.125.249 (talk) 05:42, 18 November 2011 (UTC)
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)
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
Pr(A|D)=Pr(A)Pr(D|A)Pr(D)=Pr(A)(nm)(2/3)m(1/3)nmPr(A)(nm)(2/3)m(1/3)nm+(1Pr(A))(nm)(1/3)m(2/3)nm=11+1Pr(A)Pr(A)2n2m
If we assume for simplicity that Pr(A)=1/2 and that m is high, then this is roughly 12n2m. So only in the highly unlikely case that everyone says yes you'll have 12n 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)

Euler's Identity Question

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

Why does

eiπ=1

when

eiπ=e(π×i)=e3.1415i=23.1406926i?

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

It comes from the identity eiθ=cos(θ)+isin(θ). Plug in θ=π and you get the desired result. Readro (talk) 16:06, 18 November 2011 (UTC)
Template:Ec 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:
eiπ=1+(iπ)+(iπ)22!+(iπ)33!+(iπ)44!+(iπ)55!
=(1π22!+π44!)+i(ππ33!+π55!)
=cos(π)+isin(π)=1
Gandalf61 (talk) 16:07, 18 November 2011 (UTC)
eiπ23.1406926i, not 23.1406926i. 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 a+bi. 98.248.42.252 (talk) 16:24, 18 November 2011 (UTC)

The error is that e3.1415i=23.1406926i, not 23.1406926i. Looie496 (talk) 16:28, 18 November 2011 (UTC)

Probability of certain factors existing

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)

The expected number of factors between 10p and 10q doesn't depend on n (as long as n is sufficiently large) and is
k=10p10q1/kln(10q)ln(10p) = (qp)ln(10).
The expected number of prime factors between 10p and 10q is
k=10p10q1/(klnk)ln(ln(10q))ln(ln(10p)) = ln(q/p).
You asked for a probability, not the expected value. Assuming that n is sufficiently large, the number of prime factors between 10p and 10q should follow a Poisson distribution, so the probability of having at least one prime factor between 10p and 10q is 1eln(q/p) = 1p/q. 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)

Power series for arcsine

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:
arcsin(x)=0xdy1y2
I'm not sure what happens when x=±1, 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:
(1+x)1/2=n=0(12n)xn for |x|1
arcsin(x)=0xdyn=0(12n)(y2)n
arcsin(x)=n=0(12n)(1)2n12n+1x2n+1
(I think) Not very straightforward though... 77.86.108.27 (talk) 22:33, 18 November 2011 (UTC)
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 x=±1, see Improper integral. -- Meni Rosenfeld (talk) 16:55, 19 November 2011 (UTC)
The Lagrange inversion theorem is relevant. -- Meni Rosenfeld (talk) 16:55, 19 November 2011 (UTC)