Skip to content
/ Gut Public

This project shows how a simple model could mimic a “gut feeling” by combining biological/entropy principles, basic optimal control, and emergent complexity. It should be treated as a demonstration, not a definitive guide. Always cross-check with real-world data and professional insight before making critical decisions.

Notifications You must be signed in to change notification settings

farukalpay/Gut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Computational Gut: First Version

We present our initial experiment in creating a Computational Gut—a decision-making program that simulates human-like “gut feelings” by blending:

  • Biological & Entropy Modeling
  • Stochastic & Emergent Complexity
  • Optimal Control (HJB/Pontryagin)
  • Quantum-Like Uncertainty

The result is a simple, easy-to-run Python script that provides a `YES` or `NO` recommendation based on user input about costs, benefits, risk, and time horizon.


1. Why a Computational Gut?

In many decisions, humans rely on an intuitive sense—often called a “gut feeling.” We aim to replicate that using mathematical tools:

  • Biological/Energy Dynamics: We treat “resources” as a numeric quantity that ages and decays over time, subject to random shocks (like entropic forces).
  • Optimal Control: We simulate how an action (say, investing in a project) vs. inaction plays out over a time horizon, balancing present costs against future benefits.
  • Emergent Complexity: We run many micro-simulations, letting patterns emerge from random fluctuations—akin to quantum superpositions collapsing into a final yes/no choice.
  • Yes/No Output: We keep it simple: the code prints a single answer—like a gut instinct—built on complex internal reasoning.

2. What's in This Repository?

  1. `first_gut.py`: The primary Python script.
  2. Example Scenarios: Use cases showing how to query the gut with cost, benefit, risk, and horizon.

3. How It Works (Short Explanation)

  1. Resource & Decay: We assume you start with 100 units of resources. Each time step, a baseline decay (e.g. 5%) reduces available resources, modeling how things naturally degrade or become more chaotic over time (aging, energy usage, etc.).
  2. Volatility/Uncertainty: Random fluctuations add unpredictability. A higher “risk” parameter means bigger positive or negative hits each step.
  3. Decision Impact: If we say “YES” to a decision:
    • We pay an immediate “cost” fraction of our resources.
    • We reduce our future decay by a “benefit” fraction, hopefully saving us resources in the long run.
  4. Monte Carlo Simulation: The script simulates many random futures under two paths: “YES” vs. “NO,” compares survival rates and average final resources, then picks whichever path typically leads to better outcomes.
  5. Result: It prints “YES” if the action is beneficial in most random scenarios and yields better final states, or “NO” if it performs worse.

4. Example Input/Output

For instance, if you run the script with:

  • Question: “Should we invest in Project X?”
  • Cost: 0.2
  • Benefit: 0.5
  • Risk: 0.3
  • Horizon: 50

You might see output similar to:

Welcome to the Land of Algoria...
Enter your pressing question for the Oracle: Should we invest in Project X?

1) The resource cost (0–1)? 0.2
2) The long-term benefit (0–1)? 0.5
3) The risk/volatility (0–1)? 0.3
4) How many steps to consider? 50

Peering through the swirling mists of time...
The Oracle’s crystal reveals the following glimpses of the future:

  Survival rate if you proceed (YES):  98.70%
  Average ending energy (YES):        19.41
  Survival rate if you decline (NO):  95.50%
  Average ending energy (NO):         15.23

*** The Oracle’s Divine Pronouncement ***
The ritual indicates you should choose: YES

Interpretation: Investing costs you 20% of your current resources now, but you gain a 50% reduction in ongoing “decay.” After simulating 50 steps in a moderately risky environment, your “YES” scenarios often survive with slightly higher average final energy.

5. Usage

  1. Install Python (3.7+ recommended).
  2. Clone or Download this repository.
  3. Open a Terminal in the project directory.
  4. Run:
    python first_gut.py
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

ba660c42a08f1e0f023b4d6a7bc8d77d3297d303b72768c2b7da03230b38f0a7

About

This project shows how a simple model could mimic a “gut feeling” by combining biological/entropy principles, basic optimal control, and emergent complexity. It should be treated as a demonstration, not a definitive guide. Always cross-check with real-world data and professional insight before making critical decisions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages