Probability of throwing exactly $V$ distinct sides on $N$ sided dice by $K$ rolls

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I'm struggling with finding a non-recursive formula for calculating the following probability:



Probability of throwing exactly $V$ distinct sides (numbers) on $N$ sided dice by $K$ rolls



Example for a normal dice where number of sides $N=6$, rolls $K=6$ and required distinct sides $V=2$ can be found here: Six throws, only two distinct numbers: coincidence?



The formula in the example is not general and only solution I can find is recursive one which I cannot use.







share|cite|improve this question



















  • It would surprise me if the fact that you can only find recursive solutions is coincidental. I suspect there is no closed-form general solution for this.
    – Vera
    Jul 20 at 14:44











  • I hope it's just because I'm quite lame at closed formulas rather than the closed formula doesn't exist :-)
    – L D
    Jul 20 at 14:56














up vote
1
down vote

favorite












I'm struggling with finding a non-recursive formula for calculating the following probability:



Probability of throwing exactly $V$ distinct sides (numbers) on $N$ sided dice by $K$ rolls



Example for a normal dice where number of sides $N=6$, rolls $K=6$ and required distinct sides $V=2$ can be found here: Six throws, only two distinct numbers: coincidence?



The formula in the example is not general and only solution I can find is recursive one which I cannot use.







share|cite|improve this question



















  • It would surprise me if the fact that you can only find recursive solutions is coincidental. I suspect there is no closed-form general solution for this.
    – Vera
    Jul 20 at 14:44











  • I hope it's just because I'm quite lame at closed formulas rather than the closed formula doesn't exist :-)
    – L D
    Jul 20 at 14:56












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I'm struggling with finding a non-recursive formula for calculating the following probability:



Probability of throwing exactly $V$ distinct sides (numbers) on $N$ sided dice by $K$ rolls



Example for a normal dice where number of sides $N=6$, rolls $K=6$ and required distinct sides $V=2$ can be found here: Six throws, only two distinct numbers: coincidence?



The formula in the example is not general and only solution I can find is recursive one which I cannot use.







share|cite|improve this question











I'm struggling with finding a non-recursive formula for calculating the following probability:



Probability of throwing exactly $V$ distinct sides (numbers) on $N$ sided dice by $K$ rolls



Example for a normal dice where number of sides $N=6$, rolls $K=6$ and required distinct sides $V=2$ can be found here: Six throws, only two distinct numbers: coincidence?



The formula in the example is not general and only solution I can find is recursive one which I cannot use.









share|cite|improve this question










share|cite|improve this question




share|cite|improve this question









asked Jul 20 at 14:38









L D

82




82











  • It would surprise me if the fact that you can only find recursive solutions is coincidental. I suspect there is no closed-form general solution for this.
    – Vera
    Jul 20 at 14:44











  • I hope it's just because I'm quite lame at closed formulas rather than the closed formula doesn't exist :-)
    – L D
    Jul 20 at 14:56
















  • It would surprise me if the fact that you can only find recursive solutions is coincidental. I suspect there is no closed-form general solution for this.
    – Vera
    Jul 20 at 14:44











  • I hope it's just because I'm quite lame at closed formulas rather than the closed formula doesn't exist :-)
    – L D
    Jul 20 at 14:56















It would surprise me if the fact that you can only find recursive solutions is coincidental. I suspect there is no closed-form general solution for this.
– Vera
Jul 20 at 14:44





It would surprise me if the fact that you can only find recursive solutions is coincidental. I suspect there is no closed-form general solution for this.
– Vera
Jul 20 at 14:44













I hope it's just because I'm quite lame at closed formulas rather than the closed formula doesn't exist :-)
– L D
Jul 20 at 14:56




I hope it's just because I'm quite lame at closed formulas rather than the closed formula doesn't exist :-)
– L D
Jul 20 at 14:56










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










This would appear to be using Stirling numbers of the second kind:



$$frac1N^K times Nchoose V times V! times Kbrace V.$$



These probabilities sum to one ($Kbrace 0 = 0$ when $Kge 1$):



$$frac1N^K sum_V=0^N ·Nchoose V V!
K! [z^K] frac(exp(z)-1)^VV!
\ = frac1N^K K! [z^K] sum_V=0^N ·Nchoose V V!
frac(exp(z)-1)^VV!
\ = frac1N^K K! [z^K] sum_V=0^N ·Nchoose V
(exp(z)-1)^V = frac1N^K K! [z^K] exp(Nz)
= frac1N^K N^K = 1.$$






share|cite|improve this answer























  • Sir, thank you! It works! For anyone wanting R code: pform <- function(K, N, V) ( 1/N**K ) * choose(N, V) * factorial(V) * as.numeric( Stirling2(K, V) )
    – L D
    Jul 20 at 15:40











Your Answer




StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2857703%2fprobability-of-throwing-exactly-v-distinct-sides-on-n-sided-dice-by-k-roll%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote



accepted










This would appear to be using Stirling numbers of the second kind:



$$frac1N^K times Nchoose V times V! times Kbrace V.$$



These probabilities sum to one ($Kbrace 0 = 0$ when $Kge 1$):



$$frac1N^K sum_V=0^N ·Nchoose V V!
K! [z^K] frac(exp(z)-1)^VV!
\ = frac1N^K K! [z^K] sum_V=0^N ·Nchoose V V!
frac(exp(z)-1)^VV!
\ = frac1N^K K! [z^K] sum_V=0^N ·Nchoose V
(exp(z)-1)^V = frac1N^K K! [z^K] exp(Nz)
= frac1N^K N^K = 1.$$






share|cite|improve this answer























  • Sir, thank you! It works! For anyone wanting R code: pform <- function(K, N, V) ( 1/N**K ) * choose(N, V) * factorial(V) * as.numeric( Stirling2(K, V) )
    – L D
    Jul 20 at 15:40















up vote
0
down vote



accepted










This would appear to be using Stirling numbers of the second kind:



$$frac1N^K times Nchoose V times V! times Kbrace V.$$



These probabilities sum to one ($Kbrace 0 = 0$ when $Kge 1$):



$$frac1N^K sum_V=0^N ·Nchoose V V!
K! [z^K] frac(exp(z)-1)^VV!
\ = frac1N^K K! [z^K] sum_V=0^N ·Nchoose V V!
frac(exp(z)-1)^VV!
\ = frac1N^K K! [z^K] sum_V=0^N ·Nchoose V
(exp(z)-1)^V = frac1N^K K! [z^K] exp(Nz)
= frac1N^K N^K = 1.$$






share|cite|improve this answer























  • Sir, thank you! It works! For anyone wanting R code: pform <- function(K, N, V) ( 1/N**K ) * choose(N, V) * factorial(V) * as.numeric( Stirling2(K, V) )
    – L D
    Jul 20 at 15:40













up vote
0
down vote



accepted







up vote
0
down vote



accepted






This would appear to be using Stirling numbers of the second kind:



$$frac1N^K times Nchoose V times V! times Kbrace V.$$



These probabilities sum to one ($Kbrace 0 = 0$ when $Kge 1$):



$$frac1N^K sum_V=0^N ·Nchoose V V!
K! [z^K] frac(exp(z)-1)^VV!
\ = frac1N^K K! [z^K] sum_V=0^N ·Nchoose V V!
frac(exp(z)-1)^VV!
\ = frac1N^K K! [z^K] sum_V=0^N ·Nchoose V
(exp(z)-1)^V = frac1N^K K! [z^K] exp(Nz)
= frac1N^K N^K = 1.$$






share|cite|improve this answer















This would appear to be using Stirling numbers of the second kind:



$$frac1N^K times Nchoose V times V! times Kbrace V.$$



These probabilities sum to one ($Kbrace 0 = 0$ when $Kge 1$):



$$frac1N^K sum_V=0^N ·Nchoose V V!
K! [z^K] frac(exp(z)-1)^VV!
\ = frac1N^K K! [z^K] sum_V=0^N ·Nchoose V V!
frac(exp(z)-1)^VV!
\ = frac1N^K K! [z^K] sum_V=0^N ·Nchoose V
(exp(z)-1)^V = frac1N^K K! [z^K] exp(Nz)
= frac1N^K N^K = 1.$$







share|cite|improve this answer















share|cite|improve this answer



share|cite|improve this answer








edited Jul 21 at 21:04


























answered Jul 20 at 15:18









Marko Riedel

36.5k333107




36.5k333107











  • Sir, thank you! It works! For anyone wanting R code: pform <- function(K, N, V) ( 1/N**K ) * choose(N, V) * factorial(V) * as.numeric( Stirling2(K, V) )
    – L D
    Jul 20 at 15:40

















  • Sir, thank you! It works! For anyone wanting R code: pform <- function(K, N, V) ( 1/N**K ) * choose(N, V) * factorial(V) * as.numeric( Stirling2(K, V) )
    – L D
    Jul 20 at 15:40
















Sir, thank you! It works! For anyone wanting R code: pform <- function(K, N, V) ( 1/N**K ) * choose(N, V) * factorial(V) * as.numeric( Stirling2(K, V) )
– L D
Jul 20 at 15:40





Sir, thank you! It works! For anyone wanting R code: pform <- function(K, N, V) ( 1/N**K ) * choose(N, V) * factorial(V) * as.numeric( Stirling2(K, V) )
– L D
Jul 20 at 15:40













 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2857703%2fprobability-of-throwing-exactly-v-distinct-sides-on-n-sided-dice-by-k-roll%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What is the equation of a 3D cone with generalised tilt?

Relationship between determinant of matrix and determinant of adjoint?

Color the edges and diagonals of a regular polygon