16 StatisticsStatistics
Apps for Statistics
Origin 2016 introduced addon tools called Apps. Since being introduced, a number of statisticsrelated graphing and analysis Apps have been added to OriginLab's File Exchange and more tools are being released all the time.
A few Apps are installed with your Origin software. Note that as of the fall of 2019, all Apps are available at no extra cost and they are easily added to Origin. Click Statistics: Find Apps. This opens the App Center to show only statisticsrelated Apps. Browse available Apps and click the Download and Install button to install an App.
Origin includes a preinstalled App called Stats Advisor. This App uses an interactive "wizard" interface to help you choose appropriate statistical tests and to tell you where to find them in your Origin software, or  if the test is available from another addon App  where to find it on the OriginLab File Exchange.
Basic Statistics
Descriptive StatisticsStatistics, Descriptive
Statistics, Basic
 Many of Origin's advanced statistical tests are available only in OriginPro. Users of standard Origin will see these Proonly tests marked as (Pro) in the main menu. If you own the standard version of Origin but find that you need features of OriginPro, you can upgrade by contacting your Origin representative.
If you wish to continue using standard Origin without seeing (Pro) menu commands, click Preferences: System Variables and enter the following in the Set System Variables dialog box and click OK (Comment is optional):

Basic Statistics on Worksheet
 You can apply Conditional Formatting to a worksheet by applying mathematical expressions or statistics to cell values. For more information, see Conditional Formatting.

Descriptive Statistics on Graph
Origin provides a couple of gadgets to explore and summarize data plotted in graphs.
Descriptive Statistics

Menu entry with graph active

 Cluster Gadget

Gadgets:Cluster...


Gadgets:Statistics...

Descriptive Statistics on Matrix
Descriptive Statistics

Menu entry with matrix active

 Output descriptive statistics (mean, sd, min, max, etc.) on the matrix stack (series of matrix objects), for each pair of XY coordinates.

Analysis: Descriptive Statistics

Statistics on Selected Range
Origin provides some quick ways to obtain basic statistics on a selected range of worksheet cells, or data plot(s) in a graph.
Status Bar
Statistics, Data Selection
Select a range of cells in a worksheet. Note that the selection can include cells from one or more columns, and you can use the CTRL key to select noncontiguous groups of cells. Statistics, Report to Status Bar
Basic statistics (average, sum, count, min, max) for your selected data will be displayed in the status bar. Right click on the status bar to customize what quantities to display.
 Two additions to stats reported to the Status Bar for Origin 2022: 
Command or Script Window
Statistics, Report to Script/Command Window
 Select a range of cells in a worksheet, or click and select a group of data plots or an individual data plot in a graph.
 Open the Command Window or the Script Window from the Windows menu, and type one of these commands, then press ENTER:
stats
moments
quantiles
With the Command Window, the results are typed out below the command line. With the Script Window, you will need to issue an additional command to return your results:
stats;
stats.=;
Note: For more information, please refer to the:
Help: XFunction > XFunction Reference > Statistics

Statistical Graphs
Statistics, Charts
Origin provides numerous statistical graph types. All graphs can be easily customized and saved as a template for repeat use. View the Graphing and Customizing Graphs chapters of this guide for more information.
 For Origin 2022, a Centroid tab (Proonly) for locating and annotating the centroid, is added to Scatter, Line, and Line & Symbol plots. 
Graph Type

Plot Menu Category

Box Charts: Box, Interval Plot, Bar Charts, Box Overlap, Box Normal, Half Box, Bar Overlap, Bar Normal, Scatter Interval, DoubleY Box, Marginal Box Charts.

Statistical

Box Charts, Violin Plots, etc., Grouped: Grouped Scatter  Indexed Data, Grouped Box Charts  Indexed Data, Grouped Box Charts  Raw Data, Grouped Column Scatter  Indexed Data, Grouped Interval Plot  Indexed Data, Grouped Mean Bar  Indexed Data, Grouped Violin  Indexed Data, Grouped Half Violin  Indexed Data, Grouped Half Box  Indexed Data.

Categorical

Violin Plots: Violin Plot, Violin with Box, Violin with Point, Violin with Quartile, Violin with Stick, Split Violin, Half Violin.

Statistical

Histograms: Histogram, Histogram + Rug, Histogram + Probabilities, MultiPanel Histogram, Distribution, Distribution + Rug, Histogram with Labels, Stacked Histograms, Marginal Histograms.

Statistical

Population Pyramid

Statistical

2D Kernel Density

Contour

Heatmap: Heatmap, Heatmap with Labels, Split Heatmap

Contour

Contour  Categorical Z

Contour

Cluster Plots

Categorical

Probability: Probability Plot, QQ Plot.
 Probability Plot (plot_prob) dialog now allows setting percentile range. 

Statistical

Pareto and QC Chart: Pareto Chart  Binned Data, Pareto Chart  Raw Data, QC (Xbar R) Chart.

Statistical

BlandAltman Plot (Tukey meandifference)

Statistical

Scatter Matrix

Statistical

Trellis Plot: Trellis Plot, DoubleY Trellis Plot, DoubleY Trellis Plot

Categorical

Parallel Plot: Parallel Plot, Parallel Sets, Parallel Index.

Categorical

The following statistical graphs are only available within the Plots branch of the statistical analysis dialogs.
Graph Type

Menu Entry

 Means Plot
 Means Comparison Plot

Statistics: ANOVA: OneWay ANOVA, TwoWay ANOVA
Statistics: ANOVA: OneWay Repeated Measure ANOVA

 Survival Curve
 One Minus Survival Curve
 Hazard Curve
 Log Survival Curve

Statistics: Survival Analysis: KaplanMeier Estimator

 Scree Plot
 Component Plot

Statistics: Multivariate Analysis: Principal Component Analysis


Statistics: Multivariate Analysis: Hierarchical Cluster Analysis

 Classification Summary Plot
 Classification Fit Plot
 Canonical Score Plot

Statistics: Multivariate Analysis: Discriminant Analysis


Statistics: ROC Curve

Comparing One, Two or More Groups
Origin provides parametric and nonparametric tests to compare one, two, three or more groups.
Parametric Hypothesis Tests
Statistics, tTeststTests
ANOVA
Statistics, ANOVAANOVA
Feature

Menu Entry

 OneWay ANOVA
 TwoWay ANOVA
 ThreeWay ANOVA
 OneWay RepeatedMeasures ANOVA
 TwoWay RepeatedMeasures ANOVA
 (Supports both Balanced and Unbalanced data)

Statistics: ANOVA

Nonparametric Tests
Statistics, NonparametricNonparametric Statistics
Feature

Menu Entry

 OneSample Wilcoxon Signed Rank Test
 PairedSample Wilcoxon Signed Rank Test
 PairedSample Sign Test
 MannWhitney Test
 TwoSample KolmogorovSmirnov Test
 KruskalWallis ANOVA
 Moods Median Test
 Friedman ANOVA

Statistics:Nonparametric Tests

Notes:
Multiple nonparametric tests can be run simultaneously. (Accessible from the Statistics:Nonparametric Tests menu ) Available options are:
 (NPH) K Independent Samples: KruskalWallis ANOVA and Mood's Median Test
 (NPH) Paired Samples: PairedSample Wilcoxon Signed Rank Test and PairedSample Sign Test
 (NPH) Two Independent Samples: MannWhitney Test and TwoSample KolmogorovSmirnov Test

Advanced Statistics
Several additional tools are available in OriginPro.
Multivariate Analysis
Statistics, MultivariateMultivariate Statistics
Origin offers several multivariate analysis methods to help you simplify, classify, or make predictions from your data.
Feature

Menu Entry

 Principal Component Analysis
 KMeans Cluster
 Hierarchical Cluster
 Discriminant Analysis
 Canonical Discriminant Analysis
 Partial Least Squares

Statistics:Multivariate Analysis
 KMeans Cluster Analysis dialog (kmeans) adds options for Standardize Variables (Options tab) and Cluster Plot (Plot tab). 

Notes: Canonical Discriminant Analysis is integrated with Discriminant Analysis. It is accessible from the Statistics:Multivariate Analysis:Discriminant Analysis: Canonical Discriminant Analysis(System) menu.

Survival Analysis
Statistics, Survival AnalysisSurvival Analysis
OriginPro includes widely used survival tests to quantify survivorship in a population.
Feature

Menu Entry

 KaplanMeier Productlimit Estimator
 Comparing Survival Curves
 Cox Proportional Hazards Model
 Weibull Fit Model

Statistics:Survival Analysis
 Weibull Fit (weibullfit) dialog now allows setting percentile range. 

Notes: Comparing Survival Curves is accessible in the KaplanMeier Productlimit Estimator feature.

Power and Sample Size
Statistics, Power and Sample Size
Origin provides eight types of power and sample size analysis, useful in designing experiments. Origin can compute the power of the experiment for a given sample size and can also compute the required sample size for given power values.
Feature

Menu Entry

 OneProportion Test
 TwoProportion Test
 OneSample tTest
 TwoSample tTest
 PairedSample tTest
 OneVariance Test
 TwoVariance Test
 OneWay ANOVA

Statistics: Power and Sample Size

ROC Curve
Statistics, ROC CurveROC Curve
 ROC Curve improvements in Origin 2022:
 Update graph template to be isometric.
 To the ROCCurve dialog, under the ROC Curve node, add an Optimal Cutpoint check box.
 Initialize the reference line as dashed, gray.
 In the ROCValues1 output sheet change Method comments (and graph axis titles) to "1  Specificity, False Positive Rate" and "Sensitivity, True Positive Rate".

ROC Curve analysis is useful in determining if an incident has occurred, or in comparing the accuracy of two methods that are used to discriminate between diseased and healthy cases.
Feature

Menu Entry


Statistics: ROC Curve

Topics for Further Reading
