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 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.
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.
Metrics interpretation
We explain each metric in a dedicated section with an example:
- Contingency Table Fit
- Structure/Data Ratio
- Degree of Freedom Reduction Efficiency
- Structure/Target Precision Ratio
- Target Precision
- Validation Measure
- The Target Precision measure is exclusively available with networks that feature a Target Node.
- If the dataset is split into a Learning Set and a Test Set, Target Precision is computed separately for each set for each value of the Structural Coefficient.
- The measures are plotted on a normalized basis, like the Structure/Data Ratio.
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 Structure | Highest Structural Coefficient | Run count | Mean Test Log-Loss | Validation Measure |
|---|---|---|---|---|
| 4 | 0.9 | 2 | 9.8368 | 11.0722 |
| 5 | 1.1 | 2 | 9.8529 | 10.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
- Download the 94-house analysis dataset (CSV) to run the walkthrough.
- Download the full King County dataset (CSV) to reproduce the selection.
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. is the sale price divided by 1,000, and is the sale year minus the recorded renovation year.
- Import the CSV with the first row as column names. Keep , , , , and discrete. For the supplied sample, change from continuous to discrete and from discrete to continuous. Verify that the import shows five discrete and thirteen continuous variables.
- 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.
- Set Edit > Edit Number of Uniform Prior Samples to 5. Save a copy before learning.
- 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.
Run a coefficient sweep
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.
| Setting | Value |
|---|---|
| Minimum Structural Coefficient | 0.2 |
| Maximum Structural Coefficient | 1 |
| Number of Iterations | 25 |
| Measures | Structure/Data Ratio, Contingency Table Fit, Degree of Freedom Reduction Efficiency |
| Rediscretize Continuous Nodes | 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.
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.
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.
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%).
The report also lists the V-structures found during the sweep. For example, the first row shows and as parents of .
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.
For example, the last row reports a data G-test p-value of 1.9722% for the link from to . The adjacent model-based test gives 1.1851%. These results describe the 94 houses in the walkthrough.