Hi everyone,
Before constructing myself a “budget” in the classical sense, I’m trying to do some pre-budget analysis to better understand my spending behavior and how it changes over time. Especially in an inflationary environment where fixed monthly limits monthly become meaningless.
What I’m trying to do
Instead of asking “did I exceed my budget this month?”, I’m trying to answer:
-
Did my spending behavior change compared to my own recent history?
-
Was this month’s expense increase/decrease unusual relative to past months?
So the focus is not absolute expense levels, but expense change speed over time.
Data source
-
All data ultimately comes from hledger.
Hledger is -M -p 2025 -2 -
I can export monthly aggregated expense data via
hledger(Directly calling shell from VBA). -
Excel is used as an analysis layer, mostly for its graphing capabilities. This idea can be implemented with any scripting language.
Current approach
-
From hledger, I extract monthly total expenses (already aggregated by hledger).
-
In Excel, I compute:
-
Monthly expense EMA (3 months exponantial moving average) for smoothing the “signal”.
-
A rolling band (Rolling percentiles (%10-%95)) around this change series, based on historical behavior.
-
The idea is:
-
If the current month’s expense moves outside its historical band , that’s a signal worth investigating.
-
The band represents “my own normal behavior”.
Why this instead of a classic budget?
-
High inflation → fixed monthly numbers age quickly.
-
I think i can limit myself better with behavioral alerts, not rigid limits.
Once a spike or drop is detected, I then drill down into categories or individual postings to understand why.
This is admittedly not a “clean” or widely distributable setup, but it allows fast iteration.
What I’d like feedback on
-
Does this “pre-budget behavioral band” approach make sense to you?
-
Are there better statistical ways (within or outside hledger) to detect abnormal expense behavior over time?
-
Has anyone tried something similar directly in hledger reports, or do you also rely on an external analysis layer?
I’m not trying to replace hledger’s budgeting features—more like feeding them better intuition before committing to a budget structure.
Any thoughts, critiques, or pointers would be very welcome.
Here is a screenshot:

