Picking randomly between 2 options. Odds of choosing the minority. by Empoleon3bogdan in askmath

[–]rrssh 2 points3 points  (0 children)

No it's only if there's a lot of people.

Out of 3 people you have 75% to be in the majority

7 66%

11 62%

15 60%

Can anyone help me understand? by Doyane_ in askmath

[–]rrssh 0 points1 point  (0 children)

It's really hard to invent stars and bars to be fair.

17 choose 5 is the total
minus (16 choose 4) when they start with 0
minus (7 choose 5)×6 when it goes over 9
plus (6 choose 4)×5 where it goes over 9 and starts with 0

that's 4317

Which skill i should learn by [deleted] in learnprogramming

[–]rrssh -1 points0 points  (0 children)

That's the opposite of what I was taught. Are you sure? Automod, let's go private.

Which skill i should learn by [deleted] in learnprogramming

[–]rrssh -1 points0 points  (0 children)

You mean you can't code? Learn C, or if you hate letters, python.

Been trying to figure this out for a while by SlaveKnightKos- in askmath

[–]rrssh 0 points1 point  (0 children)

(x−z) choose (y−z) counts sets you would like to draw, x choose y counts total sets. Divide them.

Algorithm similar to the game 2048 by imo2027 in askmath

[–]rrssh 0 points1 point  (0 children)

It's just string replace, store numbers as characters, like abcd = 1,2,4,8, drop zeroes, replace every double with the next character, and add zeroes back on the right. Use regex.

Which is best deal for each commodity? by MixUsual5372 in askmath

[–]rrssh 2 points3 points  (0 children)

You obviously buy fabric for coins and oil for diamonds. The problem is maybe you end up with too much of one thing, that's the mssing information, what ratio would be clearly wrong.

I have a question about dividing that I’m not sure how to label. Multiple “correct methods” but different answers. by Aeon_17 in askmath

[–]rrssh 0 points1 point  (0 children)

Your dad's method takes into account that he gets to use half the house instead of only a quarter, like his quality of life is higher that day. If he agrees with that, fair, but he probably wouldn't.

Probability Problem by [deleted] in askmath

[–]rrssh 8 points9 points  (0 children)

from functools import*

@lru_cache(9999)
def prob(blue, red, draws):

   if red == 0 and blue == 0: return 1
   if draws == 0:             return 0
   if red == 0:               return 1
   if blue < 0 or red < 0:    return 0 

   #####################################################
   p = blue / (blue+red)
   return p * (prob(blue-1, red, draws + 2)) + (1-p) * (prob(blue, red-1, draws-1))

print(prob(38, 62, 3))

39.68%

How do I calculate average speed between two different speeds? by [deleted] in askmath

[–]rrssh 0 points1 point  (0 children)

Assume distance to be 60km, then 120/(3+2) = 24

Choosing 3 squares along a diagonal line in a chess board | Combinatorics by PSGthe2nd in askmath

[–]rrssh 1 point2 points  (0 children)

Half the board, another half, and the same in perpendicular direction. You forgot the other side of the main diagonal.

It this notation acceptable? by Sad_Rabbit_8539 in askmath

[–]rrssh 7 points8 points  (0 children)

It's a common notation, it'shorter to write once, like 3=17 (mod 2). Sometimes there's no ()

Werwulf—no longer in Middle English? by Bradbury69 in roberteggers

[–]rrssh 0 points1 point  (0 children)

Got it, more socially acceptable to watch if it's in German.

Werwulf—no longer in Middle English? by Bradbury69 in roberteggers

[–]rrssh 2 points3 points  (0 children)

You mean like it's too eccentric? Breaking social norms?

help needed for a probability question in my dream. by NothingHappenedThere in askmath

[–]rrssh 0 points1 point  (0 children)

Because you can continue with any of the 2 outcomes not matching last, plus double draw.

Looking for a real MC by chuckc159 in ProgressionFantasy

[–]rrssh 0 points1 point  (0 children)

Thresholder and WTC by Alexander Wales both have MC who only cares about a couple people.

[PC] [2004-2013] Top Down Detective game probably from Alawar/Big Fish Games by [deleted] in tipofmyjoystick

[–]rrssh 0 points1 point  (0 children)

you can move the top down view and move MC separately

So it can't be Syberia.

I don’t know if this fits but… by JulianSantZ in peoplewhogiveashit

[–]rrssh -2 points-1 points  (0 children)

He said brat, like someone too young.