Bernoulli Utility Function

Same as an exponential utility function or any other utility function, you can use a Bernoulli utility function to associate a payoff in your decision tree. In this tutorial, you will learn basically what is a Bernoulli utility function, and how to use a Bernoulli Utility function in a decision tree.

What is the Bernoulli Utility Function?

Bernoulli suggests a form for the utility function in terms of a differential equation. He proposes that marginal utility is inversely proportional to wealth. If total wealth is expressed as W, and the utility function is U(W), then

Bernoulli's original marginal utility relation stating that marginal utility is proportional to 1 over wealth W, the starting point for the Bernoulli utility function.

Like any proportional expression, we can introduce a constant and express with an equal sign. let's call this constant "a".

Bernoulli utility differential equation: dU over dW equals a divided by W, introducing the proportionality constant a.

What is exactly the Marginal Utility?

Marginal utility is an expression of how the Utility value changes for each additional unit of gain. If you are familiar with calculus, then you know that differential operation is the math operation that gives us any expression's rate of change. So, here, we used the differential operator

Mathematical notation dU over dW representing the marginal utility, the change in utility per additional unit of wealth W.
. Let me give you an example. Say, you have 50$ in your pocket, how much more excited will you feel if you just get 1$ (so your total wealth will be 51$)? hmm, maybe someone will be somewhat excited. Say, that excitement value is "10". Now, say,  you have 100,000$ in your pocket. If you get 1$ on top of that your net wealth will be 100,001$. How much excited will you feel? Not sure about everyone, but most rational people will feel the "0" temptation to get that 1$ when the 100,000$ he or she has in his/her pocket. So, you can understand that the more wealth is gained, the temptation to get an extra 1$ gets diminished. but, when the net wealth is very low, the extra 1$ gets much more exciting. That is the idea of marginal utility of the Bernoulli Utility Function.

In our expression, we introduced a proportional constant "a". This "a" value can be anything to reflect a specific person's situation. You can fine-tune this value "a" to match someone's net wealth and model his/her utility function. We will show how to calculate this constant in this tutorial. Now, if we plot this expression for various "a" value as "a" = 1, "a" = 10, "a" = 50, "a" =100, we observe a pattern.

Four marginal utility charts plotting a over W against W (a equals 1, 10, 50, 100), all showing the same decreasing shape that scales with the constant a.

We can solve this differential equation to find the function "U(W)". By solving the differential equation by integrating both sides, we get

Result of integrating the Bernoulli differential equation: U(W) equals a times natural log of W plus a constant b, yielding the logarithmic Bernoulli utility function.

So, after solving the differential equation, we get another constant "b". We can now use "a" and "b" to scale the utility function to fit any specific scenario. These constants "a" and "b" are called scaling parameters.

Say, a = 1 and b = 0, we see the function plots like this.

Plot of the Bernoulli utility function U(W) equals ln(W) with scaling parameters a equal to 1 and b equal to 0, showing the classic logarithmic shape.

What does it mean by scaling parameters?

Say, you want your utility function such that, for a given scenario, the maximum possible payoff should give U(maximum payoff) = 1. and the minimum payoff should be U(minimum payoff) = 0. Using some parameters, you can adjust the utility function in that way. These parameters are called scaling parameters.

You can determine the value of "a" and "b" like this.

Set any value to W, i.e. 100, and ask yourself, what is your utility value for that wealth? You get a number. (i.e. 0.1 Utils) Put that number in the above equation.

Then, set another value to W, i.e. 1000 or whatever you like, then ask yourself again, what is your Utility value for such high wealth? You will get another number. (i.e. 0.9). Then, you will get 2 equations where the variables are just "a" and "b". When you have 2 equations with 2 variables, using linear algebra, you can solve the value for those variables, right? So, you will get "a" and "b" accordingly.

Pair of linear equations: U(100) equals 0.1 equals a times ln(100) plus b, and U(1000) equals 0.9 equals a times ln(1000) plus b, used to solve for Bernoulli scaling parameters a and b.

Solving these 2 linear equations, we get,

Algebraic solution for the Bernoulli utility scaling parameters a and b, derived from the two linear equations on payoff endpoints.

Our Decision Analysis Software (Decision Tree Software or Rational Will) can calculate that parameter based on the Minimum and Maximum possible values in the decision context, which is collected from the user.

Risk Aversions

According to behavioral economics, the mathematical expression of the absolute risk aversion for any utility function is defined as:

Absolute risk aversion formula: minus U double-prime of x divided by U prime of x, applied to any utility function.

Applying the above operation to the Bernoulli utility function, we get the absolute risk aversion as:

Absolute risk aversion of the Bernoulli utility function, evaluating to 1 divided by (x plus S), showing risk aversion that decreases as wealth grows.

The relative risk aversion formula for any utility function is defined as:

Relative risk aversion formula: minus x times U double-prime of x divided by U prime of x, applied to any utility function.

Applying the above formula, we can get the relative risk aversion for a Bernoulli utility function as

Relative risk aversion of the Bernoulli utility function, evaluating to x divided by (x plus S), approaching 1 for large x.

Modeling Example

Say, you have two business opportunities and you want to decide which one is best. They are Investment A and Investment B. Investment A can bring 20,000$ in revenue with a probability of 0.2 and 500$ with a probability of 0.8. Investment B can bring 2000$ with a probability of 0.85 and 100$ with a probability of 0.15.

If you are using the Decision Tree Analyzer software then you will be greeted with the following screen. If you are using Rational Will software, click the "Decision Tree" button from the home screen to get to this view. Click the button "Set up Criteria".

Decision Tree Analyzer start page used to begin the Bernoulli utility worked example comparing Investment A and Investment B.

Once you click that button, you will be asked, if you want to use a regular single/multiple criteria analysis or a Cost-Effectiveness analysis. Choose the first option. 

Payoff type selection dialog with the regular single or multiple criteria analysis option chosen for the Bernoulli utility example.

Then you will be presented with the following screen. Select "Maximize" and enter "Revenue" as shown below. 

Criterion setup screen with Maximize selected and 'Revenue' entered as the objective name for the Bernoulli utility worked example.

Then click the "Proceed" button. You will be asked about the type of criterion. Select "Numerical Type". Please remember that, in order to use a Utility function, you need to use the Numerical type criterion.

Criterion type dialog with Subjective Type and Numerical Type cards shown for the Revenue criterion; Numerical Type is needed to attach a Bernoulli utility function.

Then you will be asked about the minimum and maximum payoff range from the investment. Enter Minimum = 100$ and maximum = 20,000$

Numerical criterion range dialog with Minimum 100 dollars and Maximum 20,000 dollars entered, and the 'I want to use a utility function' checkbox ticked.

Click Proceed. As you have checked the box "I want to use a utility function...", you will be presented with a utility function editor. Select the "Bernoulli Utility Function" button.  

Utility function editor panel in Decision Tree Analyzer with the Bernoulli Utility Function button highlighted, ready to auto-generate the curve.

How Scaling parameters are calculated

You may be curious, in the generated utility function, from where these scaling parameters are 0.189 and -0.869 come. The scaling parameters are calculated such that, the maximum payoff will result in the highest utility value which can be 1 or 100, depending on the preference. The lowest payoff will result in the lowest utility value which can be 0, -1, or -100, depending on the preferences as well. The preference can be specified from the ribbon as shown here. 

Preferences tab ribbon with the 'Scale utility value in 0 to 1' radio selected (the alternative is 0 to 100), used in the Bernoulli utility worked example.

Viewing other derivatives of the generated utility function.

You can check the Marginal Utility function, Absolute Risk Aversion, and Relative Risk Aversion from the radio buttons as you can see at the bottom of the panel. Here is the Marginal Utility Function for the above-generated function.

Radio buttons at the bottom of the utility editor offering Marginal Utility, Absolute Risk Aversion, and Relative Risk Aversion views of the generated Bernoulli function.

Finally, model the Decision Tree

Click Proceed button. Then, you will be asked if you want to add another criterion. Click "No".  

Then, click the "decision Node" button to create a decision tree with a Decision Node as the root node.

Start screen of the decision tree designer with the 'Decision Node' button highlighted to create a tree whose root is a decision node, used for the Investment A vs B example.

Then, create a decision tree like this. If you are not familiar with how to create the decision tree in our decision tree software, please visit the getting started page. From that page, you will know how to set a payoff to a node.


First decision tree built for the Bernoulli example: a root decision between Investment A and Investment B with chance nodes for each revenue outcome.

Then, set the payoff for each node.

Investment A vs Investment B decision tree with payoffs entered; Investment B is selected with expected utility 0.481 versus Investment A at 0.443, with Best outcome 20000 dollars equal to 1 Utils.

Anytime, you click the Utility value link shown on each node, the Payoff editor will show up.

Within the payoff editor, click the Utils link to open the utility function chart. You can also see a green vertical line that indicates where your utility stands in the plot based on the currently set payoff. The line moves as you change the payoff instantly.

Payoff editor opened from a tree node showing the Utils link that opens the utility function chart, including the green line marking the current payoff position.

The constraint of a Bernoulli Utility Function

Even though the Bernoulli Utility function can model realistic behavior very well, there is a minor detail that needs to be remembered when using such an equation.

What is the natural logarithm of zero?

Mathematical expression ln(0) is undefined, the key constraint that prevents a Bernoulli utility function from accepting zero or negative payoff values.
is undefined.

Since ln(0) is the number that we get by solving the equation:

Equation e to the power of x equals 0 has no solution, the reason the natural logarithm of zero is undefined in the Bernoulli utility context.

There is no value of x that satisfies this equation.

So, for a value of x, your Bernoulli Utility Function will give a value that is undefined.

If your payoff's Minimum and Maximum value is such a range where 0 can be a possible number, then our software will show an error.

In order to avoid such a problem, we recommend setting the Minimum Payoff value greater than 0.

Last updated on Jan 7, 2026