<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Simulation on Guy Freeman</title><link>https://gfrm.in/categories/simulation/</link><description>Recent content in Simulation on Guy Freeman</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 31 Jan 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://gfrm.in/categories/simulation/index.xml" rel="self" type="application/rss+xml"/><item><title>Evolution Discovers How to Think: A Philosophical Journey in Code</title><link>https://gfrm.in/posts/bayesian-agent-part2/</link><pubDate>Sat, 31 Jan 2026 00:00:00 +0000</pubDate><guid>https://gfrm.in/posts/bayesian-agent-part2/</guid><description>&lt;p&gt;In &lt;a href="https://gfrm.in/posts/bayesian-agent/"&gt;Part 1&lt;/a&gt;, I built an agent that learns which foods are safe through Bayesian inference. It starts ignorant, observes outcomes, updates its beliefs using exact conjugate mathematics, and eventually acts with something resembling competence. Clean code, sound theory, and those belief distributions converging in real-time remain genuinely satisfying to watch, in the way that all correctly implemented mathematics is satisfying to watch.&lt;/p&gt;
&lt;p&gt;Something has been nagging at me, though.&lt;/p&gt;
&lt;p&gt;The agent learns &lt;em&gt;what&lt;/em&gt; to believe. I designed &lt;em&gt;how&lt;/em&gt; it believes. I chose the variables it perceives. I specified the structure of its world-model. I set the prior hyperparameters. The agent&amp;rsquo;s entire cognitive architecture &amp;mdash; the shape of its epistemic machinery &amp;mdash; came from me, handed down like tablets from a mountain. The agent had no say in the matter. As someone who spent years doing Bayesian statistics, I should know better than to treat the model structure as given. The prior over model structures is the prior that actually matters, and I skipped it entirely.&lt;/p&gt;</description></item><item><title>Building a Bayesian Learning Agent That Teaches Itself to Eat</title><link>https://gfrm.in/posts/bayesian-agent/</link><pubDate>Fri, 26 Dec 2025 00:00:00 +0000</pubDate><guid>https://gfrm.in/posts/bayesian-agent/</guid><description>&lt;p&gt;You&amp;rsquo;re stranded somewhere unfamiliar with twelve types of food scattered around. Some provide energy. Others are toxic. You don&amp;rsquo;t know which is which, you&amp;rsquo;re losing energy with every step, and nobody left a manual. The question is whether you can learn fast enough to survive.&lt;/p&gt;
&lt;p&gt;This is the exploration-exploitation tradeoff, and it&amp;rsquo;s one of those problems that sounds like a thought experiment until you actually have to solve it. Pure exploration &amp;mdash; trying everything at random &amp;mdash; kills you. Pure exploitation &amp;mdash; eating only what you currently believe is best &amp;mdash; starves you when better options exist two metres away. You need something that balances both, and ideally something with a mathematical proof attached.&lt;/p&gt;</description></item></channel></rss>