Trend Modeling
npx machina-cli add skill zircote/sigint/trend-modeling --openclawTrend Modeling with Three-Valued Logic
Overview
Based on research in trend-based optimization for product innovation, this skill applies three-valued logic (increasing/decreasing/constant) to analyze markets when precise numerical data is unavailable. This approach enables meaningful analysis with minimal information.
Core Concept
Traditional market analysis requires extensive quantitative data. Three-valued logic provides an alternative when:
- Data is scarce or unreliable
- Relationships are qualitative
- Uncertainty is high
- Quick directional insights are needed
The Three Values
INC (Increasing)
- Variable is trending upward
- Rate of increase may be accelerating (AG) or decelerating (DG)
- Symbol: ↑ or (+)
DEC (Decreasing)
- Variable is trending downward
- Rate of decrease may be accelerating (AD) or decelerating (DD)
- Symbol: ↓ or (-)
CONST (Constant)
- Variable is stable or unchanged
- OR insufficient data to determine direction
- Symbol: → or (=)
Extended Notation
For more nuanced analysis:
| Code | Meaning | Description |
|---|---|---|
| AG | Accelerating Growth | INC with increasing rate |
| DG | Decelerating Growth | INC with decreasing rate |
| AD | Accelerating Decrease | DEC with increasing rate |
| DD | Decelerating Decrease | DEC with decreasing rate |
Correlation-to-Trend Conversion
Transform correlation relationships into trend relationships:
If variables X and Y have positive correlation:
- When X is INC → Y is INC
- When X is DEC → Y is DEC
- Notation: INC(X, Y)
If variables X and Y have negative correlation:
- When X is INC → Y is DEC
- When X is DEC → Y is INC
- Notation: DEC(X, Y)
Example:
- Market size and competition have positive correlation
- If Market Size = INC, then Competition = INC
- If Market Size = DEC, then Competition = DEC
Trend Model Construction
Step 1: Identify Variables
List market variables of interest:
- Market size
- Competition intensity
- Price pressure
- Innovation rate
- Customer adoption
- Regulatory burden
Step 2: Determine Relationships
For each pair of variables:
- Identify correlation direction (positive/negative)
- Convert to trend relationship (INC/DEC)
Step 3: Build Trend Matrix
| Variable | Market Size | Competition | Price | Innovation |
|---|---|---|---|---|
| Market Size | - | INC | DEC | INC |
| Competition | INC | - | DEC | CONST |
| Price | DEC | DEC | - | DEC |
| Innovation | INC | CONST | DEC | - |
Step 4: Generate Scenarios
A scenario is a consistent assignment of INC/DEC/CONST to all variables that satisfies all relationships.
Step 5: Identify Terminal Scenarios
Terminal scenarios are equilibrium states where:
- All relationships are satisfied
- System is stable
- No further transitions occur
Transitional Scenario Graphs
Create Mermaid diagrams showing scenario evolution:
stateDiagram-v2
[*] --> S1: Initial conditions
S1: Scenario 1<br/>Market=INC, Comp=INC<br/>Price=DEC, Innov=INC
S2: Scenario 2<br/>Market=CONST, Comp=INC<br/>Price=DEC, Innov=CONST
S3: Scenario 3 (Terminal)<br/>Market=DEC, Comp=CONST<br/>Price=CONST, Innov=DEC
S4: Scenario 4 (Terminal)<br/>Market=INC, Comp=INC<br/>Price=DEC, Innov=INC
S1 --> S2: Market saturation
S1 --> S4: Sustained growth
S2 --> S3: Commoditization
S2 --> S4: Innovation breakthrough
Multi-Objective Trade-offs
From the research: "No scenario satisfies all objective functions simultaneously."
When analyzing terminal scenarios:
- Identify competing objectives
- Map which scenarios favor which objectives
- Highlight trade-offs required
- Recommend based on priority alignment
Application to Market Analysis
Use Case: New Market Entry
Variables:
- Market Growth (MG)
- Competitive Intensity (CI)
- Entry Barriers (EB)
- Customer Awareness (CA)
Relationships:
- INC(MG, CI) - Growing markets attract competitors
- INC(MG, CA) - Growth increases awareness
- DEC(EB, CI) - Lower barriers increase competition
- INC(CA, MG) - Awareness drives growth
Scenarios Generated:
- Explosive growth: MG=AG, CI=AG, EB=DEC, CA=AG
- Mature equilibrium: MG=DG, CI=CONST, EB=CONST, CA=CONST
- Consolidation: MG=DEC, CI=DEC, EB=INC, CA=CONST
Output Structure
## Trend Model Summary
### Variables
| Variable | Current State | Trend | Confidence |
|----------|---------------|-------|------------|
| [Name] | [Description] | INC/DEC/CONST | High/Med/Low |
### Relationship Matrix
[Matrix showing INC/DEC relationships]
### Generated Scenarios
| Scenario | Var1 | Var2 | Var3 | Terminal? |
|----------|------|------|------|-----------|
| S1 | INC | DEC | CONST | No |
| S2 | CONST | CONST | DEC | Yes |
### Transitional Graph
[Mermaid state diagram]
### Terminal Scenario Analysis
**Scenario X**: [Description]
- Conditions: [What leads here]
- Trade-offs: [What must be sacrificed]
- Recommendation: [Strategic implication]
### Key Insights
1. [Insight about scenario transitions]
2. [Insight about trade-offs]
Best Practices
- Start simple: Begin with 4-6 variables
- Validate relationships: Check with domain experts
- Document uncertainty: Note where relationships are speculative
- Update iteratively: Refine model as new information emerges
- Focus on transitions: The paths between scenarios often matter more than endpoints
Advantages of This Approach
From the research:
- "No numerical values of constants or parameters are needed"
- "A complete list of all futures/histories is obtained"
- "Results remain easy to understand without knowledge of sophisticated mathematical tools"
Additional Resources
For theoretical background and advanced techniques, see:
references/three-valued-logic.md- Theoretical foundationreferences/scenario-generation.md- Algorithm detailsexamples/trend-model-example.md- Worked example
Source
git clone https://github.com/zircote/sigint/blob/main/skills/trend-modeling/SKILL.mdView on GitHub Overview
Trend Modeling uses a three-valued logic (INC, DEC, CONST) to analyze markets when data is scarce. It supports qualitative trend analysis and scenario generation by turning correlations into directional trends and building a consistent trend matrix.
How This Skill Works
First, identify the variables of interest. Then determine the direction of relationships and convert them into INC, DEC, or CONST. Finally, construct a Trend Matrix, generate consistent scenarios, and visualize transitions with Mermaid diagrams when needed.
When to Use It
- When data is scarce or unreliable and you need directional insights
- When performing qualitative trend analysis or minimal-information modeling
- When planning scenarios with limited quantitative data
- When you need transitional scenario graphs to communicate evolution
- When analyzing correlated variables and translating them into trend relationships (INC/DEC/CONST) for quick risk assessment
Quick Start
- Step 1: Identify Variables — list market variables such as Market Size, Competition, Price, Innovation, Customer Adoption, and Regulatory Burden
- Step 2: Determine Relationships — assess correlation direction and convert to INC, DEC, or CONST
- Step 3: Build Trend Matrix and Generate Scenarios — fill the matrix with INC/DEC/CONST and create consistent scenario assignments
Best Practices
- Identify variables clearly (e.g., Market Size, Competition, Price, Innovation, Customer adoption, Regulatory burden)
- Determine the correlation direction for each pair and map it to INC/DEC
- Build a consistent Trend Matrix and verify it against all relationships
- Generate multiple terminal scenarios and document the underlying assumptions
- Use Mermaid diagrams or transitional graphs to communicate evolution and constraints
Example Use Cases
- If Market Size is INC, then Competition is INC; If Market Size is DEC, then Competition is DEC
- Qualitative planning with limited data for a new product to guide early feature prioritization
- Scenario generation by assigning INC/DEC/CONST to Market Size, Competition, Price, and Innovation to produce coherent paths
- Transitional graphs created with Mermaid showing progression from initial state to terminal scenarios
- Minimal-information modeling to analyze regulatory burden vs. innovation rate when data is scarce