Tag Info

Hot answers tagged


There is actually a fair bit going on here that can make this confusing. The critical thing is the difference between testing fit to a family of distributions compared to testing fit to a particular distribution. Let me demonstrate. SeedRandom[23]; data = RandomVariate[NormalDistribution[1, 2], 100]; DistributionFitTest[data, NormalDistribution[mu, ...


You mean something like this? list = RandomVariate[BinomialDistribution[100, 0.1], {10000}]; You can use list to construct an EmpiricalDistribution, and then use DiscretePlot (if the list is all integers) or Plot (if it's reals) to plot the complement of its CDF. dist = EmpiricalDistribution[list]; DiscretePlot[1 - CDF[dist, x], {x, 0, 100}, PlotRange ...


Few more alternatives/variations: data = RandomReal[50, 100]; (* HistogramList with height spec "SF" *) ListLinePlot[#, PlotRange -> {{0, 60}, Automatic}] &@ Thread@PadRight@HistogramList[data, 1000, "SF"] (* SurvivalFunction and EmpiricialDistribution *) Plot[SurvivalFunction[EmpiricalDistribution[data], x], {x, 0, 60}, Exclusions -> None] ...


By default DistributionFitTest attempts to test fit against the family of normal distributions. To test if the data is standard normal (i.e. N(0,1)) you would use. DistributionFitTest[data, NormalDistribution[]] There are examples that show this to be the case in the Properties & Relations section of the documentation for DistributionFitTest.

Only top voted, non community-wiki answers of a minimum length are eligible