Search is not available for this dataset
query
stringlengths
1
13.4k
pos
stringlengths
1
61k
neg
stringlengths
1
63.9k
query_lang
stringclasses
147 values
__index_level_0__
int64
0
3.11M
Statics Banner Content Consider as Duplicate? One Quarry!! Suppose if I have site having 10 pages (with 3 different categories) and all pages have one static banner which is running in all pages. Now let say it 3 categories be A, B , C defining 3 services and having few content on the banner representing the service ...
What is duplicate content and how can I avoid being penalized for it on my site? This is a general, community wiki question regarding duplicate content. If your question was closed as a duplicate of this question and you feel that the information provided here does not provide a sufficient answer, please open a discus...
Probability of complete coupon set in $K$ boxes where a box has $N$ distinct coupons? Say there is a contest to collect a full set of $M$ coupons. Each box of product has $N$ distinct coupons of the $M$ possible coupons in it, selected uniformly without replacement from the $M$ possible coupons, the same $N$ in number...
eng_Latn
34,400
If I flip an unbiased coin an infinite number of times, what is the probability that, at some point, the number of heads will be twice the number of tails? I have already tried making a branching probability tree, but I just get overwhelmed and it seems to go on forever... I don't know how to reconcile it.
I gave my friend as a brainteaser; while her attempted solution didn't work, it raised an interesting question. I flip a fair coin repeatedly and record the results. I stop as soon as the number of heads is equal to twice the number of tails (for example, I will stop after seeing HHT or THTHHH or TTTHHHHHH). What's...
The new Top-Bar does not show reputation changes from Area 51.
eng_Latn
34,401
A particular professor is known for his arbitrary grading policies. Each paper receives a grade from the set {A, A-, B+, B, B-, C+}, with equal probability, independently of other papers. How many papers do you expect to hand in before you receive each possible grade at least once?
What is the average number of times it would it take to roll a fair 6-sided die and get all numbers on the die? The order in which the numbers appear does not matter. I had this questions explained to me by a professor (not math professor), but it was not clear in the explanation. We were given the answer $(1-(\frac...
The new Top-Bar does not show reputation changes from Area 51.
eng_Latn
34,402
Probability number A greater number B Given $a \in \{1,2,...,250\}$ and $b \in \{0,1,...,1000\}$ $a$ and $b$ are chosen randomly, how does one calculate the probability of $a > b$?
Probability Number A greater Number B Given $a \in \{1,2,...,250\}$ and $b\in \{0,1,...,1000\}$ What is the probability that $a > b$? I know there already is question with a very similar question, however it's over an interval of $\mathbb{R}$ so I hope there is another way opposed to the Integral used in the form...
Birthday problem: why is this solution wrong? This question is about the birthday problem: the probability that in a group of n people, at least two of them have the same birthday (). An easy way to calculate the probability is to calculate first the probability that no two people have the same birthday. Let's say th...
eng_Latn
34,403
How many endings are there in dishonored? (SPOILERS) So, I just finished dishonored with a high chaos level, and got two different endings, in one I saved Emily, she ruled as empress and I guess cured the plague? The other, Emily died, the rat plague killed almost everyone, and was not stopped. So I was wondering, (bef...
What are the different endings in Dishonored? In Dishonored the game as I am escaping the prison, I got a prompt that warned me: Using stealth and nonlethal approach has benefits. Fewer rats and weepers, some people react favorably, and the final outcome is not as dark. What are all the different endings? An...
What's wrong with this equal probability solution for Monty Hall Problem? I'm confused about why we should change door in the Monty Hall Problem, when thinking from a different perspective gives me equal probability. Think about this first: if we have two doors, and one car behind one of them, then we have a 50/50 c...
eng_Latn
34,404
At the end of Avengers: Infinity War, what is the live/dead ratio? We all know that Thanos wants to wipe out half of the universe's lives. At the end of Infinity War: He snaps his fingers and succeeds in wiping half of the universe. How consistent is Marvel with that information? Do only 50% of the main cast ...
How many named characters died in Avengers: Infinity War? How many named characters have died and/or disintegrated by the end of Avengers: Infinity War. It is difficult to speculate who died on Xandar and the Asgardian ship. So restrict it to on-screen deaths only.
Magic 8 Ball Problem This problem is probably simple enough to have an analogous problem, I just don't know the name so I'm going to describe it and hopefully somebody can point me in the right direction. The problem is this: estimating the number of sides of a . Let's say you perform the following process: Shake ...
eng_Latn
34,405
How do you calculate the probability when you don't know how many trials will be held? You toss a fair coin until you toss two consecutive heads. Find the probability that you have to toss the coins exactly 4 times.
Probability of success on third and fourth trials? I have a pretty basic probability question, but I'm just having difficulties remembering what distribution this is. A coin is tossed until a head appears two times in a row. Given that we are using a fair coin, what is the probability that we toss the coin exactly 4 t...
Monty hall problem extended. I just learned about the Monty Hall problem and found it quite amazing. So I thought about extending the problem a bit to understand more about it. In this modification of the Monty Hall Problem, instead of three doors, we have four (or maybe $n$) doors, one with a car and the other three (...
eng_Latn
34,406
Finding an acceptable upper limit on a random generator with an unknown distribution Suppose we have a random number generator, and we do not know anything about the generator, including the distribution of its outputs. We are allowed to use the generator some number of times to get draws and observe the sample. Then...
Multi armed bandit for general reward distribution I'm working on a multi-armed bandit problem where we do not have any information about the reward distribution. I have found many papers which guarantee regret bounds for a distribution with known bound, and for general distributions with support in [0,1]. I would ...
Compute $P(X_1+\cdots+X_k\lt 1)$ for $(X_i)$ i.i.d. uniform on $(0,1)$ Consider $N=\min\{n: S_n>1\}$, where $S_n=X_1+\cdots+X_n$ and $(X_i)_{i=1}^\infty$ is i.i.d. uniform on $(0,1)$. So, $N$ is the first time that $(S_n)_{n=1}^\infty$ crosses $1$. I'd like to calculate $E(N)$. To this end I'd like to calculate $\Pr...
eng_Latn
34,407
How to solve problems of conditional probability using Bayes theorem? I don't understand how to solve problems of conditional probability.Here's a problem which I fail to understand."Consider all families with two children and assume that each child is equally likely to be a boy or a girl.If such a family is chosen at ...
A very easy probability problem but opinions diverge greatly. Need some help. The question itself is a very easy one: Somebody has got two kids, one of whom is a girl. Then what's the probability that he's got at least one boy? My answer is that, since he's already got a girl, then "he's got at least one boy" amo...
Probability of complete coupon set in $K$ boxes where a box has $N$ distinct coupons? Say there is a contest to collect a full set of $M$ coupons. Each box of product has $N$ distinct coupons of the $M$ possible coupons in it, selected uniformly without replacement from the $M$ possible coupons, the same $N$ in number...
eng_Latn
34,408
Expected Value Coin Flipping Consider the experiment of keeping flipping a fair coin until two heads are flipped consecutively. The outcome is the sequence of the flipped result. Possible examples of the outcome include HTHTHH and TTTHTHTTHH. The random variable X is defined to be the number of flips of an outcome. For...
Expected Number of coin flips for 2 consecutive heads for first time. I was working on problems on expectation and found this one as a question from a well-known exam Assume that you are flipping a fair coin, i.e. probability of heads or tails is equal. Then the expected number of coin flips required to obtain two con...
How to create a random math problem in LaTeX? I want to create a math problem-solution sheet. The coefficients a, b, c must be assigned on the fly at random so the generated pdf will show a numeric quadratic equation rather than a symbolic quadratic equation. Note a must not be zero. \documentclass{article} \begin{doc...
eng_Latn
34,409
Computing Minima for degree 8 polynomial Is there any better method than derivative or trial and error to calculate minima of $$f(x)=x^8-8x^6+19x^4-12x^3+14x^2-8x+9$$ The minima occurs at $x=2$ and $f(2)=1$ We were given option too $-1,9,6,1$ if that helps
The minimum value of $x^8 – 8x^6 + 19x^4 – 12x^3 + 14x^2 – 8x + 9$ is The minimum value of $$f(x)=x^8 – 8x^6 + 19x^4 – 12x^3 + 14x^2 – 8x + 9$$ is (a)-1 (b)9 (c)6 (d)1 Apart from trying to obtain $1$, which in this case is simple and $f(2)=1$ is there a standard method to approach such problems. Please keep in mi...
Expected value in an urn problem In an urn there are $n$ red balls and $m$ blue balls. I extract them without replacement. Let $X$=time of first blue. What is $E(X)$? I found PMF of $X$ and it is, if $k > n+1$ $$P(X=k) =\frac{n(n-1) \dots (n-k+1)m}{(m+n)(m+n-1) \dots (n+m-k+1)}$$ How could I evaluate $E(X)$? Edi...
eng_Latn
34,410
How to test that sample data is random? Lets say there's a function that produces a random number between 1-10000. We need to verify that the generated numbers are truly random and that the distribution is uniform. How do we test the randomness? How many numbers we need to know that the results are statistically sign...
Testing random variate generation algorithms Which methods are used for testing random variate generation algorithms?
Coupon Collector Problem with Batched Selections I am trying to solve a variation on the . In this scenario, someone is selecting coupons at random with replacement from n different possible coupons. However, the person is not selecting coupons one at a time, but instead, in batches. Here's an example problem formula...
eng_Latn
34,411
What is the probability of exactly two accidents on at least one day of a week, in case of 7 indistinguishable accidents per week If 7 accidents (all are indistinguishable i.e we care only about whether accident happen or not, not the details of it) happen in a week. What is the probability of exactly two accidents on...
probability that exactly two accidents happen in any day of a week if 7 accidents happen in a week If 7 accidents happen in a week, what is the probability that exactly 2 accidents happen in any day of the week. I tried to work it this way. 2 accidents out of 7 can be taken in ${7}\choose{2}$$= 21$. Now this can hap...
Probability of complete coupon set in $K$ boxes where a box has $N$ distinct coupons? Say there is a contest to collect a full set of $M$ coupons. Each box of product has $N$ distinct coupons of the $M$ possible coupons in it, selected uniformly without replacement from the $M$ possible coupons, the same $N$ in number...
eng_Latn
34,412
SHA-2 attempts for a loop Say I am hashing hashes (taking the hash of a previous hash) for an endless amount of time. How many times would it take, on average, to fall into a loop when using SHA-2 (more specifically SHA-256 and SHA-512), like such: original text = z (can be any string) hash z = b hash b = c hash c = ...
Cycles in SHA-256 Let's say I start with a particular 256 bit value. Call this $v$. I then hash that value, and get another 256 bit value. Call this $\text{SHA256}(v)$. I take this value and get another 256 bit value. Call this $\text{SHA256}^2(v)$. More generally, let's call the result of hashing $v$ repeatedly $n$ ti...
Understanding MCMC and the Metropolis-Hastings algorithm Over the past few days I have been trying to understand how Markov Chain Monte Carlo (MCMC) works. In particular I have been trying to understand and implement the Metropolis-Hastings algorithm. So far I think I have an overall understanding of the algorithm but ...
eng_Latn
34,413
Can we simulate whole universe with infinite size of RAM and modern computer? If modern computers are universal turing machines and C language is turing complete, theoretically we could calculate and simulate every problem in the universe then theoritically we can simulate whole universe with using modern computer whic...
Can we simulate the whole universe in computer? Here is an idea: As human kind we discovered many laws, formulas, events, etc. in our surrounding environment.here is a way to discover the unknowns : Now if we simulate a virtual world with our knowledge in computers we expect it to work, because we guess that we know ...
Sampling with replacement or without replacement I'm writing a program in R that simulates bank losses on car loans. Here is the questions I'm trying to solve: You run a bank that has a history of identifying potential homeowners that can be trusted to make payments. In fact, historically, in a given year, only 2% of...
eng_Latn
34,414
Doubt with a Question on Linearity of Expectation Question: With each purchase at SlurpeeShack, you receive one random piece of the puzzle seen at right. Once you collect all 12 pieces, you get a free Slurpee! What is the expected value for the number of purchases you will need to make in order to collect all 12 piece...
How many throws of a die until every possible result is obtained? A die is thrown until every possible result (i.e., every integer from 1 to 6) is obtained. Find the expected value of the number of throws. How do I do that? I understand that probability for the single result is $\{1, 5/6, \ldots , 1/6\}$, but what ab...
Average length of the longest segment This post is related to a previous SE post concerning average length of a smallest segment. A rope of 1m is divided into three pieces by two random points. Find the average length of the largest segment. My answer is 11/18. Here is how I do it: Here we have two independent rand...
eng_Latn
34,415
Bound for the cardinality of a minimal generating set of a finite group Given a finite group $G$ of order $n\geq 2$, it obviously has a minimal generating set (a generating set of minimal cardinality) let's say of cardinalty $m$. I am looking to find out if a bound for $m$ can be established. I asked myself this questi...
Why is the minimum size of a generating set for a finite group at most $\log_2 n$? It seems to be known that the minimum size of a generating set for a finite group of order $n$ is at most $\log_2 n$. Can someone explain why this is true? Edit: noted that the logarithm is base 2, and $n$ represents the order of the gr...
Compute $P(X_1+\cdots+X_k\lt 1)$ for $(X_i)$ i.i.d. uniform on $(0,1)$ Consider $N=\min\{n: S_n>1\}$, where $S_n=X_1+\cdots+X_n$ and $(X_i)_{i=1}^\infty$ is i.i.d. uniform on $(0,1)$. So, $N$ is the first time that $(S_n)_{n=1}^\infty$ crosses $1$. I'd like to calculate $E(N)$. To this end I'd like to calculate $\Pr...
eng_Latn
34,416
What is the origin of the term "In Spades"? Near as I can tell, this phrase seems to be based on the idea that the suit of spades is of higher value than any other card - which I believe is only true in the card game "". Is this card game the origin of the phrase? If so, when did it become a popular phrase to descr...
What does "in spades" mean? What does "in spades" mean, for example in the following sentence: demand and love are both there in spades ... I guess "in spades" means "on cards" or "on the table" or exist?
Maximizing expected value of coin reveal game I was asked this question today in an interview and am still not sure of the answer. The question is as follows. Part one: Say I have flipped 100 coins already and they are hidden to you. Now I reveal these coins one by one and you are to guess if it is heads or tails be...
eng_Latn
34,417
number of ways to put N labelled balls in N labelled boxes so that labels don't match? I have N distinct balls labelled 1 to N, and associated N boxes labelled 1 to N. How many different ways can I place all balls into the boxes (one ball per box) so that there is no ball-box label matching, i.e. ball $i$ is not in box...
How to count derangements? I was going through .Suppose that there are n persons who are numbered 1, 2, ..., n. Let there be n hats also numbered 1, 2, ..., n. We have to find the number of ways in which no one gets the hat having same number as his/her number. Let us assume that the first person takes hat i. There are...
Coupon collector's problem: mean and variance in number of coupons to be collected to complete a set (unequal probabilities) There are $n$ coupons in a collection. A collector has the ability to purchase a coupon, but can't choose the coupon he purchases. Instead, the coupon is revealed to be coupon $i$ with probabilit...
eng_Latn
34,418
Probability that median falls between largest and smallest sample drawn I have no starting point on which formula to use: One draws 5 samples from a cont. distribution. Now, what is the approx. probability p that the median of the Population falls within the smallest and largest samples drawn?** Can anybody guide me o...
Probability that median falls within a range? If I draw 5 samples from a distribution that is cont., what is the probability that the median of the population is between the xmin and xmax of the draw samples? What is the formula to apply here?
Coupon collector's problem: mean and variance in number of coupons to be collected to complete a set (unequal probabilities) There are $n$ coupons in a collection. A collector has the ability to purchase a coupon, but can't choose the coupon he purchases. Instead, the coupon is revealed to be coupon $i$ with probabilit...
eng_Latn
34,419
How to deal with pre-travel insomnia? I will be flying to Bangkok in a couple of weeks and for the fourth night in a row not getting any sleep (3-5 hours). This is affecting my performance now, especially at work (programmer). EDIT: I wouldn't say that I am afraid of dying more than usual. I never had problems with s...
How to deal with travel excitement? How does one usually deal with excitement about travel, prior to travel ? A lot of people feel them butterflies in their stomach before a big travel is coming up. Is there an effective way to put these feelings away ? Or how can one best deal with such excitement/feelings (which almo...
How often do you have to roll a 6-sided die to obtain every number at least once? I've just played a game with my kids that basically boils down to: whoever rolls every number at least once on a 6-sided die wins. I won, eventually, and the others finished 1-2 turns later. Now I'm wondering: what is the expectation of ...
eng_Latn
34,420
Probability of having picked every item from the set at least once after n turns, while picking 3 per turn Let's say I have a set of 100 items. Each turn, I pick three items at random, note which ones I've picked, and put them back. What is the probability I've picked every item at least once after $n$ turns? The only ...
Probability of complete coupon set in $K$ boxes where a box has $N$ distinct coupons? Say there is a contest to collect a full set of $M$ coupons. Each box of product has $N$ distinct coupons of the $M$ possible coupons in it, selected uniformly without replacement from the $M$ possible coupons, the same $N$ in number...
Maximizing expected value of coin reveal game I was asked this question today in an interview and am still not sure of the answer. The question is as follows. Part one: Say I have flipped 100 coins already and they are hidden to you. Now I reveal these coins one by one and you are to guess if it is heads or tails be...
eng_Latn
34,421
SQL Server 2012 Page Life Expectancy resets to 0 after about 50 days I've noticed an odd behavior on a 2-server HA cluster and I was hoping someone could confirm my suspicion, or maybe offer some other explanation... Here is my setup: A 2-server SQL 2012 SP1 installation SQL AlwaysOn HA has been enabled for a few dat...
SQL Server 2012 Page Life Expectancy resets to 0 after about 50 days I've noticed an odd behavior on a 2-server HA cluster and I was hoping someone could confirm my suspicion, or maybe offer some other explanation... Here is my setup: A 2-server SQL 2012 SP1 installation SQL AlwaysOn HA has been enabled for a few dat...
How often do you have to roll a 6-sided die to obtain every number at least once? I've just played a game with my kids that basically boils down to: whoever rolls every number at least once on a 6-sided die wins. I won, eventually, and the others finished 1-2 turns later. Now I'm wondering: what is the expectation of ...
eng_Latn
34,422
What is the minimum number of "cases" for minority class to perform logistic regression? I have 6 out of 167 cases of cancer in the dependent variable. I would evaluate if three independent variables predicted the cancer. Are 6 cases enough? Is there a rule to determine this? Is there difference if the indipendent vari...
Sample size for logistic regression? I want to make a logistic model from my survey data. It is a small survey of four residential colonies in which only 154 respondents were interviewed. My dependent variable is "satisfactory transition to work". I found that, of the 154 respondents, 73 said that they have satisfactor...
Coupon collector problem with partial collection of a specific set of coupons I am very new in probability and combinatorics and have a naive question around a variation on the coupon collector problem with partial collection. Lets assume we have a box with 45 coupons labeled 1-45. Now in this case I would like to ad...
eng_Latn
34,423
Order of ARMA models Why we usually do not exceed ARMA(5,5) models in practice? Is there any mathematical justification for this?
Why does default auto.arima stop at (5,2,5)? The function auto.arima in the forecast package of R is a powerful tool to identify the best ARIMA(p,d,q) model for a given data series. In the of the function, they report the following: auto.arima(y, d=NA, max.p=5, max.q=5, max.order=5, max.d=2, start.p=2, start.q=2, .....
Monty hall problem extended. I just learned about the Monty Hall problem and found it quite amazing. So I thought about extending the problem a bit to understand more about it. In this modification of the Monty Hall Problem, instead of three doors, we have four (or maybe $n$) doors, one with a car and the other three (...
eng_Latn
34,424
Conceptually understand z-score obtained from standard normal table I am trying to conceptually understand the following … For a two-sided test … alpha = 5%, gives z-score = 1.96 (i.e. you have 95% probability between tails) But for a one-sided tested … alpha = 5%, i.e., you have 97.5% probability between tails, why z-...
Why does the p-value double when using two-tailed test compared to one-tailed one? Since this has been marked as a duplicate, I want to clarify that it's not about critical values of one- vs two-tailed tests, but the calculation of the p-Value in this case. I get that in a two-tailed test, you look at both sides of th...
Maximizing expected value of coin reveal game I was asked this question today in an interview and am still not sure of the answer. The question is as follows. Part one: Say I have flipped 100 coins already and they are hidden to you. Now I reveal these coins one by one and you are to guess if it is heads or tails be...
eng_Latn
34,425
Combinatorics, choosing 3 elements from 100, such that largest bigger than the product In how many ways can we pick three different numbers out of the group 1,2,3,...,100 such that the largest number is larger than the product of the two smaller ones? (The order in wh...
Combinatorics, choosing 3 elements from 100 In how many ways can we pick three different numbers out of the group $1,2,3,\dots,100$ such that the largest number is larger than the product of the two smaller ones? (The order in which we pick the numbers does not matter.)
Maximizing expected value of coin reveal game I was asked this question today in an interview and am still not sure of the answer. The question is as follows. Part one: Say I have flipped 100 coins already and they are hidden to you. Now I reveal these coins one by one and you are to guess if it is heads or tails be...
eng_Latn
34,426
Gibbs Sampler for mixture models: shall I skip some samples to avoid to use correlated samples? I am implementing a Gibbs sampler in order to estimate the parameters of a mixture model. Assuming that the parameters are contained in a vector $\theta$ what I will do is: Implement and run the sampler. Wait to reach a s...
How to interpret autocorrelation plot in MCMC I am getting familiar with Bayesian statistics by reading the book Doing Bayesian Data Analysis, by John K. Kruschke also known as the "puppy book". In chapter 9, hierarchical models are introduced with this simple example: \begin{align} y_{ji} &\sim {\rm Bernoulli}(\...
Coupon collector's problem: mean and variance in number of coupons to be collected to complete a set (unequal probabilities) There are $n$ coupons in a collection. A collector has the ability to purchase a coupon, but can't choose the coupon he purchases. Instead, the coupon is revealed to be coupon $i$ with probabilit...
eng_Latn
34,427
Bounds on binary event estimation I would like to paint an objective picture of some binary outcome. Now I have data like this: 1085x yes, 1704x no. The percentage of the positive outcome is 40.72%, but I want to give an estimation of the uncertainty. (I have multiple rows like this that are independent of each other...
Binomial confidence interval estimation - why is it not symmetric? I have used the following r code to estimate the confidence intervals of a binomial proportion because I understand that that substitutes for a "power calculation" when designing receiver operating characteristic curve designs looking at detection of di...
Maximizing expected value of coin reveal game I was asked this question today in an interview and am still not sure of the answer. The question is as follows. Part one: Say I have flipped 100 coins already and they are hidden to you. Now I reveal these coins one by one and you are to guess if it is heads or tails be...
eng_Latn
34,428
Poisson/binomal problem - car speeding A certain police officer stops cars for speeding. The number of red sports cars she stops in one hour is a Poisson process with rate 4, while the number of other cars she stops is a Poisson process with rate 1. Assume that these two processes are independent of each other. Find th...
Poisson / exponential distribution Next weekend you will be participating in 12km cross country race on a mountain.The average time between two successive wild animal sightings on the mountain is reported to be 5 minutes (a) What is the probability that you see at least one wild animal in the 11th minute of the r...
Probability of complete coupon set in $K$ boxes where a box has $N$ distinct coupons? Say there is a contest to collect a full set of $M$ coupons. Each box of product has $N$ distinct coupons of the $M$ possible coupons in it, selected uniformly without replacement from the $M$ possible coupons, the same $N$ in number...
eng_Latn
34,429
how to set my image example number as image number I have application with which I am generating my PDF from various chapters and sections, by adding and removing chapter and sections. So I found problem with example numbers and image numbers. For example I am writing in chapter 2 that Something is shown on example ima...
Numbering equations If I am writing a LaTeX document on TexMaker and I want to number my equation but most probably I will be adding details later on and I do not want to fall into retyping it all over again. So if for example I have an equation and currently called equation (1.2) that I want to refer later as in the f...
Coupon collector problem with partial collection of a specific set of coupons I am very new in probability and combinatorics and have a naive question around a variation on the coupon collector problem with partial collection. Lets assume we have a box with 45 coupons labeled 1-45. Now in this case I would like to ad...
eng_Latn
34,430
What is the probability that the second player will win in this random game? I'm working through Stanford's on Probability for Computer Scientists, and on #15 there's an extra credit question I can't explain: Consider a game that uses a generator which produces independent random integers between 1 and 100 incl...
How to calculate the exact probability that the second player wins? Consider a game that uses a generator which produces independent random integers between 1 and 100 inclusive. The game starts with a sum S = 0. The first player adds random numbers from the generator to S until S > 100 and records her last random numbe...
guess the color of the next card There are 26 red cards and 26 black cards on the table which are randomly shuffled and are facing down onto the table. The host turns up the cards one at a time. You can stop the game any time (even at the beginning of the game). Once you stops the game, the next card is turned up: if i...
eng_Latn
34,431
random number using another random function I have been asked this question recently in an interview: You are given an fair Randon5() function, which return numbers between 1-5 with same probability. Now you need to write a fair Random7() function using Random5() which will return numbers between 1-7, nothing else to ...
Expand a random range from 1–5 to 1–7 Given a function which produces a random integer in the range 1 to 5, write a function which produces a random integer in the range 1 to 7. What is a simple solution? What is an effective solution to reduce memory usage or run on a slower CPU?
Time taken to hit a pattern of heads and tails in a series of coin-tosses Inspired by Peter Donnelly's talk at , in which he discusses how long it would take for a certain pattern to appear in a series of coin tosses, I created the following script in R. Given two patterns 'hth' and 'htt', it calculates how long it tak...
eng_Latn
34,432
Java Lottery Game - Array You will take in a 5 digit lottery number and compare it to a winning lottery number. If the input lottery number has a certain numbers correct you will tell the user how much they have won. You should follow these steps: 1.Declare 2 5 element integer arrays. (a) One should be for the win...
What's the simplest way to print a Java array? In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the of the array, as defined by Object.toString(): int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray); // prints something l...
Sampling with replacement or without replacement I'm writing a program in R that simulates bank losses on car loans. Here is the questions I'm trying to solve: You run a bank that has a history of identifying potential homeowners that can be trusted to make payments. In fact, historically, in a given year, only 2% of...
eng_Latn
34,433
Can somebody make it clear that when to use the average and when to use the mean? I hear that people use the average and the mean of some numbers, interchangeably. As far as I know, the average is the sum of numbers divided by the number of data points but the mean is a weighted average and it is also called the expect...
Mean, Average and Expectation What is the precise difference between the Mean, Average and Expectation ? Is there any mathematical formaulation to show the difference ? I see that often they are used interchangeably.
What kind of distribution is this "almost" uniformly distributed data for calls/week? My supervisor asked me to find out which distribution represents a particular situation. I have a VoIP generator that generates calls "uniformly" distributed between callers. This means that the volume per caller distribution is "alm...
eng_Latn
34,434
Is this seven or eight consecutive roads in catan? If someone has roads all the way around a hex in catan (six roads), and one road on each opposite end of that hex, is that a total of seven towards the longest road or eight. In other words do both roads on either end count or only one since it goes around in a circle...
In Catan, can you continue a "circular" road? If I have 6 roads that go all around a single hex tile, they are a continuous uninterrupted road (assuming none of my opponents interrupts it with their settlements/cities). But, can I continue this 6-piece road and create a 7-piece continuous road by building a road that g...
Is this a grammatically correct line in a poem: “Will he roll the dice, and follow it to Vegas?”? I want to use the following line in a poem: "Will he roll the dice, and follow it to Vegas?" A couple of things to note; firstly, obviously I'm using "roll the dice" in both a figurative/idiomatic sense (as in taking a r...
eng_Latn
34,435
Using coin toss to decide winner among 3 children I have 1 chocolate and 3 children. I want to decide which child gets the chocolate using a toss of a fair coin. I also want each child to be equally likely to get the chocolate. How do I do this?
Seven-sided dice from five-sided dice with finite rolls I have a 5-sided dice, and I want to use it to simulate a 7-sided dice. Is there a way to do this with a finite number of rolls?
What kind of distribution is this "almost" uniformly distributed data for calls/week? My supervisor asked me to find out which distribution represents a particular situation. I have a VoIP generator that generates calls "uniformly" distributed between callers. This means that the volume per caller distribution is "alm...
eng_Latn
34,436
What is the probability of player A winning this Coin Toss Game? Player A throws a fair coin n+1 times. Player B throws the same coin n times. Player A wins if she throws more heads than Player B. What is the probability of player A winning the game? My approach has been that since the answer is independent of n, so I...
A probability theory question about independent coin tosses by two players Say Bob tosses his $n+1$ fair coins and Alice tosses her $n$ fair coins. Lets assume independent coin tosses. Now after all the $2n+1$ coin tosses one wants to know the probability that Bob has gotten more heads than Alice. The way I thought ...
What kind of distribution is this "almost" uniformly distributed data for calls/week? My supervisor asked me to find out which distribution represents a particular situation. I have a VoIP generator that generates calls "uniformly" distributed between callers. This means that the volume per caller distribution is "alm...
eng_Latn
34,437
Expected number of bins with more than one ball Suppose that $n$ balls are randomly thrown into $N$ bins. We can compute the expected number of bins that contain at least one ball as $E(X) = N(1 - (1 - 1/N)^n)$. Now, suppose that instead we are asked for the expected number $E(Y)$ of bins that contain more than one b...
another balls and bins question I've seen many variations of this problem but I can't find a good, thorough explanation on how to solve it. I'm not just looking for a solution, but a step-by-step explanation on how to derive the solution. So the problem at hand is: You have m balls and n bins. Consider throwing each...
Coupon collector's problem: mean and variance in number of coupons to be collected to complete a set (unequal probabilities) There are $n$ coupons in a collection. A collector has the ability to purchase a coupon, but can't choose the coupon he purchases. Instead, the coupon is revealed to be coupon $i$ with probabilit...
eng_Latn
34,438
Get random numbers that sum to a value N and have a specific variance As the title says, I need numbers that sum to a value N lets say 0.9 and have a specific variance. My background is not in mathematics so please be gentle with the terms. Any help is appreciated.
How to simulate data that satisfy specific constraints such as having specific mean and standard deviation? This question is motivated by . But I imagine that it would also be useful in teaching contexts where you want to create a dataset that exactly mirrors an existing published dataset. I know how to generate rando...
What kind of distribution is this "almost" uniformly distributed data for calls/week? My supervisor asked me to find out which distribution represents a particular situation. I have a VoIP generator that generates calls "uniformly" distributed between callers. This means that the volume per caller distribution is "alm...
eng_Latn
34,439
You have 6 green chips, 6 black, and 6 yellow. You randomly select a sample of 3 chips without replacement. What is the probability that the sample contains at least one chip of each color?
You have 6 red balls, 6 blue, and 6 white. You randomly select a sample of 3 balls without replacement. The balls, save for the color, are indistinguishable from each other. What are the odds that your sample contains at least a ball from each color? I thought about finding the chance that the sample will not contain ...
You have 6 red balls, 6 blue, and 6 white. You randomly select a sample of 3 balls without replacement. The balls, save for the color, are indistinguishable from each other. What are the odds that your sample contains at least a ball from each color? I thought about finding the chance that the sample will not contain ...
eng_Latn
34,440
A company puts five different types of prizes into their cereal boxes, one in each box and in equal proportions. If a customer decides to collect all five prizes, what is the expected number of boxes of cereals that he or she should buy? TRY Let $X$ be the number of boxes customer buys. For $i=1,2,3,4,5$, write $$ X_{...
What is the average number of times it would it take to roll a fair 6-sided die and get all numbers on the die? The order in which the numbers appear does not matter. I had this questions explained to me by a professor (not math professor), but it was not clear in the explanation. We were given the answer $(1-(\frac...
The entire site is blank right now. The header and footer are shown, but no questions.
eng_Latn
34,441
I went through some books and found this problem. I am unable, and am really curious to see the proof. There are 3 different colored balls in an urn: Red, Blue and Green. There are 6 reds, 7 blues and 8 green. Balls are drawn until one color is completely drawn. Find with proof the probability that all the blue bal...
Suppose that a box contains 10 red balls, 20 green balls, and 30 blue balls. Suppose also that balls are drawn from the box one at a time at random. What is the probability that all the red balls are drawn before the blue or green balls are themselves exhausted. What is the probability that as the last red ball is d...
If the edges of the complete graph $K_{17}$ (on 17 vertices with no three collinear) are each colored one of three colours can it be proven to have two or more monochromatic triangles?
eng_Latn
34,442
I want to play a game which uses one 10-faces dice, but I only have 6-faces "classic" dices at my disposal. Is it possible to approximately recover, to an arbitrary precision, a 10-faces dice probability distribution using N classic 6-faces dices and clever algorithm ? I have no clue how or even if this is re...
I want to get random decimal digits out of a 6-faced die. Let's say the die is fair, with an equal probability for each outcome. (But feel free to share any consequences of that not being true, if you feel like it.) I will represent the outcome of a die roll as a base-6 number: In base-6 there are only 6 possible d...
The new Top-Bar does not show reputation changes from Area 51.
eng_Latn
34,443
A and B play a bit game. Unbiased bit generator is generating 0 or 1 repeatedly until one of the following happens. The bit patterns to '00' (i.e., a 0 is immediately followed by a 0) for the first time. In this case A wins. The bit patterns to '01' (i.e., a 0 is immediately followed by a 1) for the first time. In t...
If A and B play a game with a fair coin such that A wins by getting consecutive TT for the first time, while B wins by getting a consecutive TH. Who has higher probability of winning the game? I tried the following method but not sure: For A to win, TT, HTT, HHTT ... that is, 2-k for each game length k For B ...
The entire site is blank right now. The header and footer are shown, but no questions.
eng_Latn
34,444
I am using bootstrap for my simulation. The number of the population is flexible for each case, and the sample size is decided by a certain percentage. For example, I have a 10,000 population, and I decide to use 10% for each iteration of bootstrap, so the sample size is 1,000. In practice, I found it is hard to deci...
I wonder if someone knows any general rules of thumb regarding the number of bootstrap samples one should use, based on characteristics of the data (number of observations, etc.) and/or the variables included?
The new Top-Bar does not show reputation changes from Area 51.
eng_Latn
34,445
According to the Monty Hall Problem, I select a door, say door number $1$. Monty then opens $3$ of the remaining $6$ doors that do not contain the prize. The question is should I switch. Note that all the doors are said to have equal chance of containing the prize. My attempt: $$P(1) = \frac{1}{7}$$ Once Monty opens...
I just learned about the Monty Hall problem and found it quite amazing. So I thought about extending the problem a bit to understand more about it. In this modification of the Monty Hall Problem, instead of three doors, we have four (or maybe $n$) doors, one with a car and the other three (or $n-1$) with a goat each (I...
The entire site is blank right now. The header and footer are shown, but no questions.
eng_Latn
34,446
You’re given a bag containing $n$ pieces of thread of length $l$. $ $ You’re asked to reach down the bag and randomly pull out one end of a thread. You’re then asked to knot this end to another end of a thread (that you also pull out randomly from the bag). $ $ $ $ You have to do this $n$ times. At the end of th...
There are 100 ropes in a bag. In each step, two rope ends are picked at random, tied together and put back into a bag. The process is repeated until there are no free ends. What is the expected number of loops at the end of the process?
Is there a way to resolve probability of an event, given another event that never happens? Mathematically speaking the problem is: Given that $P(B) = 0$, $$P(A|B)=\frac{P(A \cap B)}{P(B)} = \frac{0}{0}$$ Is this probability vacuously $0$ of $1$? Can we show that it's one or the other?
eng_Latn
34,447
The question is An insurance company supposes that the number of accidents that each of its policyholders will have this year is Poisson distributed, with a mean depending on the policyholder: the Poisson mean $\Lambda$ of a randomly chosen person has a Gamma distribution with the $\Gamma(2, 1)$-density function $...
An insurance company supposes that the number of accidents that each of its policyholders will have this year is Poisson distributed, with a mean depending on the policyholder: the Poisson mean Λ of a randomly chosen person has a Gamma distribution with the Γ(2, 1)-density function fΛ(λ) = λe−λ (λ > 0). Find the expect...
Clearly if $\lambda$ is an eigenvalue of $A$ then $p(\lambda)$ is an eigenvalue of $p(A)$ where $p$ is a polynomial. And there are cases where $A$ may have eigenvalues other than these. Is there a general rule for finding all eigenvalues of $p(A)$? Does it depend on the field from which the elements of $A$ are taken?...
eng_Latn
34,448
RSA: How effective is this keypair-trash attack A question that could very well be part of xkcd's "what if?": Let's say Monica made a piece of software that sends all RSA keypairs to a central database after they're not used anymore. Something like a keypair-trash. Let's say Monica has convinced everyone in the world ...
How many RSA keys before a collision? I was wondering how many possible private/public keys exist? If a million people – for whatever reason – would try to generate 5 keys each in the same minute (on the same date and time) is there a high chance of collision? I believe GUID would suffer from that problem as many bits ...
Birthday Problem applied to collisions I'm trying to extend the birthday problem to detect collision probability in a hashing scheme. Here is my problem. I use the letters and numbers [A-Z][a-z][0-9] to make a set of keys by randomly choosing from that set 10 times and concatenating them all together. So A24cv30kf2 cou...
eng_Latn
34,449
array.reduce with incorrect results Given: let rows = [ { Amount: 190615.83 }, { Amount: -175867.95 }, { Amount: -14747.88 }, ] const sum = rows.reduce((runSum, v) => runSum + v.Amount, 0); console.log(sum); The sum should return 0 but it returns -2.3646862246096134e-11 see: How can I make this add...
Is floating point math broken? Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen?
Is there a simple reason why the expected number of coin flips till getting $m$ more heads than tails or $n$ more tails than heads should be $mn$? I flip a coin until I get $m$ more heads than tails, or $n$ more tails than heads. Let the expected number of flips of the coin before stopping be $f(m,n)$. I obtained $f(m...
eng_Latn
34,450
How can I roll N dice in constant time and preserve a binomial distribution? If I want to throw a 100d6, I have to: int sum=0; for(int i=0; i<100; i++) sum += Random.BetweenInclusive( 1, 6); But for high dice count it may be expensive. Does there exist any algorithm that is able to throw many dice with an al...
Accurately simulating the lots of dice rolls without loops? OK so if your game rolls lots of dice you can just call a random number generator in a loop. But for any set of dice being rolled often enough you will get a distribution curve/histogram. So my question is there a nice simple calculation I can run that will gi...
Combinatorics Distribution - Number of integer solutions Concept Explanation I reading my textbook and I don't understand the concept of distributions or number of solutions to an equation. It's explained that this problem is 1/4 types of sampling/distributions problems. An example is provided to illustrate: In h...
eng_Latn
34,451
Is there are any ways an agent can see the number of pending chat requests on omni channel? I am facing a scenario where an agent can see 4 cases in the omni channel. The agent can not see if there are any pending cases in the queue unless the agent closes one case down from four. Simply, i want the agent to see if the...
Is there any way to get the number of pending chat request on omni channel? I have a requirement to get the number of pending chat request in the omni channel. I have set the presence configuration capacity to 5 so that an agent can have only 5 chat requests. if a case is solved agent will get one of the pending chat ...
How many bandits must agree? Problem A group of $n~(1 \leq n \leq 30)$ bandits hid their stolen treasure in a room. The treasure needs to be locked away. The bandits want to ensure that at least $k~(1 \leq k \leq n)$ of the bandits must agree in order to retrieve the treasure. They have decided to place multiple lo...
eng_Latn
34,452
What is the expected number of boxes that remain empty? 10 balls are placed in 10 boxes independently at random. Assuming that all 10 boxes were initially empty, what is the expected number of boxes that remain empty? Here are the possible answers, but please explain the solution: a)$\left(\frac{9}{10}\right)^9$ b)$\...
another balls and bins question I've seen many variations of this problem but I can't find a good, thorough explanation on how to solve it. I'm not just looking for a solution, but a step-by-step explanation on how to derive the solution. So the problem at hand is: You have m balls and n bins. Consider throwing each...
Probability of complete coupon set in $K$ boxes where a box has $N$ distinct coupons? Say there is a contest to collect a full set of $M$ coupons. Each box of product has $N$ distinct coupons of the $M$ possible coupons in it, selected uniformly without replacement from the $M$ possible coupons, the same $N$ in number...
eng_Latn
34,453
Stretch an Excel table in PowerPoint over multiple slides? I work in a business where most people run on PowerPoint and wouldn't know what to do with an Excel sheet if it bit them. I need to regularly update a spreadsheet and put it into PowerPoint, but it takes up about 7 slides, requiring me to manually choose the sl...
Split Excel table over multiple PowerPoint slides I have a table in Excel which is too long for one PowerPoint slide. So I would like to split it over 2 or 3 slides, but have the header on each of the slides. What is the easiest way to accomplish that? I am using Excel and PowerPoint 2007.
Tile Edge Challenge I've been having a problem with these problems for a week now so I thought I'd post it on MSE. Read the text below. . I've also typed it up: Annabel made a shape by placing identical square tiles in a frame as shown in the diagram above. The tiles are arranged in columns. Each column touches the ba...
eng_Latn
34,454
scipy norm.pdf return probability of a particular outcome The Probability of a particular outcome is always zero, but Scipy's norm.pdf() function returns the probability value of a particular event. For example onlinestatbook.com/2/calculators/normal_dist.html in this link, we are not allowed to check the probability o...
Can a probability distribution value exceeding 1 be OK? On the , there is this line: $p(\mathrm{height}|\mathrm{male}) = 1.5789$ (A probability distribution over 1 is OK. It is the area under the bell curve that is equal to 1.) How can a value $>1$ be OK? I thought all probability values were expressed in th...
Sampling with replacement or without replacement I'm writing a program in R that simulates bank losses on car loans. Here is the questions I'm trying to solve: You run a bank that has a history of identifying potential homeowners that can be trusted to make payments. In fact, historically, in a given year, only 2% of...
eng_Latn
34,455
Monte Carlo simulation for grouped averages Assume we have $N$ random variables $X_1, \ldots, X_N$. As an example, assume that these random variables describe test scores of $N$ students. I am interested in finding the distribution of average test scores within the best 20% of students, the second 20% of students, etc....
Expected value of subset of variables in Bayesian setting Assume we have $N$ random variables $X_1, \ldots, X_N$ with known (posterior) distributions that are easy to sample from. For simplicity, assume that I am interested in the expected value of the ten largest of these random variables. There will be some uncertain...
How to determine best cutoff point and its confidence interval using ROC curve in R? I have the data of a test that could be used to distinguish normal and tumor cells. According to ROC curve it looks good for this purpose (area under curve is 0.9): My questions are: How to determine cutoff point for this test an...
eng_Latn
34,456
Probability that all cards have been drawn Let's say, I have a deck of $m$ cards from which I will draw $n$ cards at random, watch them and put them back in the deck. I want to know; what is the change after $k$ draws, that I have seen all cards in the deck. It is actually a variant to the problem described , however ...
How many stickers do I need to complete my FIFA Panini album? I'm playing the , which is an Internet adaption of the classic Panini albums that are usually published for the soccer world cup, European championship, and possibly other tournaments. The album has placeholders for 424 different stickers. The purpose of th...
Coupon Collector Problem with Batched Selections I am trying to solve a variation on the . In this scenario, someone is selecting coupons at random with replacement from n different possible coupons. However, the person is not selecting coupons one at a time, but instead, in batches. Here's an example problem formula...
eng_Latn
34,457
Are there any approximation for ratios of factorials (and other similar high-precision ratios with rounding issues?) I was wondering if there is some mathematical approximation for calculating the ratios of factorials. I don't mean a shortcut to deriving the factorial results through a means like Stirling's Formula, bu...
How can I prevent Overflow for the Gamma function? I have a Dirichlet distribution from which I'm maximizing $\alpha$ by calculating the log likelihood with the following equation $p\left(s|\alpha\right) = \sum\limits_{i=1}^O\log\left(\frac{n_i!}{\prod\limits_{j=1}^kn_{ij}!}\frac{\Gamma\left(\alpha_0\right)}{\Gamma\le...
Birthday problem: why is this solution wrong? This question is about the birthday problem: the probability that in a group of n people, at least two of them have the same birthday (). An easy way to calculate the probability is to calculate first the probability that no two people have the same birthday. Let's say th...
eng_Latn
34,458
In how many ways can eight distinct balls be distributed to three distinct boxes so that each box must contain at least one ball? In how many ways can eight distinct balls be distributed to three distinct boxes so that each box must contain at least one ball? So in order to approach this problem I was first thinking ...
A different approach in distributing $8$ distinct balls into $6$ distinct boxes Find the number of ways in distributing $8$ distinct balls into $6$ distinct boxes such that there is at least $1$ ball in each box. We are well acquainted with the traditional Inclusion-Exclusion principle in solving this and it will come...
What are the chances of getting $K$ identical outcomes in a row in a series of $Y$ independent events? Each event has two possible outcomes: a and b. Each event is independent. Outcome a has $X\%$ chance of happening. If we run $Y$ number of such events, what are the chances of getting $K$ outcomes a in a row, at le...
eng_Latn
34,459
What is the meaning of the density of a distribution at a point? I know how to use PDFs to calculate probabilities, but I don't think I understand them. For example, at $X=0$ the PDF of the standard normal distribution is $\approx 0.4$. Does this have any useful meaning?
Can a probability distribution value exceeding 1 be OK? On the , there is this line: $p(\mathrm{height}|\mathrm{male}) = 1.5789$ (A probability distribution over 1 is OK. It is the area under the bell curve that is equal to 1.) How can a value $>1$ be OK? I thought all probability values were expressed in th...
Coupon collector problem with partial collection of a specific set of coupons I am very new in probability and combinatorics and have a naive question around a variation on the coupon collector problem with partial collection. Lets assume we have a box with 45 coupons labeled 1-45. Now in this case I would like to ad...
eng_Latn
34,460
What is the best way to partition a collection into smaller collections I have a collection of car objects and i am looking through them like this: var slide = CreateSlide(); foreach (var car in carCollection) { displayonSlide(car, slide) } I now realize that i can only fit 5 cars on a slide so i need to ta...
Split List into Sublists with LINQ Is there any way I can separate a List<SomeObject> into several separate lists of SomeObject, using the item index as the delimiter of each split? Let me exemplify: I have a List<SomeObject> and I need a List<List<SomeObject>> or List<SomeObject>[], so ...
A logic puzzle involving a balance. Possible Duplicate: You have 12 balls and you know that they all weigh the same except for 1 which is heavier or lighter than all the others (you don't know which though). How can you make sure you know which ball is the heaviest/lightest in only 3 weighings? The way I appr...
eng_Latn
34,461
Counting problem about pirates and gold coins Five pirates find a cache of 500 gold coins. They decide that the shortest pirate will serve as the bursar and determine a distribution of the coins however he sees fit, and then they all will vote. If at least half of the pirates (including the bursar) agree on the distrib...
9 pirates have to divide 1000 coins... A band of 9 pirates have just finished their latest conquest - looting, killing and sinking a ship. The loot amounts to 1000 gold coins. Arriving on a deserted island, they now have to split up the loot. You, as the captain of the band, have to propose a distribution plan (who ge...
A logic puzzle involving a balance. Possible Duplicate: You have 12 balls and you know that they all weigh the same except for 1 which is heavier or lighter than all the others (you don't know which though). How can you make sure you know which ball is the heaviest/lightest in only 3 weighings? The way I appr...
eng_Latn
34,462
Can I roll a d10 twice for rolling percentiles? I forgot to also buy a percentile die. I was thinking of rolling d10 for the first digit of the number for the right, for example 6, and then rolling the d10 again for the second digit, for example 9, in this case giving me a 96%. Is this legitimate?
When rolling percentages, do 1d100 and two d10s (percentiles) share the same probabilities? I know d100s are shunned because they take too much time to roll, and 1d10+1percentile is really fun, but do they share the same probabilities? Is it better to use a (digital) d100? Also, do d100s have 0? You can't roll a 0 wit...
Probability of Various Combinations of Weather There's a 10% chance it will rain today. There's a 15% chance it will snow today. What percentage chance is it that it will: Both rain and snow (it can both rain and snow at the same time)? Neither rain nor snow? - Raining and snowing are independent of each other. ...
eng_Latn
34,463
Negative Binomial Distributing finding X The number of injuries at a college football game has the following probability distribution: Probability 0.14 0.33 0.23 0.17 0.09 0.04 Number of injuries 0 1 2 3 4 5 The coach must file a report whenever there is more than one injury in any game. Calculate the expected numbe...
Probability expected value football problem The number of injuries at a college football game has the following probability distribution: $$\begin{array}{|l:l|} \hline \textrm{Number of injuries} & 0 & 1 & 2 & 3 & 4 & 5 \\ \hdashline \textrm{Probability} & 0.14 & 0.33 & 0.23 &am...
Coupon collector's problem: mean and variance in number of coupons to be collected to complete a set (unequal probabilities) There are $n$ coupons in a collection. A collector has the ability to purchase a coupon, but can't choose the coupon he purchases. Instead, the coupon is revealed to be coupon $i$ with probabilit...
eng_Latn
34,464
What is the probability of rolling $n$ dice until each side appears at least once? We roll a die until each side appears at least once, then we stop. What is the probability of rolling exactly $n$ dice? I guess the answer is $$6-6\left(\dfrac{5}{6}\right)^n\;,$$ but this may be wrong. In trying to solve this p...
Expected time to roll all 1 through 6 on a die What is the average number of times it would it take to roll a fair 6-sided die and get all numbers on the die? The order in which the numbers appear does not matter. I had this questions explained to me by a professor (not math professor), but it was not clear in the ex...
What's wrong with this equal probability solution for Monty Hall Problem? I'm confused about why we should change door in the Monty Hall Problem, when thinking from a different perspective gives me equal probability. Think about this first: if we have two doors, and one car behind one of them, then we have a 50/50 c...
eng_Latn
34,465
Is there an intuitive explanation of $n$-dimensional sphere's surface and volume being maximal in dimensions 5 and 6? I was wondering if there is an intuitive explanation why the surface of an $n$-dimensional sphere is maximal at $n=6$ and for the volume $n=5$. I know that for the surface you have: $$A_n=\frac{2\pi^\fr...
Volumes of n-balls: what is so special about n=5? The volume of an $n$-dimensional ball of radius $1$ is given by the classical formula $$V_n=\frac{\pi^{n/2}}{\Gamma(n/2+1)}.$$ For small values of $n$, we have $$V_1=2\qquad$$ $$V_2\approx 3.14$$ $$V_3\approx 4.18$$ $$V_4\approx 4.93$$ $$V_5\approx 5.26$$ $$V_6\approx...
How often do you have to roll a 6-sided die to obtain every number at least once? I've just played a game with my kids that basically boils down to: whoever rolls every number at least once on a 6-sided die wins. I won, eventually, and the others finished 1-2 turns later. Now I'm wondering: what is the expectation of ...
eng_Latn
34,466
How likely am I to have a key card in my starting hand in Brawl? I'm playing the Brawl format (a 60-card singleton format), and I really want one specific card in my starting hand. I'm willing to take two mulligans (leaving me with a starting hand of 5 cards after putting 2 on the bottom of my library). What are the ...
How do you calculate the likelihood of drawing certain cards in your opening hand? In Magic, at the start of the game, you draw 7 cards. How would you calculate the likelihood of drawing a specific card in your opening hand? For example, let's say I have a 60 card deck, and I'm running 4 . What is the percent chance t...
Sampling with replacement or without replacement I'm writing a program in R that simulates bank losses on car loans. Here is the questions I'm trying to solve: You run a bank that has a history of identifying potential homeowners that can be trusted to make payments. In fact, historically, in a given year, only 2% of...
eng_Latn
34,467
Probability of a player winning before another Given a 7 sided dice, 2 players roll it independantly simultaneously and when a player rolls a '6' he gets a prize. What is the probability of the first player getting a prize before the second? So my solution is to sum over all the turns j in which player 1 could win, a...
Alternate moves, first one to roll a 6 wins: what's the probability of winning? Question: Players A and B play a sequence of independent games. Player A starts and throws a fair die and wins on a "six". If she fails then player B throws the same die and wins on a "six" or fails otherwise. If she fails then player A get...
Compute $P(X_1+\cdots+X_k\lt 1)$ for $(X_i)$ i.i.d. uniform on $(0,1)$ Consider $N=\min\{n: S_n>1\}$, where $S_n=X_1+\cdots+X_n$ and $(X_i)_{i=1}^\infty$ is i.i.d. uniform on $(0,1)$. So, $N$ is the first time that $(S_n)_{n=1}^\infty$ crosses $1$. I'd like to calculate $E(N)$. To this end I'd like to calculate $\Pr...
eng_Latn
34,468
How many rectangles can be observed in the grid? In a $2 × 4$ rectangle grid shown below, each cell is a rectangle. How many rectangles can be observed in the grid? My attempt: I found a formula somewhere, Number of rectangles are $= m(m+1)n(n+1)/4 = 2\times4\times3\times5/4 = 30$. Can you please explain this? Upa...
How many rectangles or triangles. I have come across numerous questions where I am given the picture such as the above one been asked "how many rectangles are there?". I have even come across some slightly different images that instead of rectangles you are supposed to find the number of triangles. Well, I was thinking...
Probability distribution in the coupon collector's problem I'm trying to solve the well known Coupon Collector's Problem by explicitly finding the probability distribution (so far all the methods I read involve using some sort of trick). However, I'm not having much luck getting anywhere as combinatorics is not somethi...
eng_Latn
34,469
How can hashes be unique if they are limited in number? I'm curious, how can for example SHA-256 be unique if there are only a limited number of them?! For clarification: how many MD5 hashes are there? $16^{32}$ MD5 hashes can be produced. $16^{64}$ SHA-256 hashes can be produced. while there are $16^{128}$ just SHA-...
SHA-256 "almost unique"? I have seen numerous references on the internet of people describing SHA-256 as generating an "almost unique" hash. . there are more. Is there some mathematical basis to the almost uniqueness? I would have thought that as SHA-256 is an evenly-distibuted (?) hash algorithm which can accept any...
How often do you have to roll a 6-sided die to obtain every number at least once? I've just played a game with my kids that basically boils down to: whoever rolls every number at least once on a 6-sided die wins. I won, eventually, and the others finished 1-2 turns later. Now I'm wondering: what is the expectation of ...
eng_Latn
34,470
Starting higher-level players in Hoard of the Dragon Queen I'm a newbie GM running the 5e starter set adventure (Lost Mines). My players are progressing well through it, and are at 3rd level closing in on 4th level. Assuming they make it through the adventure (and get to 5th level) the intended plan is to start on Hoar...
How can I start Hoard of the Dragon Queen with 4th level characters? I'm pretty new to DM'ing and was just wondering if there would be a way to start the hoard of the dragon queen adventure with a group of 4th level characters? There don't really seem to be any modules for that level range yet. We just finished a sho...
How often do you have to roll a 6-sided die to obtain every number at least once? I've just played a game with my kids that basically boils down to: whoever rolls every number at least once on a 6-sided die wins. I won, eventually, and the others finished 1-2 turns later. Now I'm wondering: what is the expectation of ...
eng_Latn
34,471
5 cards can be drawn from a single deck of 52 cards What is the number of ways that 5 cards can be drawn from a single deck of 52 cards?Is it 52c5 or 52p5 ???
An instructor has an exam of 5 questions and a question bank of 50 questions. Are there $50\choose 5$ or $(50)_5$ possible exams? Where $(50)_5 = 50! / 45! $ and $50\choose 5$ $= 50!/(5!45!)$ I've narrowed it down to these two possibilities (though even these may be wrong), but I think I'm confusing myself as to whic...
Probability of complete coupon set in $K$ boxes where a box has $N$ distinct coupons? Say there is a contest to collect a full set of $M$ coupons. Each box of product has $N$ distinct coupons of the $M$ possible coupons in it, selected uniformly without replacement from the $M$ possible coupons, the same $N$ in number...
eng_Latn
34,472
Maximum value of a probability function Ten fish are caught in a lake, marked, and then returned to the lake. Two days later $20$ fish are again caught, two of which have been marked. Find the probability of two of the $20$ fish being marked if the lake has $k$ fish (assuming the fish are caught at random). we need t...
Find the population size that maximizes the probability that two random samples of size $20$ will have exactly $2$ members in common Ten fish are caught in a lake, marked, and then returned to the lake. Two days later 20 fish are again caught, 2 of which have been marked. (a) Find the probability of 2 of the 20 fish b...
How often do you have to roll a 6-sided die to obtain every number at least once? I've just played a game with my kids that basically boils down to: whoever rolls every number at least once on a 6-sided die wins. I won, eventually, and the others finished 1-2 turns later. Now I'm wondering: what is the expectation of ...
eng_Latn
34,473
If a random sample all came out positive, what can be inferred about the population? Specifically, let's say I take a random sample of 20 products from a manufacturing batch of 1000 and they all tested good, what assumptions and conclusions can I make about the whole batch? Is it possible to say "There is an x% chance ...
How to tell the probability of failure if there were no failures? I was wondering if there is a way to tell the probability of something failing (a product) if we have 100,000 products in the field for 1 year and with no failures? What is the probability that one of the next 10,000 products sold fail?
Why are these estimates to the German tank problem different? Suppose that I observe $k=4$ tanks with serial numbers $2,6,7,14$. What is the best estimate for the total number of tanks $n$? I assume the observations are drawn from a discrete uniform distribution with the interval $[1,n]$. I know that for a $[0,1]$ ...
eng_Latn
34,474
What is the expected number of cards you should turn before finding a queen (WITH REPLACEMENT) I see this as a geo-distribution problem but i'm very confused about it. Pls help
Expected value of the number of flips until the first head Suppose we flip a coin until we see a head. What is the expected value of the number of flips we will take? I am pretty new to expected value, so I tried to evaluate it by multiplying the probability of each scenario with the number of flips it took to get the...
How to compare (probability) predictive ability of models developed from logistic regression? I know some well-known measures are $c$ statistic, Kolmogorov-Smirnov $D$ statistic. However, as far as I know, those statistics take into account only of the rank order of the observations, and is invariant under changing the...
eng_Latn
34,475
How can I implement chance/probability into Python? I want to have Python print "Yes" 70% of the time, and "No" 30% of the time. How should I go about doing so?
How do I simulate flip of biased coin? In unbiased coin flip H or T occurs 50% of times. But I want to simulate coin which gives H with probability 'p' and T with probability '(1-p)'. something like this: def flip(p): '''this function return H with probability p''' # do something return result >> [f...
Is there a way to show statistic info? Is there a way to get Statistic info in Blender? Or heads up display? Like when I select a group of vertices, I need a way to know how many vertices are selected and How many polygons "or triangles my scene has.
eng_Latn
34,476
number of cycles in the graph is at least $k − n + 1$ Suppose a graph has n vertices and k edges, for n ≥ 1. Prove that the number of cycles in the graph is at least $k − n + 1$. I started doing induction on the number of edges and got stuck; base case: k=0 then number of cycles is atleast $-n+1≤ 0$ suppose it holds fo...
Prove that the minimum number of cycles is $m-n+1$ The question I have is: Prove that the minimum number of cycles is $m-n+1$ in a connected graph. Where one cycle is a path that starts that begins and ends at the same vertex. Where $m$ is edges and $n$ is the vertices. I have no idea where to start. A few hints wo...
Is there a simple reason why the expected number of coin flips till getting $m$ more heads than tails or $n$ more tails than heads should be $mn$? I flip a coin until I get $m$ more heads than tails, or $n$ more tails than heads. Let the expected number of flips of the coin before stopping be $f(m,n)$. I obtained $f(m...
eng_Latn
34,477
get the closest points Let's say I have a bunch of points: What is the best way to get a certain amount of closest neighbors. For example I wan't the 8 closest points for point no 57. This without using brute force. O yeah, if possible, it would be great if it's efficient for moving points as well.
Efficient way to check collision with potentially hundreds of objects I am trying to make a top down shooter that could potentially have hundreds of objects at once at one point. I need to check collision with projectiles, walls, and enemies. I am currently using ArrayLists which probably won't suffice later on and was...
Coupon collector problem with partial collection of a specific set of coupons I am very new in probability and combinatorics and have a naive question around a variation on the coupon collector problem with partial collection. Lets assume we have a box with 45 coupons labeled 1-45. Now in this case I would like to ad...
eng_Latn
34,478
Two old gamblers alternate at rolling a fair 6-sided die until the first 6 comes up. Compute the probability of the first player winning. Two old gamblers alternate at rolling a fair 6-sided die until the first 6 comes up. Compute the probability of the first player winning. Let X be the number of trials the first one...
Alternate moves, first one to roll a 6 wins: what's the probability of winning? Question: Players A and B play a sequence of independent games. Player A starts and throws a fair die and wins on a "six". If she fails then player B throws the same die and wins on a "six" or fails otherwise. If she fails then player A get...
$k$ times's draw from $n$ numbers with replacement, each number at least appear once Sample $k$ times with order from $n$ distinct numbers with replacement where $k\ge n$. Here "with order" means the sample is treated like a sequence rather than a set, so results like "1,3,3" and "3,1,3" are different. The question is...
eng_Latn
34,479
probability that there is at least one defective part
probability that there is at least one defective part
probability that there is at least one defective part
eng_Latn
34,480
Probability of having picked every item from the set at least once after n turns, while picking 3 per turn
Probability of complete coupon set in $K$ boxes where a box has $N$ distinct coupons?
Direct proof that nilpotent matrix has zero trace
eng_Latn
34,481
Finding the number of ways to make change for a given amount I want to find the number of ways to make change for $22.22 using pennies, nickels, dimes, quarters, half dollars, and dollars. I have a textbook with generating functions for this, but I don't exactly see what to do.
Making Change for a Dollar (and other number partitioning problems) I was trying to solve a problem similar to the "how many ways are there to make change for a dollar" problem. I ran across a that said I could use a generating function similar to the one quoted below: The answer to our problem (293) is the coe...
Probability of success on third and fourth trials? I have a pretty basic probability question, but I'm just having difficulties remembering what distribution this is. A coin is tossed until a head appears two times in a row. Given that we are using a fair coin, what is the probability that we toss the coin exactly 4 t...
eng_Latn
34,482
$20$ hats problem I've seen this tricky problem, where $20$ prisoners are told that the next day they will be lined up, and a red or black hat will be place on each persons head. The prisoners will have to guess the hat color they are wearing, if they get it right the go free. The person in the back can see every hat i...
line of mathematicians guess their own hat color out of c colors There is a common problem in which a long line of N mathematicians are each given a hat that is either red or blue. They cannot see their own hat but can see all in front of time and can hear any response. They must state their own hat color from the bac...
How often do you have to roll a 6-sided die to obtain every number at least once? I've just played a game with my kids that basically boils down to: whoever rolls every number at least once on a 6-sided die wins. I won, eventually, and the others finished 1-2 turns later. Now I'm wondering: what is the expectation of ...
eng_Latn
34,483
probability that there is at least one defective part I study Economics and this is a statistic problem I am trying to solve - without great success, unfortunately. "A machine has a defect rate of 6%. a) Chosen at random 4 pieces (with replacement) from the production flow, compute the probability that none is defect...
probability that there is at least one defective part I study economics and I am trying to solve this problem - without success, unfortunately. A machine has a defect rate of 6%. a) Chosen at random 4 pieces (with replacement) from the production flow, compute the probability that none is defective. b) In t...
Before running a ridge regression model, do I need to preform variable selection? I am currently constructing a model that uses last year's departmental information to predict employee churn for the current year. I have 55 features and 318 departments in my data set. A good portion of my independent variables are cor...
eng_Latn
34,484
How to calculate the expected value of the coupon collector problem if we are collecting the coupons in groups of k? The problem: There are n different kinds of coupons, and we need to get every kind of coupon at least once to win. Each time we get new coupons we get them in a batch of k coupons where k ≤ n (the same ...
Coupon Collector Problem with Batched Selections I am trying to solve a variation on the . In this scenario, someone is selecting coupons at random with replacement from n different possible coupons. However, the person is not selecting coupons one at a time, but instead, in batches. Here's an example problem formula...
How often do you have to roll a 6-sided die to obtain every number at least once? I've just played a game with my kids that basically boils down to: whoever rolls every number at least once on a 6-sided die wins. I won, eventually, and the others finished 1-2 turns later. Now I'm wondering: what is the expectation of ...
eng_Latn
34,485
Probability that it is raining or snowing but not both? It can either rain, or snow, or do both, or neither. There is a $15\%$ chance that it is snowing right now. There is a $10\%$ chance that it is raining right now. Each is independent of the other. What is the chance that it is either raining or snowing right now, ...
Probability of Various Combinations of Weather There's a 10% chance it will rain today. There's a 15% chance it will snow today. What percentage chance is it that it will: Both rain and snow (it can both rain and snow at the same time)? Neither rain nor snow? - Raining and snowing are independent of each other. ...
Maximizing expected value of coin reveal game I was asked this question today in an interview and am still not sure of the answer. The question is as follows. Part one: Say I have flipped 100 coins already and they are hidden to you. Now I reveal these coins one by one and you are to guess if it is heads or tails be...
eng_Latn
34,486
Birthday problem but with $2^{128}$ different days in the year I am trying to calculate how many randomly generated ids I need to produce for there to be a 1% probability I get a duplicate id. There are $2^{128}$ possible ids. I understand this is just the birthday problem with a big number: $0.01=1-\frac{\operatorname...
Birthday Problem applied to collisions I'm trying to extend the birthday problem to detect collision probability in a hashing scheme. Here is my problem. I use the letters and numbers [A-Z][a-z][0-9] to make a set of keys by randomly choosing from that set 10 times and concatenating them all together. So A24cv30kf2 cou...
How often do you have to roll a 6-sided die to obtain every number at least once? I've just played a game with my kids that basically boils down to: whoever rolls every number at least once on a 6-sided die wins. I won, eventually, and the others finished 1-2 turns later. Now I'm wondering: what is the expectation of ...
eng_Latn
34,487
Unfair 3 Sided Dice If you roll an unfair 3 sided dice where Side 1 has probability $p_1$ Side 2 has probability $p_2$ Side 3 has probability $p_3$ How can you find a formula that the 8th 3 will be rolled on the 10th roll? I see that this question was asked before, its a good start, but there was no answer on this.
Unfair 3 Sided Die Question Say you have an unfair 3-sided die. Side 1 will be rolled with probability $P_1.$ Side 2 will be rolled with probability $P_2.$ Side 3 will be rolled with probability $P_3.$ Find a formula for the probability that the 8th 3 will be rolled on the 10th roll. Here is how I started: $$ \sum_...
What kind of distribution is this "almost" uniformly distributed data for calls/week? My supervisor asked me to find out which distribution represents a particular situation. I have a VoIP generator that generates calls "uniformly" distributed between callers. This means that the volume per caller distribution is "alm...
eng_Latn
34,488
Number of ways of selecting cells from a grid The following figure shows a $3^2\times 3^2$ grid divided into $3^2$ subgrids of size $3\times 3$. This grid has $81$ cells, $9$ in each subgrid. Now, consider an $n^2\times n^2$ grid divided into $n^2$ subgrids of size $n\times n$. Find the number of ways in which w...
Number of $n^2\times n^2$ permutation matrices with a 1 in each $n\times n$ subgrid I found the following question in a paper I was trying to solve: The following figure shows a $3^2 \times 3^2$ grid divided into $3^2$ subgrids of size $3 \times 3$. This grid has $81$ cells, $9$ in each subgrid. Now consider an $n^...
Probability distribution in the coupon collector's problem I'm trying to solve the well known Coupon Collector's Problem by explicitly finding the probability distribution (so far all the methods I read involve using some sort of trick). However, I'm not having much luck getting anywhere as combinatorics is not somethi...
eng_Latn
34,489
Which classification metric to use and why? I have a random forest classification model that classifies into 3 different labels. The thing is my data is unbalanced label 1 dominates the data with frequency of 0.5 while label 2 is around 0.35 and the third one is 0.15. Which classification metric would you recommend me ...
Which metric to use to evaluate highly imbalance classification model performance I have to do classification model to predict the possibilities of person getting cancer based on certain attributes. The data is highly imbalanced. As per client requirement I have to report model performance based on any one of these 4 m...
What kind of distribution is this "almost" uniformly distributed data for calls/week? My supervisor asked me to find out which distribution represents a particular situation. I have a VoIP generator that generates calls "uniformly" distributed between callers. This means that the volume per caller distribution is "alm...
eng_Latn
34,490
What is the probability that when a dice is rolled $6$ times, the sum of scores is $20$? A similar but easier question is “What is the probability that when a dice is rolled $3$ times, the sum of score is $13$ ?” For which you can easily solved by listing down all the possible combination of three numbers $(\leq 6)$...
Number of combinations of dice having different number of faces that add to $10$ A function $\textbf{face}_{\mathrm{sum}}$ that takes a vector $f$ that represents the number of faces of each die, and a positive integer $s$ , and returns the probability that the sum of the top faces observed is $s$ . For example, if...
Maximizing expected value of coin reveal game I was asked this question today in an interview and am still not sure of the answer. The question is as follows. Part one: Say I have flipped 100 coins already and they are hidden to you. Now I reveal these coins one by one and you are to guess if it is heads or tails be...
eng_Latn
34,491
What is the average number of moves it takes to solve every 3x3 rubik’s cube position if only random moves are made? Hope my question is clear enough. I’m just curious.
Number of moves necessary to solve Rubik's cube by pure chance Suppose, random moves are made to solve Rubik's cube. A move consists of a $90$-degree-rotation of some side. The starting position is also random. What is $E(X)$, where $X$ is the number of moves until the cube is solved ? How many moves must be made, th...
How long can I store a food in the pantry, refrigerator, or freezer? How do I know if a given food or ingredient I have is still good, or if I should discard it? How can I best preserve a food or ingredient? This broad question is intended as a "general reference" question to quickly answer many how long will food...
eng_Latn
34,492
Understanding the 95% confidence interval I am new to statistics, and recently came over interval confidence, but did not understand very well. Will you please explain this to me. to better understand, i will put an example as well: Lets say there are 5000 products in a store and we are checking the expiry date of them...
Confidence interval for Bernoulli sampling I have a random sample of Bernoulli random variables $X_1 ... X_N$, where $X_i$ are i.i.d. r.v. and $P(X_i = 1) = p$, and $p$ is an unknown parameter. Obviously, one can find an estimate for $p$: $\hat{p}:=(X_1+\dots+X_N)/N$. My question is how can I build a confidence inter...
Coupon Collector Problem with Batched Selections I am trying to solve a variation on the . In this scenario, someone is selecting coupons at random with replacement from n different possible coupons. However, the person is not selecting coupons one at a time, but instead, in batches. Here's an example problem formula...
eng_Latn
34,493
Unfair Three-Sided die Say you have an unfair 3-sided die. Side 1 will be rolled with probability $p_1$. Side 2 will be rolled with probability $p_2$. Side 3 will be rolled with probability $p_3$. Find a formula for the probability that the 8th 3 will be rolled on the 10th roll. My theory on this is to use a binomial ...
An unfair three-sided die. An unfair three-sided die. Side $1$ will be rolled with probability $p_1$ , Side $2$ with probability $p_ 2$ and Side $3$ with probability $p_ 3$ . Find a formula for the probability that the $8^{th}$ $3$ will be rolled on the $10^{th}$ roll. Attempt: First 9 rolls there are 7 three's. $$[...
How do I simulate flip of biased coin? In unbiased coin flip H or T occurs 50% of times. But I want to simulate coin which gives H with probability 'p' and T with probability '(1-p)'. something like this: def flip(p): '''this function return H with probability p''' # do something return result >> [f...
eng_Latn
34,494
Avg Number of random numbers between 0 and 1 required to add up to 1 A reddit comment claimed that you would require $e$ random numbers between $0$ and $1$ to add up to $1$. So I wrote a python program to verify this. Conducted the experiment with 100 thousand times 200 times. The Standard deviation of the results was ...
Compute $P(X_1+\cdots+X_k\lt 1)$ for $(X_i)$ i.i.d. uniform on $(0,1)$ Consider $N=\min\{n: S_n>1\}$, where $S_n=X_1+\cdots+X_n$ and $(X_i)_{i=1}^\infty$ is i.i.d. uniform on $(0,1)$. So, $N$ is the first time that $(S_n)_{n=1}^\infty$ crosses $1$. I'd like to calculate $E(N)$. To this end I'd like to calculate $\Pr...
number of ways to make $2.00 How many different ways can you make $2.00 using only 1 cent, 5 cent, 10 cent, and 25 cent pieces, and 1 and 2 dollar bills (there are 100 cents in a dollar)? I have worked out an equation: $$p + 5n + 10d + 25q + 100l + 200t = 200$$ Where all variables are non-negative integers. But I don...
eng_Latn
34,495
100 tickets numbered 1,2,3...,100, are sold to 100 different people for a drawing... I found the answer to these questions but I want someone could give explaination $100$ tickets numbered $1,2,3...,100$ are sold to $100$ different people for a drawing. Four different prizes are awarded, including a grand prize (trip t...
How do I do Combinatorics / Counting? If someone could give answers and explain, it would be greatly appreciated. Help required studying for a final. One hundred tickets, numbered 1,2,3,…,100, are sold to 100 different people for a drawing. Four different prizes are awarded, including a grand prize (a trip to Tahiti)....
How often do you have to roll a 6-sided die to obtain every number at least once? I've just played a game with my kids that basically boils down to: whoever rolls every number at least once on a 6-sided die wins. I won, eventually, and the others finished 1-2 turns later. Now I'm wondering: what is the expectation of ...
eng_Latn
34,496
How to prove whether it may be a parallelogram. I have four points, one in each quadrant. How to prove whether it may be a parallelogram. What formula should I use?
How to test whether a set of four points can form a parallelogram Given four points $(x_1,y_1)$,$(x_2,y_2)$,$(x_3,y_3)$,$(x_4,y_4)$. How can we efficiently test them to make sure whether they are vertices of a parallelogram? I think evaluating and comparing the distance between two points seems to be inefficient. What...
Magic 8 Ball Problem This problem is probably simple enough to have an analogous problem, I just don't know the name so I'm going to describe it and hopefully somebody can point me in the right direction. The problem is this: estimating the number of sides of a . Let's say you perform the following process: Shake ...
eng_Latn
34,497
Coin tossing game with one yes/no question. Let's assume we are playing a game. You have $100$ coins, you toss them and do not tell me the results. I can ask one yes/no question and after your answer I'll start guessing the coin results. For each correct result I'll get $1$ dollar and for each wrong guess I'll lose $1$...
Maximizing expected value of coin reveal game I was asked this question today in an interview and am still not sure of the answer. The question is as follows. Part one: Say I have flipped 100 coins already and they are hidden to you. Now I reveal these coins one by one and you are to guess if it is heads or tails be...
Selecting a security team that includes at most one of the oldest man or oldest woman A security company consists of $7$ men and $6$ women. Determine the number of ways to form the night shift team of $3$ men and $3$ women if it can include at most one of the oldest man or oldest woman. I know the first step is to pic...
eng_Latn
34,498
Expected number of rolls to get all colors on a fair die with 3 colors there are 3 colors in a fair die with 2 faces each. which means that the probability of getting each color is 1/3. Let N be the number to get all the colors. What is the expected value oh N: E(N)? (i.e there are only 2 colors on N-1 throw)
Expected time to roll all 1 through 6 on a die What is the average number of times it would it take to roll a fair 6-sided die and get all numbers on the die? The order in which the numbers appear does not matter. I had this questions explained to me by a professor (not math professor), but it was not clear in the ex...
What kind of distribution is this "almost" uniformly distributed data for calls/week? My supervisor asked me to find out which distribution represents a particular situation. I have a VoIP generator that generates calls "uniformly" distributed between callers. This means that the volume per caller distribution is "alm...
eng_Latn
34,499