#NEWLINE# def _create_sum_pdist( numsamples ) : #NEWLINE# #INDENT# '\n    Return the true probability distribution for the experiment\n    ``_create_rand_fdist(numsamples, x)``.\n    ' #NEWLINE# fdist = FreqDist ( ) #NEWLINE# for x in range ( 1 , ( ( ( 1 + numsamples ) // 2 ) + 1 ) ) : #NEWLINE# #INDENT# for y in range ( 0 , ( ( numsamples // 2 ) + 1 ) ) : #NEWLINE# #INDENT# fdist [ ( x + y ) ] += 1 #NEWLINE# #UNINDENT# #UNINDENT# return MLEProbDist ( fdist )