Match the regression and its uncertainty calculation
The response is the outcome being modelled; predictors are the variables used to explain it. The programs must use the same coding and predictor order. They must also agree on whether to include an intercept, the model’s baseline term.
Standard errors describe the uncertainty of estimated coefficients. HC3 is an adjustment that allows unequal error variance, meaning the spread of residual errors can differ across observations. An HC3 result should be compared with the same adjustment in the reference.
For logistic regression, check which outcome category is treated as the event. Reversing that choice changes the coefficient interpretation. The likelihood, the expression used to fit the observed responses, must also describe the same model.
Which software produced these results?
Both comparisons used the earlier program for testing QuickPLS calculations and the statsmodels versions listed below. They checked the calculation code directly, not the current Microsoft Store application.
On a small screen, swipe the table sideways to see every column.
| Record | QuickPLS build or result checked | Reference | Comparison outcome |
|---|---|---|---|
| OLS HC3/regression-IPMA | 1.1.8 test executable | statsmodels 0.14.4 | Passed the comparisons documented for this record |
| Logistic regression directions | 1.1.8 test executable | statsmodels 0.14.4 | Passed the comparisons documented for this record |
Check linear regression, HC3 uncertainty and regression IPMA
The test covers ordinary least squares (OLS), which minimises the squared differences between observed and fitted outcomes. It uses HC3 standard errors and also checks importance-performance analysis (IPMA) based on regression. IPMA considers a predictor’s estimated importance alongside its performance level.
- The calculations used the historical 1.1.8 test executable, not the installed 1.01.19 release or the Store app.
- The comparison aligns the constants used in AIC/BIC, model-comparison statistics that account for fit and complexity.
| What was checked | Value / scope |
|---|---|
| Compared numbers and missing-value statuses | 139 |
| Outside the stated tolerance | 0 |
| Different scenario names in the comparison record | 1 |
| Largest absolute difference | 3.68345354218036e-11 |
Linear regression coefficients and HC3 uncertainty
The outcome is y, with x and m specified as predictors and z as a control. The table includes every coefficient in this test model, with its HC3 standard error, test statistic, two-sided p-value and 95% confidence limits.
The x coefficient is 1.5454545454544162: conditional on m and z, a one-unit difference in x corresponds to that difference in fitted y under this model. Its recorded interval runs from 1.1497707190770767 to 1.9411383718317556. The z interval spans zero. Numerical agreement is checked for both kinds of result, regardless of statistical significance.
The saved values are shown to 15 significant digits. Differences use the original numbers before display rounding. The 139-check record also includes model-fit, regression-IPMA and input or missing-value checks; it is not a count of 139 coefficients.
On a small screen, swipe the table sideways to see every column.
| Result | QuickPLS | statsmodels | Absolute difference | Comparison result |
|---|---|---|---|---|
| intercept: coefficient | -0.0234848484847738 | -0.023484848484864 | 9.01501095995627e-14 | Pass |
| intercept: standard error | 0.285681180784385 | 0.285681180784508 | 1.23345778035855e-13 | Pass |
| intercept: test statistic | -0.0822064947375683 | -0.0822064947378484 | 2.80067635749504e-13 | Pass |
| intercept: two-sided p-value | 0.936502106403682 | 0.936502106403468 | 2.13828954542805e-13 | Pass |
| intercept: coefficient interval: lower | -0.682266832723575 | -0.682266832723949 | 3.73145958576515e-13 | Pass |
| intercept: coefficient interval: upper | 0.635297135754028 | 0.635297135754221 | 1.9284573937739e-13 | Pass |
| x: coefficient | 1.54545454545442 | 1.54545454545455 | 1.29674049276218e-13 | Pass |
| x: standard error | 0.171588515535037 | 0.171588515535067 | 3.03090885722668e-14 | Pass |
| x: test statistic | 9.00674815348496 | 9.00674815348413 | 8.34887714518118e-13 | Pass |
| x: two-sided p-value | 1.84293473752817e-05 | 1.84293473753632e-05 | 8.15116745801758e-17 | Pass |
| x: coefficient interval: lower | 1.14977071907708 | 1.14977071907714 | 6.06181771445335e-14 | Pass |
| x: coefficient interval: upper | 1.94113837183176 | 1.94113837183195 | 1.98729921407903e-13 | Pass |
| m: coefficient | 0.8045454545455 | 0.80454545454546 | 4.04121180963557e-14 | Pass |
| m: standard error | 0.347091207913879 | 0.347091207913918 | 3.86912724081867e-14 | Pass |
| m: test statistic | 2.31796552664372 | 2.31796552664335 | 3.74811293113453e-13 | Pass |
| m: two-sided p-value | 0.049075042128228 | 0.0490750421282562 | 2.81719092498633e-14 | Pass |
| m: coefficient interval: lower | 0.00415169380308456 | 0.00415169380295655 | 1.28008714739281e-13 | Pass |
| m: coefficient interval: upper | 1.60493921528792 | 1.60493921528796 | 4.70734562441066e-14 | Pass |
| z: coefficient | 0.0727272727272705 | 0.0727272727272754 | 4.88498130835069e-15 | Pass |
| z: standard error | 0.12186675935488 | 0.121866759354937 | 5.70099523145018e-14 | Pass |
| z: test statistic | 0.596776948137978 | 0.596776948137739 | 2.39142039504259e-13 | Pass |
| z: two-sided p-value | 0.567156966548986 | 0.567156966549141 | 1.55431223447522e-13 | Pass |
| z: coefficient interval: lower | -0.208297978289014 | -0.20829797828914 | 1.25954802143724e-13 | Pass |
| z: coefficient interval: upper | 0.353752523743555 | 0.353752523743691 | 1.35724764760425e-13 | Pass |
OLS model fit and comparison statistics
These are fitted-sample measures from the same regression. R² and adjusted R² differ in their adjustment for model complexity. The historical comparison aligned AIC/BIC constants before assessing agreement; these values should not be compared with a package using a different convention without the same adjustment.
On a small screen, swipe the table sideways to see every column.
| Result | QuickPLS | statsmodels | Absolute difference | Comparison result |
|---|---|---|---|---|
| Adjusted R² | 0.998851495441091 | 0.998851495441091 | 0 | Pass |
| AIC | -31.2424281617763 | -31.2424281617763 | 1.06581410364015e-14 | Pass |
| BIC | -29.3028015626243 | -29.3028015626243 | 7.105427357601e-15 | Pass |
| F statistic | 3189.89067951491 | 3189.89067951487 | 3.68345354218036e-11 | Pass |
| R² | 0.999164723957157 | 0.999164723957157 | 0 | Pass |
| Root mean squared error | 0.194932648301246 | 0.194932648301246 | 1.11022302462516e-16 | Pass |
Regression importance and performance
This is regression IPMA from the OLS test model, separate from the construct-based historical IPMA example. Importance is the corresponding unstandardised regression coefficient. Performance uses the configured ranges: 0 to 15 for x, 0 to 8 for m and 0 to 2 for z.
For x, importance is 1.5454545454544162 and performance is 43.333333333333336. Interpretation depends on the input units and declared range. The historical observed-range PLS IPMA uses a different definition and cannot supply a substitute reference for this calculation.
On a small screen, swipe the table sideways to see every column.
| Result | QuickPLS | statsmodels | Absolute difference | Comparison result |
|---|---|---|---|---|
| x: importance | 1.54545454545442 | 1.54545454545455 | 1.29674049276218e-13 | Pass |
| x: performance | 43.3333333333333 | 43.3333333333333 | 0 | Pass |
| m: importance | 0.8045454545455 | 0.80454545454546 | 4.04121180963557e-14 | Pass |
| m: performance | 37.5 | 37.5 | 0 | Pass |
| z: importance | 0.0727272727272705 | 0.0727272727272754 | 4.88498130835069e-15 | Pass |
| z: performance | 50 | 50 | 0 | Pass |
Check test alternatives and a model without an intercept
The comparison covers three test cases with two-sided, greater and less alternatives. The greater case omits the intercept; all three name bin_y as the outcome and x, z and w as predictors. The calculation uses an unpenalised generalised linear model fitted by iteratively reweighted least squares (GLM/IRLS). Unpenalised means no extra shrinkage penalty is added to the fit.
IRLS updates a weighted least-squares calculation repeatedly to obtain the logistic estimates. These are algorithmic fitting weights; this description does not establish a test of user-supplied case weights.
- These calculations used the historical 1.1.8 test executable.
| What was checked | Value / scope |
|---|---|
| Compared numbers and missing-value statuses | 1899 |
| Outside the stated tolerance | 0 |
| Different scenario names in the comparison record | 3 |
| Largest absolute difference | 2.84037200870557e-07 |
Logistic coefficients, odds ratios and 90% intervals
This table uses the test case named two_sided: outcome bin_y, predictors x, z and w, and an intercept. The saved confidence level is 90%. Each coefficient, standard error, test statistic, two-sided p-value, coefficient interval, odds ratio and odds-ratio interval is checked separately.
The coefficient of x is 1.0033956643544513 on the log-odds scale. Its odds ratio is 2.727527890546685, describing the multiplicative change in event odds for a one-unit difference in x, holding the other predictors fixed. This is not a probability increase. The 90% odds-ratio interval is 1.8975352557300182 to 3.9205639901789158.
These 36 displayed checks belong to the two-sided case, which has 637 numeric or missing-value comparisons in total. The full 1,899-check record also includes greater and less test alternatives; the greater case omits the intercept. Those alternatives do not mean that the event coding was reversed.
Values use 15 significant digits for display. The saved absolute differences are calculated before display rounding and are assessed with the recorded fixed-plus-relative tolerance.
On a small screen, swipe the table sideways to see every column.
| Result | QuickPLS | statsmodels | Absolute difference | Comparison result |
|---|---|---|---|---|
| intercept: coefficient | -0.0265782118205037 | -0.0265782118205001 | 3.53536644404073e-15 | Pass |
| intercept: standard error | 0.193098745816998 | 0.193098740271185 | 5.54581308653823e-09 | Pass |
| intercept: test statistic | -0.137640520180758 | -0.137640524133788 | 3.95302973688061e-09 | Pass |
| intercept: two-sided p-value | 0.89052452981548 | 0.890524526691155 | 3.1243259090985e-09 | Pass |
| intercept: coefficient interval: lower | -0.344197384237374 | -0.344197375115319 | 9.12205438963198e-09 | Pass |
| intercept: coefficient interval: upper | 0.291040960596366 | 0.291040951474319 | 9.12204728420463e-09 | Pass |
| intercept: odds ratio | 0.973771880385613 | 0.973771880385616 | 3.44169137633799e-15 | Pass |
| intercept: odds-ratio interval: lower | 0.708789010462913 | 0.708789016928525 | 6.46561193473616e-09 | Pass |
| intercept: odds-ratio interval: upper | 1.33781938070744 | 1.33781936850379 | 1.22036516447821e-08 | Pass |
| x: coefficient | 1.00339566435445 | 1.00339566435444 | 1.11022302462516e-14 | Pass |
| x: standard error | 0.220590968217043 | 0.220590954442458 | 1.37745845285586e-08 | Pass |
| x: test statistic | 4.54867065711954 | 4.54867094115674 | 2.84037200870557e-07 | Pass |
| x: two-sided p-value | 5.39858540316018e-06 | 5.3985781174353e-06 | 7.28572487984722e-12 | Pass |
| x: coefficient interval: lower | 0.640555810209911 | 0.640555832867076 | 2.26571643668905e-08 | Pass |
| x: coefficient interval: upper | 1.36623551849899 | 1.3662354958418 | 2.2657186571351e-08 | Pass |
| x: odds ratio | 2.72752789054669 | 2.72752789054665 | 3.01980662698043e-14 | Pass |
| x: odds-ratio interval: lower | 1.89753525573002 | 1.89753529872279 | 4.29927686784737e-08 | Pass |
| x: odds-ratio interval: upper | 3.92056399017892 | 3.92056390134997 | 8.88289490852401e-08 | Pass |
| z: coefficient | -0.499833530125641 | -0.499833530125633 | 8.32667268468867e-15 | Pass |
| z: standard error | 0.214095591595116 | 0.214095581973293 | 9.62182297725711e-09 | Pass |
| z: test statistic | -2.33462784731642 | -2.33462795223856 | 1.0492214430613e-07 | Pass |
| z: two-sided p-value | 0.0195628704987996 | 0.0195628650137299 | 5.48506964848094e-09 | Pass |
| z: coefficient interval: lower | -0.851989440475189 | -0.85198942464869 | 1.5826498778182e-08 | Pass |
| z: coefficient interval: upper | -0.147677619776093 | -0.147677635602576 | 1.58264821248366e-08 | Pass |
| z: odds ratio | 0.606631637199972 | 0.606631637199977 | 4.9960036108132e-15 | Pass |
| z: odds-ratio interval: lower | 0.426565460649875 | 0.426565467400913 | 6.75103778435826e-09 | Pass |
| z: odds-ratio interval: upper | 0.862709190498606 | 0.862709176844955 | 1.3653651542711e-08 | Pass |
| w: coefficient | 0.418719783594873 | 0.418719783594869 | 4.21884749357559e-15 | Pass |
| w: standard error | 0.199932675376414 | 0.199932669676746 | 5.69966746022388e-09 | Pass |
| w: test statistic | 2.09430390908614 | 2.09430396879039 | 5.97042579819629e-08 | Pass |
| w: two-sided p-value | 0.036232916339958 | 0.0362329110264286 | 5.31352935956297e-09 | Pass |
| w: coefficient interval: lower | 0.0898597973558674 | 0.0898598067309819 | 9.37511451803985e-09 | Pass |
| w: coefficient interval: upper | 0.747579769833878 | 0.747579760458755 | 9.37512290022369e-09 | Pass |
| w: odds ratio | 1.52001436214762 | 1.52001436214761 | 6.43929354282591e-15 | Pass |
| w: odds-ratio interval: lower | 1.09402088833096 | 1.09402089858753 | 1.02565711479485e-08 | Pass |
| w: odds-ratio interval: upper | 2.11188258449054 | 2.11188256469138 | 1.97991587569391e-08 | Pass |
Logistic fit statistics for the same two-sided case
Likelihood and deviance describe the fitted binary-outcome model. Pseudo-R² is a different measure from the ordinary least-squares R²; they should not be treated as interchangeable percentages. All values below use the same outcome and intercept specification as the coefficient table.
On a small screen, swipe the table sideways to see every column.
| Result | QuickPLS | statsmodels | Absolute difference | Comparison result |
|---|---|---|---|---|
| AIC | 167.031484873241 | 167.031484873241 | 5.6843418860808e-14 | Pass |
| BIC | 178.798054563679 | 178.798054563679 | 5.6843418860808e-14 | Pass |
| Deviance | 159.031484873241 | 159.031484873241 | 5.6843418860808e-14 | Pass |
| Likelihood-ratio chi-square | 35.0211532830749 | 35.0211532830753 | 4.2632564145606e-13 | Pass |
| Likelihood-ratio degrees of freedom | 3 | 3 | 0 | Pass |
| Likelihood-ratio p-value | 1.20577760664986e-07 | 1.20577760681232e-07 | 1.62458007607619e-17 | Pass |
| Log likelihood | -79.5157424366207 | -79.5157424366207 | 2.8421709430404e-14 | Pass |
| Null deviance | 194.052638156316 | 194.052638156317 | 4.83169060316868e-13 | Pass |
| Pseudo-R² | 0.180472440961427 | 0.180472440961428 | 1.66533453693773e-15 | Pass |
Error limits for linear regression and regression IPMA
The rule below applies after aligning the output definitions, including the HC3 uncertainty calculation and AIC/BIC constants. It checks numerical agreement for this test, not whether a regression specification is suitable for a research question.
abs(native - aligned_reference) <= absolute_tolerance + relative_tolerance * abs(aligned_reference)
In this formula, native is the QuickPLS value and aligned_reference is the reference value expressed using the same definition. abs means absolute value, so the sign does not affect the size of the difference. Absolute tolerance is a fixed allowance. Relative tolerance adds an allowance that grows with the size of the reference value. A separate check verifies whether a result is available or missing where expected; it does not estimate another effect.
On a small screen, swipe the table sideways to see every column.
| Absolute tolerance | Relative tolerance | Numeric or missing-value checks | Where the comparison rule was specified |
|---|---|---|---|
| 1e-07 | 1e-07 | 139 | Comparison script |
Error limits for the logistic examples
The logistic comparison uses both a fixed and a proportional allowance. A maximum absolute difference should therefore be read with the scale of the output and its assigned rule.
abs(native - aligned_reference) <= absolute_tolerance + relative_tolerance * abs(aligned_reference)
Use the same rule explained above: a fixed allowance plus one proportional to the reference value, with the limits in this table. Counts and missing-result checks are assessed separately from estimated values.
On a small screen, swipe the table sideways to see every column.
| Absolute tolerance | Relative tolerance | Numeric or missing-value checks | Where the comparison rule was specified |
|---|---|---|---|
| 1e-07 | 1e-07 | 1899 | Comparison script |
What these checks tell you
These checks support the tested linear and logistic calculations under matching settings. They compare coefficient uncertainty as well as fitted estimates. They do not establish that the same model will be appropriate or well-behaved for every dataset.
Separation occurs when predictors perfectly distinguish the response categories and ordinary logistic estimates may not remain finite. That situation, case weighting, bootstrapping and additional diagnostics are outside the stated cases. Several checked rows can describe the same coefficient, so the totals are not counts of independent studies.
- For linear regression, compare the same HC3 uncertainty method and the aligned model-comparison statistics.
- For logistic regression, preserve the event category and intercept choice before comparing numbers.
Inspect the comparison files
Use the CSV to inspect coefficients, standard errors, probabilities and interval limits. The JSON report identifies the test executable, reference package, model choices and comparison rules.
Repeating a test requires its original dataset, response coding, predictor order, intercept setting and software versions. The downloads report completed comparisons and do not include the original datasets or application source code.
Download the comparison results
See the values we checked, the differences we found and the software versions used. The download also identifies the original test files.
About these tests
These are QuickPLS development comparisons. Each record identifies the reference software or mathematical calculation, the tested build and the settings used.
How to understand these comparisons · Find checks for another method