Quantile-Quantile Plot using SciPy

后端 未结 9 1979
长情又很酷
长情又很酷 2020-12-04 06:44

How would you create a qq-plot using Python?

Assuming that you have a large set of measurements and are using some plotting function that takes XY-values as input. T

9条回答
  •  庸人自扰
    2020-12-04 07:09

    You can use bokeh

    from bokeh.plotting import figure, show
    from scipy.stats import probplot
    # pd_series is the series you want to plot
    series1 = probplot(pd_series, dist="norm")
    p1 = figure(title="Normal QQ-Plot", background_fill_color="#E8DDCB")
    p1.scatter(series1[0][0],series1[0][1], fill_color="red")
    show(p1)
    

提交回复
热议问题