## 444 Reputation

11 years, 228 days
I study psychology and economics with a very quantitative approach to each. I specialised on statistical methods, quantitative diagnostics, portfoio analysis and econometrics. Furthermore I am interested (and above that theoretically and empirlcally involved) in poker, chess and performing arts.

## What´s the problem?...

Maple

I tried the following:

restart;
with(Statistics):
X1 := RandomVariable(Binomial(n, p)):
DARA := t->piecewise(0<t,log(t),0):

0 < n, n::posint, 0 <= p, p <= 1:

ExpectedValue(DARA(X1));
g1 := simplify(%) = DARA(s);
k1 := solve(g1, s);

## Why use 'assume'?...

Maple

Hi.

Does anyone know, why or when to use the assume command as opposed to just defining the assumptions?

e.g.

assume(0 < sigma);

i could just write:

0 < sigma;

right?

## Why does Maple automatically assumes del...

I did the following:

restart;
HARA := t->(alpha+delta*t)^(1-(beta)/(delta)):
0 < (beta)/(delta), (beta)/(delta) < 1:
0 < (alpha+delta*t);

Now Maple prints the last assumption like:

0 < alpha*t

thus assuming that delta must equal 1.

Why?

Thanks for helping.

## Compute an expected utility (by using th...

Maple

I tried to use the Statistics package to compute an expected utility, which is the mean of the product of a utility function u and a random variable f.

E.g. I have a random variable, which is binomial distributed and a utility function: u:=t->-exp(-a*t);

How do I tell Maple to compute the Mean of that product of a random variable and a utility function (i.e. to compute the expected utility)?

Anyhow, if someone knows a more efficient way, I´d also be glad to hear your suggestions.

Thanks for helping.

## ...tell Maple to print a decimal number?...

Maple

I tried the following:

u1:=t->-exp(-a*t);
h1:=t->piecewise(t < 0, 0, binomial(n, t)*p^t*(1-p)^(n-t));
k1:=t->piecewise(type(h1(t), And(realcons,Not(infinity) ) ), h1(t), 0);