#NEWLINE# def MakeParetoCdf( ) : #NEWLINE# #INDENT# 'Generates a plot of the Pareto CDF.' #NEWLINE# xmin = 0.5 #NEWLINE# thinkplot . PrePlot ( 3 ) #NEWLINE# for alpha in [ 2.0 , 1.0 , 0.5 ] : #NEWLINE# #INDENT# ( xs , ps ) = thinkstats2 . RenderParetoCdf ( xmin , alpha , 0 , 10.0 , n = 100 ) #NEWLINE# thinkplot . Plot ( xs , ps , label = ( '$\\alpha=%g$' % alpha ) ) #NEWLINE# #UNINDENT# thinkplot . Save ( root = 'analytic_pareto_cdf' , title = 'Pareto CDF' , xlabel = 'x' , ylabel = 'CDF' )