2.10.11 X-Function:plot_prob


Menu Information

Plot: Probability: Probability Plot

Plot: Probability: Q-Q Plot

Brief Information

Create probability or Q-Q plot using specified distribution

Additional Information

Minimum Origin Version Required: 8.1 SR0

Command Line Usage

1. plot_prob -r 1 irng:=[QQplot1]"Q-Q plot"!B"Weight" method:=renard;

2. plot_prob irng:=[ProbPlot]Sheetl!A distr:=weibull;

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input Data irng

Input

Range

<active>
The input data range.
option

Input

int

<unassigned>
This variable is not used for user.
Distribution distr

Input

int

0
Specify a distribution type. Option List:
  • 0:Normal
  • 1:Lognormal
  • 2:Exponential
  • 3:Weibull
  • 4:Gamma
Estimate from Data estimate

Input

int

1
Specify whether to estimate distribution parameters from input data. If not, parameters can be specified manually. Default is checked.
Location location

Input

double

0

mu: Mean of the normal distribution.

shape: Shape of the specified distribution. Available in both Lognormal, Weibull and Gamma distributions. scale

Scale scale

Input

double

0

sigma: Standard deviation of Normal distribution.

Scale: Scale of the specified distribution. Available in Lognormal, Exponential, Weibull and Gamma distributions.

Score Method method

Input

int

0
Select a method for plotting percentile approximations. Option List:
  • 0:Blom
  • 1:Benard
  • 2:Hazen
  • 3:Van der Waerden
  • 4:Kaplan-Meier
Confidence Band conf

Input

int

1
Specify whether to output the confidence band in probability plot. Default is checked.
Confidence Level(%) level

Input

double

95
Only available when conf is selected. Specify the confidence level in % for the chosen distribution.
Exchange X-Y Axes exchange

Input

int

0
Specify whether to switch X and Y axis positions.
Output Range rd

Output

ReportData

[<input>]<new>
Specify where the calculated data for the graph is stored.

Description

For detailed information about this X-Function, please refer to our User Guide Probability Plot and Q-Q Plot

  • Algorithm
  1. Distributions
  2. Details for Constructing Probability Plot
  3. Details for Constructing Q-Q Plot
  4. Score Methods

Note: in Origin 2017 or ealier versions, this X-Function is not accessible from LabTalk script. To plot PP plot/QQ plot from script, you will need to use

worksheet -px

For example,

//to plot a probability plot
worksheet -px ? PPNormal plot_prob option:=0;

//to plot a Q-Q plot
worksheet -px ? QQ plot_prob option:=1;

Examples

  1. Create a new project and open the workbook which is located in <Origin Directory>\Samples\Statistics\Body.ogw.
    Probability Plot and Q Q Plot 3.png
  2. In the Male worksheet, highlight the Weight column, then select Plot: Statistics: Q-Q Plot from menu or click the Q-Q Plot button on the 2D Graphs toolbar to bring up the plot_prob dialog box.
  3. Choose the Normal in the Distribution drop-down list, check the Estimate from Data, and Method is to be Blom.
    Probability Plot and Q Q Plot 4.png
  4. Click the OK button to create the Q-Q plot.
    Probability Plot and Q Q Plot 5.png

Keywords:normal, lognormal, exponential, weibull, gamma