Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ ¹ ² ³ °
 

You are not logged in. #26 20130428 17:44:35
Re: Marbles without replacement (probability)For k colors with n marbles each, I find it to be: May require some modification when number of marbles are different. Last edited by gAr (20130428 20:53:23) "Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  Buddha? "Data! Data! Data!" he cried impatiently. "I can't make bricks without clay." #27 20130428 19:03:43
Re: Marbles without replacement (probability)Hi gAr; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #28 20130428 20:04:07
Re: Marbles without replacement (probability)Hi, Code:A = 10 B = 10 C = 10 D = 10 def f(a,b,c,d): if (Aa == 2 or Bb == 2 or Cc == 2 or Dd == 2): return (A+B+C+D(a+b+c+d)) return a/Integer(a+b+c+d)*f(a1,b,c,d) + b/Integer(a+b+c+d)*f(a,b1,c,d) + c/Integer(a+b+c+d)*f(a,b,c1,d) + d/Integer(a+b+c+d)*f(a,b,c,d1) print f(A,B,C,D) It returns : 30008/9139 "Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  Buddha? "Data! Data! Data!" he cried impatiently. "I can't make bricks without clay." #29 20130428 20:09:23
Re: Marbles without replacement (probability)Hi gAr; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #30 20130428 20:15:09
Re: Marbles without replacement (probability)Yeah, that looks much neater than the formula! "Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  Buddha? "Data! Data! Data!" he cried impatiently. "I can't make bricks without clay." #31 20130428 20:16:56
Re: Marbles without replacement (probability)Hi; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #32 20130428 20:20:40
Re: Marbles without replacement (probability)Yes, and we must multiply that by 2, I forgot to include that. "Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  Buddha? "Data! Data! Data!" he cried impatiently. "I can't make bricks without clay." #33 20130428 20:23:32
Re: Marbles without replacement (probability)I am not getting the correct answer then, when I multiply by 2 I get: I am using n = 10 and k = 4. In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #34 20130428 20:31:56
Re: Marbles without replacement (probability)Perhaps I made a mistake when translating my program to the formula? Or you took out n from the sum ? Code:def ans(n,k): summ = 0 for i in range(1,k+1): pr = 1 for j in range(1,i): pr *= (kj)*n/Integer(4*nj) summ += (i)*(i+1)/2 * pr * (n1)/Integer(4*ni) return 2*summ ans(10,4) returns 30008/9139 "Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  Buddha? "Data! Data! Data!" he cried impatiently. "I can't make bricks without clay." #35 20130428 20:37:47
Re: Marbles without replacement (probability)Hi; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #36 20130428 20:40:39
Re: Marbles without replacement (probability)It causes problem like flooring if it's not written.. "Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  Buddha? "Data! Data! Data!" he cried impatiently. "I can't make bricks without clay." #37 20130428 20:44:31
Re: Marbles without replacement (probability)Hi; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #39 20130428 20:52:45
Re: Marbles without replacement (probability)Hi bobbym, "Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  Buddha? "Data! Data! Data!" he cried impatiently. "I can't make bricks without clay." #40 20130428 21:00:16
Re: Marbles without replacement (probability)No problem! Thank you for the formula. In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #41 20130428 21:06:38
Re: Marbles without replacement (probability)You're welcome! "Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  Buddha? "Data! Data! Data!" he cried impatiently. "I can't make bricks without clay." #42 20130428 21:09:58
Re: Marbles without replacement (probability)Hi; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #43 20130428 21:19:00
Re: Marbles without replacement (probability)Okay.. "Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  Buddha? "Data! Data! Data!" he cried impatiently. "I can't make bricks without clay." #44 20130428 21:23:47
Re: Marbles without replacement (probability)Hi; for n = 2, 3, 4, ... In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #45 20130428 21:42:48
Re: Marbles without replacement (probability)That's a good one! "Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  Buddha? "Data! Data! Data!" he cried impatiently. "I can't make bricks without clay." #46 20130428 21:44:54
Re: Marbles without replacement (probability)Oh yes and quite useless unless you have exactly 4 colors. In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #47 20130428 21:56:48
Re: Marbles without replacement (probability)Anyway, we can easily extend the recursion if not the formula for any number of variables and experiment with the terms. "Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  Buddha? "Data! Data! Data!" he cried impatiently. "I can't make bricks without clay." #48 20130428 22:03:25
Re: Marbles without replacement (probability)There are a lot of possibilities here. In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #49 20130428 22:05:37
Re: Marbles without replacement (probability)Yes. "Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  Buddha? "Data! Data! Data!" he cried impatiently. "I can't make bricks without clay." #50 20130428 22:30:18
Re: Marbles without replacement (probability)Hi; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. 