I have the following code.
a = RandomInteger[{0, 1}, {10000, 1000}];
Histogram[Total[a, {2}], PlotRange -> {{0, 1000}, Automatic}]
I want to scale the y axis by a factor of 1000 in order to normalize. Could you please help me with that?
Import
as coin1000
; also, what are you Export
ing: a
or Total[a,{2}]
? Moreover, Import/Export of data is a different issue than plotting a histogram so in this case you should've posted a new question; don't extend the question, once it was answered, way beyond its initial scope.
$\endgroup$
blah=Import...
and use that in your histogram. Also, seems like the result you're after is simply using"Probability"
as the hspec inHistogram
. Lastly, if you want to do such a simulation, no need to generate 10 million RV, just use something liketots = RandomVariate[BinomialDistribution[1000, 1/2], 10000]
, get the totals directly with only 10000 rv generated... $\endgroup$