Several observations as a basis for paper-and-pencil approach which, in turn, "might" suggest the first steps of an alternative formulation working with univariate expectations:
- the components of the random vector
e
and, hence, those of the random vector answers
are independent random variables
- the remaining random variables
discs
,DB
db
are products of independent random variables, hence their expectations are the products of the expectations of constituent RVs
- For each component of
answers
, we need four central moments (namely, 1,2, -1 and -2) to compute the expectations of the remaining random variables.
So, let
z[a_, e_] := Min[1, Max[a + e, 0]]
moment[a_, d_, m_Integer] :=
Expectation[z[a, e]^m, e \[Distributed] UniformDistribution[{0, d}]]
Table[{i, moment[a, d, i]}, {i, {1, 2, -1}}] // TableForm
EDIT: Using the observations above and a modification of Istvan's answer for making the legends:
expVal[a_?NumericQ, d_?NumericQ, m_?NumericQ] :=
NIntegrate[Min[1, Max[a + x, 0]]^m PDF[UniformDistribution[{0, d}], x], {x, 0, d}];
capDelta[a5_?NumericQ, a6_?NumericQ, d_?NumericQ] := expVal[a6, d, 1] expVal[a5, d, -1];
capBeta[a5_?NumericQ, a6_?NumericQ, d_?NumericQ] := expVal[a5, d, 1] expVal[a6, d, -1];
delta[a1_?NumericQ, a2_?NumericQ, a3_?NumericQ, a4_?NumericQ, d_?NumericQ] :=
expVal[a4, d, 1] expVal[a2, d, -1] expVal[a3, d, -1] expVal[a1, d, 1];
beta[a1_?NumericQ, a2_?NumericQ, a3_?NumericQ, a4_?NumericQ, d_?NumericQ] :=
expVal[a3, d, 2] expVal[a1, d, -2] expVal[a4, d, -1] expVal[a2, d, 1];
tbl[a1_?NumericQ,a2_?NumericQ,a3_?NumericQ, a4_?NumericQ,a5_?NumericQ, a6_?NumericQ] :=
Transpose[{capDelta[a5, a6, #], capBeta[a5, a6, #], delta[a1, a2, a3, a4, #],
beta[a1, a2, a3, a4, #]} & /@ Table[i, {i, .1, 1, .1}]];
labels = {"Delta", "Beta", "delta", "beta"};
Using the definitions above:
Manipulate[lp = ListPlot[tbl[a1, a2, a3, a4, a5, a6],
Joined -> True, DataRange -> {.1, 1}, PerformanceGoal -> "Speed", ImageSize -> 400];
linestyles = Cases[lp, {directive__, line_Line} :> {directive}, \[Infinity]];
Row[{lp, Grid[Table[{Graphics[Append[linestyles[[i]], Line[{{-1, 0}, {1, 0}}]],
ImageSize -> 50, AspectRatio -> 1/10], labels[[i]]}, {i, 4}],
Spacings -> 2, Alignment -> Left]}],
{{a1, .5, "a1"}, .1, 1, .1},
{{a2, .5, "a2"}, .1, 1, .1},
{{a3, .5, "a3"}, .1, 1, .1},
{{a4, .5, "a4"}, .1, 1, .1},
{{a5, .5, "a5"}, .1, 1, .1},
{{a6, .5, "a6"}, .1, 1, .1}]
screenshot: