Skip to Content

Curve

Context

The Curve window is a key element of the Structural Coefficient Analysis, from where it can be launched.

Usage

You can open the Curve window by clicking the Curve button at the bottom of the Structural Coefficient Analysis Report.

Curve button at the right of the Confidence Analysis Report controls

Curve window

  • Depending on what you selected in Analysis Settings at the beginning of the Structural Coefficient Analysis and what type of network you have, a range of metrics is available to plot.

  • This example shows all six series available for the Ames run. Use the checkboxes in Metrics to show one series or compare several.

    Structural Coefficient Curve with the six series available for this Ames run enabled

Plot a single metric

The example below shows Structure/Data Ratio (Learning Samples) on its own. The horizontal axis gives the Structural Coefficient tested in each iteration, and the vertical axis gives the normalized metric value.

Structural Coefficient Curve displaying only Structure/Data Ratio for the Learning Samples

Metrics interpretation

We explain each metric in a dedicated section with an example:

Compare settings in the Ames example

The Confidence Analysis Report groups the 20 iterations into nine distinct Comparison Structures. Compare the normalized curves to see where metrics change, then read the report for the underlying values and the frequencies of the structures.

Comparison StructureHighest Structural CoefficientRun countMean Test Log-LossValidation Measure
40.929.836811.0722
51.129.852910.2104

In this run, structure 4 has the lower mean Test Log-Loss, and structure 5 has the lower Validation Measure. The latter also accounts for how the variability of Test Set Log-Loss compares with the variability on the Learning Set.

King County walkthrough

Use this example to see how model structure changes as the Structural Coefficient varies. The input comes from King County home sales recorded from May 2014 through May 2015.

Prepare the data

The sample includes renovated houses with a basement that were at least 100 years old in the sale year. Age is the sale year minus the year built. The filter leaves 94 of the 21,613 transactions, including seven houses that were exactly 100 years old. The import file contains 18 model variables. Price (K$)\mathit{Price\ (K{\char36})} is the sale price divided by 1,000, and Years Since Renovation\mathit{Years\ Since\ Renovation} is the sale year minus the recorded renovation year.

  1. Import the CSV with the first row as column names. Keep waterfront\mathit{waterfront}, view\mathit{view}, condition\mathit{condition}, grade\mathit{grade}, and zipcode\mathit{zipcode} discrete. For the supplied sample, change zipcode\mathit{zipcode} from continuous to discrete and bedrooms\mathit{bedrooms} from discrete to continuous. Verify that the import shows five discrete and thirteen continuous variables.
  2. Apply R2-GenOpt to the thirteen continuous variables. Set Intervals to 3 and Minimum Interval Weight to 5%. The Import Report confirms three intervals for each variable.
  3. Set Edit > Edit Number of Uniform Prior Samples to 5. Save a copy before learning.
  4. Set Edit > Edit Structural Coefficient to 1. Learn a reference network with Taboo from an empty structure, then save the reference network.

The reference network below was learned from the 94 records with Taboo List Size set to 74. The MDL score decreased from 2,824.739 to 2,740.164. Six variables remained unconnected.

Loading SVG...
Click to Zoom

Run a coefficient sweep

Tools menu with Multi-Run and Structural Coefficient Analysis highlighted

From the reference network, open Menus > Tools > Multi-Run > Structural Coefficient Analysis. Select Taboo and Delete All Arcs. Use the same learner settings as for the reference network.

King County sweep with Taboo and Delete All Arcs. Coefficients range from 0.2 to 1 over 25 iterations. Structure/Data Ratio, Contingency Table Fit, and Degree of Freedom Reduction Efficiency are selected. Rediscretize Continuous Nodes is off.

Keep Rediscretize Continuous Nodes off to compare structures on the same bins. To investigate the effect of discretization, run a separate sweep from the same reference network with the option enabled. See Rediscretize Continuous Nodes for which nodes are eligible.

Read the curves and compare structures

Open the Confidence Analysis Report. The Learning Context identifies the learner and coefficient range. The buttons at the bottom open the curve and the comparison window for this run.

King County Confidence Analysis Report with the Taboo learning context, arc frequencies, and Curve and Structure Comparison buttons

Select Curve, then select all three metrics in the legend. From a coefficient of 0.5333 to 0.5667, the red Structure/Data Ratio and green Contingency Table Fit curves drop while the blue degree of freedom reduction efficiency curve rises. Each series has its own normalized scale.

All three King County metrics across 25 coefficients, with a change between 0.5333 and 0.5667

Compare the King County structures

From the report, open Structure Comparison. The 25 iterations yielded 16 distinct structures. The Synthesis Structure shows the links seen across the sweep. The Reference Structure shows the network learned before the sweep. Select a thumbnail to inspect the complete window and its footer.

King County Synthesis Structure
Synthesis Structure
King County Reference Structure
Reference Structure
King County Structure 15 · maximum coefficient 1
Structure 15 · maximum coefficient 1
King County Structure 14 · maximum coefficient 0.9333
Structure 14 · maximum coefficient 0.9333
King County Structure 9 · maximum coefficient 0.6
Structure 9 · maximum coefficient 0.6
King County Structure 8 · maximum coefficient 0.5667
Structure 8 · maximum coefficient 0.5667
King County Structure 7 · maximum coefficient 0.5333
Structure 7 · maximum coefficient 0.5333

The report lists the maximum coefficient that produced each structure. Structure 15 appeared twice (8% of iterations). Structures 14, 9, 8, and 7 each appeared once (4%). Structure 10 appeared most often, in six iterations (24%).

Loading SVG...
Click to Zoom

The report also lists the V-structures found during the sweep. For example, the first row shows sqft_above\mathit{sqft\_above} and sqft_basement\mathit{sqft\_basement} as parents of sqft_living\mathit{sqft\_living}.

Loading SVG...

Inspect relationships in a comparison structure

Display Structure 7 in the comparison window. Its maximum coefficient is 0.5333. Use to open that structure in a Graph Window. Switch to Validation Mode and choose Menus > Analysis > Report > Relationship. Leave the arcs unselected to include all 16 relationships.

Loading SVG...
Click to Zoom

For example, the last row reports a data G-test p-value of 1.9722% for the link from sqft_lot\mathit{sqft\_lot} to waterfront\mathit{waterfront}. The adjacent model-based test gives 1.1851%. These results describe the 94 houses in the walkthrough.