Sub topic 1
What a habit is and what it is not
Prerequisites
This chapter assumes you can read a short Python snippet. It also assumes you have everyday experience with routines such as commuting, brushing your teeth, or checking your phone. You don't need any psychology or neuroscience background. Later chapters build on the definition set here, so it is worth getting precise now.
Why a precise definition matters
In everyday speech, "habit" covers almost anything you do often: going to the gym, drinking coffee, biting your nails. This looseness causes practical problems. If you call every repeated behaviour a habit, you will expect willpower, motivation, and automaticity to behave the same way. They don't.
Psychologists use a narrower definition. A habit is a learned association between a context and a response. When you meet the context again, the response comes to mind and tends to be carried out with little deliberation. The behaviour is the visible product. The habit is the stored link behind it.
Three parts of that definition carry most of the weight:
- Learned. The link is built from experience, not inherited or chosen on the spot.
- Context-triggered. A setting, time, place, preceding action, or mood prompts the response. The context is what starts it, more than your current intention.
- Response-level. What is stored is a tendency to perform an action. It is not a belief or a desire.
The basic structure
A habit has three linked elements. A context contains cues. Through repeated pairing, those cues become tied to a response. The response is usually followed by some outcome.
Take the example of reaching for your phone as soon as you sit on the sofa. The sofa, the evening hour, and the lull after dinner are the context. Reaching and unlocking is the response. A small hit of novelty or relief is the outcome. After enough repetitions, you may find the phone in your hand before you decided anything.
The dashed arrow matters. Outcomes help build the link, but once the link is strong the response can fire even if the outcome no longer matters to you. The next chapters take that up in detail.
What a habit is not
Several things are commonly mistaken for habits. Separating them avoids poor predictions later.
| Often called a habit | Why it is not necessarily one | What to ask instead |
|---|---|---|
| Anything done frequently | Frequency alone does not show the action is cue-triggered. You may be choosing it each time. | Does the context start it without a decision? |
| A goal you are committed to | A goal is a representation of an outcome you want. A habit does not need one. | Would you still do it if you no longer wanted the outcome? |
| A routine or schedule | A routine is a planned sequence. It can be fully deliberate. | Is it prompted by the setting, or by a reminder you act on deliberately? |
| Willpower or discipline | Discipline is effortful control used to carry out intentions. Habits reduce the need for it. | Does it feel effortful each time? |
| An addiction | Addiction involves compulsive use despite harm, with additional processes. Habit learning may contribute but is not the same thing. | Is the pattern driven by more than the cue-response link? |
| A personality trait | A trait describes a general tendency. A habit is specific to a context and response. | Does it appear only in particular settings? |
The routine row deserves care. Many people say "I have a morning routine" and mean a list of tasks done in order. If you follow that list because you think "next is stretching," it is a deliberate plan. If finishing your coffee simply starts the stretching without a thought, part of it has become habitual. Most real routines are a mixture.
Habit versus habitual behaviour
Two terms are easy to confuse:
- Habitual behaviour is an action that is repeated regularly. You can observe it from outside.
- A habit is the underlying mechanism, a cue-response association that can produce the action automatically.
Repetition can occur without a habit. Someone who goes to the gym three times a week because they consciously decide to each time is repeating, but not acting from habit. The reverse also holds. A habit can be present but unexpressed, for instance when you have moved to a new home and the old cue is absent. Frequency is a useful clue and a poor test.
Researchers do estimate how much of daily life runs on this mechanism. A well-known diary study by Wood, Quinn and Kashy (2002) found that roughly 43% of the everyday behaviours people recorded were performed almost daily in the same location. These behaviours were often carried out while the person was thinking about something else. Treat that figure as a rough indication from one self-report study, not a constant.
How habit is tested: the devaluation idea
If a habit is a cue-response link and not a pursuit of an outcome, you can test for it. The standard test is outcome devaluation. First train an action that earns a reward. Then make the reward unwanted, for example by feeding the animal to satiety on that food. Then present the context again.
- A goal-directed action is guided by the current value of the outcome. It drops off when the reward is devalued.
- A habitual action is triggered by the context. It continues even though the reward no longer has value.
This is a very small simulation of the logic. It is a toy, not a model of any real brain.
def goal_directed(food_value):
"""Pick the option with the best current payoff."""
options = {"press lever": food_value - 0.1, "rest": 0.0}
return max(options, key=options.get)
def habitual(context, links):
"""Return whatever response is linked to the context."""
return links.get(context, "rest")
links = {"cage": "press lever"}
for food_value in (1.0, 0.0):
print(
"food value", food_value,
"| goal-directed:", goal_directed(food_value),
"| habitual:", habitual("cage", links),
)Running it prints:
food value 1.0 | goal-directed: press lever | habitual: press lever
food value 0.0 | goal-directed: rest | habitual: press leverWhile food is valued, the two agents behave identically. This is why habit and goal-directed action cannot be told apart by watching a person who is doing well. The difference shows only when the outcome changes. The goal-directed agent follows the new value. The habitual agent follows the context.
Features that mark a habit as automatic
Automaticity is not all-or-nothing. It is usually described by features that can be present to different degrees:
- Efficiency. The action takes little mental effort or attention, so you can do it while thinking of something else.
- Lack of awareness. You may not notice starting or even completing it.
- Difficulty to control. Stopping once started, or not starting when the cue appears, takes effort.
- Lack of conscious intent. The action begins without a decision to do it.
An action need not show all four. Treat them as a checklist of signs, with more signs meaning more automatic. A later chapter returns to these signs and how self-report scales use them.
Common errors in thinking about habits
- Confusing a good routine with a habit. Having a schedule does not mean the cue-response link has formed. You may be reliably choosing, which is fine but demands different support.
- Assuming a habit equals a strong desire. The strongest habits can run against what you currently want, which is why people eat snacks they don't want or check messages they don't care about.
- Treating habit as a property of a person. A habit belongs to a person in a context. Change the context and the same person may not show it. This idea underlies the later chapters on context design and context change.
- Treating habits as only bad. The same mechanism produces useful behaviours such as buckling a seatbelt, locking a door, or taking medication at a regular time.
- Expecting a habit after a few repeats. A link needs repetition in a consistent context, and strength grows gradually. The curve and the timeline come in later chapters.
A working definition to carry forward
For the rest of this tutorial, use this operational definition:
> A habit is a learned link between a context and a response, formed by repeating the response in that context. When the context recurs, the response comes to mind and can be executed with little deliberation.
This definition does three things for you. It tells you what to build when you want a new habit: a link between a specific cue and a specific action. It tells you why context matters so much. It also gives you a test: check whether the action continues when its outcome no longer matters.
Exercise
You go for a run every Tuesday, Thursday and Saturday. You put the runs in your calendar, and each time you talk yourself into going. Is this a habit in the sense used in this chapter? What single change in observation would give you evidence that a habit has started to form?
Show answer
As described, it is a repeated, deliberate behaviour and not yet a habit, because each run depends on a decision and a reminder. Frequency alone does not show a cue-response link. Evidence of a forming habit would be that a specific context cue, such as putting on your shoes after coming home from work, begins to start the run with little deliberation. You would also notice that skipping it feels odd, or that you start without having decided to.
Exercise
In the devaluation simulation, change links to {"office": "press lever"} and call habitual("cage", links). What does it print for each food value, and what does that tell you about context?
Show answer
It prints "rest" for both food values, because the link is stored for "office" and the cue "cage" has no associated response. This shows that a habit is tied to a particular context. The same response does not fire when the context is different.