# US 2019/0377655 A1 · Two-stage distributed estimation system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0377655 A1
- Document ID: US20190377655A1
- Status: Published application
- Kind: A1
- Application number: 16/433,136
- Filed: 2019-06-06
- Published: 2019-12-12
- Earliest claimed: 2018-06-06
- Assignees: SAS Institute Inc.
- Applicants: SAS Institute Inc.
- Inventors: Mahesh V. Joshi
- Web page: https://patentgrep.com/patent/US20190377655A1

## CPC

- G06F 17/18: for evaluating statistical data {, e.g. average values, frequency distributions, probability functions, regression analysis (forecasting specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- G06F 9/542: {Event management; Broadcasting; Multicasting; Notifications}
- G06F 11/3452: {Performance evaluation by statistical analysis}
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06F 11/3447: {Performance evaluation by modeling}
- G06F 16/2425: {Iterative querying; Query formulation based on the results of a preceding query}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Metadata received from each worker computing device describes EDF estimates for samples of marginal variables stored on each respective worker computing device. Combinations of the EDF estimates are enumerated and assigned to each worker computing device based on the metadata. A request to compute outcome expectation measure values for an outcome expectation measure is initiated to each worker computing device based on the assigned combinations. The outcome expectation measure values computed by each worker computing device are received from each respective worker computing device. The received outcome expectation measure values are accumulated for the outcome expectation measure. A mean value and a standard deviation value are computed for the outcome expectation measure from the accumulated, received outcome expectation measure values. The computed mean and standard deviation values for the outcome expectation measure are output to represent an expected outcome based on the marginal variables.

## Claims

### Claim 1

A non-transitory computer-readable medium having stored thereon computer-readable instructions that when executed by a computing device cause the computing device to:
receive metadata from each worker computing device of a plurality of worker computing devices, wherein the metadata from each worker computing device describes a plurality of EDF estimates computed for each of a plurality of samples of each of a plurality of marginal variables that is stored on each respective worker computing device;
enumerate and assign a plurality of combinations of the EDF estimates to each worker computing device based on the received metadata;
initiate a request to compute outcome expectation measure values for an outcome expectation measure to each worker computing device of the plurality of worker computing devices based on the assigned plurality of combinations of the EDF estimates;
receive the outcome expectation measure values computed by each worker computing device of the plurality of worker computing devices from each respective worker computing device;
accumulate the received outcome expectation measure values for the outcome expectation measure;
compute a mean value for the outcome expectation measure from the accumulated, received outcome expectation measure values; and
output the computed mean value for the outcome expectation measure to represent an expected outcome based on the plurality of marginal variables.

### Claim 2 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the outcome expectation measure is a percentile at a predefined level.

### Claim 3 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the outcome expectation measure is a conditional tail expectation at a predefined level.

### Claim 4 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the request includes a plurality of outcome expectation measures.

### Claim 5 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein, after accumulating the received outcome expectation measure values, the computer-readable instructions further cause the computing device to:
compute a standard deviation value for the outcome expectation measure from the accumulated, received outcome expectation measure values and the computed mean value; and
output the computed standard deviation value for the outcome expectation measure.

### Claim 6 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein, after accumulating the received outcome expectation measure values, the computer-readable instructions further cause the computing device to:
compute a median value for the outcome expectation measure from the accumulated, received outcome expectation measure values;
compute an interquartile range value for the outcome expectation measure from the accumulated, received outcome expectation measure values; and
output the computed median value and the computed interquartile range value for the outcome expectation measure.

### Claim 7 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein a first worker computing device of the plurality of worker computing devices that processes an assigned non-local combination requests any non-local EDF estimate that it does not store locally from a second computing device of the plurality of worker computing devices or from the computing device that does store the EDF estimate.

### Claim 8 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein computing the outcome expectation measure values comprises second computer-readable instructions that when executed by each worker computing device cause each worker computing device to:
(a) read a first combination of the assigned plurality of combinations and a probability value pim of a first marginal variable from a first observation of joint probabilities data;
(b) compute a marginal value as a (100*pim)th percentile by using the EDF estimate of the first marginal variable from the read first combination;
(c) repeat (a) and (b) with each remaining marginal variable of the plurality of marginal variables as the first marginal variable;
(d) compute an aggregate measure value by applying a predefined aggregation function to the computed marginal variable values;
(e) add the computed aggregate measure value to an aggregate measure sample;
(f) repeat (a) to (e) with each remaining observation in the joint probabilities data as the first observation;
(g) compute the outcome expectation measure value for the first combination from the aggregate measure sample;
(h) repeat (a) to (g) with each remaining combination of the assigned plurality of combinations as the first combination; and
(i) send the computed outcome expectation measure value for each combination of the assigned plurality of combinations to the requesting device.

### Claim 9 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein before (a), the computer-readable instructions further cause the computing device to broadcast the joint probabilities data to each worker computing device.

### Claim 10 (depends on 9)

The non-transitory computer-readable medium of claim 9, wherein before broadcasting the joint probabilities data, the computer-readable instructions further cause the computing device to create the joint probabilities data from portions of the joint probabilities data distributed across the plurality of worker computing devices.

### Claim 11 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein before (a), the computer-readable instructions further cause the computing device to request that a worker computing device storing the joint probabilities data broadcast the joint probabilities data to each remaining worker computing device.

### Claim 12 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein before (a), the computer-readable instructions further cause the computing device:
determine whether a portion of the joint probabilities data stored on each worker computing device is greater than or equal to a predefined threshold value;
when the portion of the joint probabilities data stored on each worker computing device is less than the predefined threshold value,
create the joint probabilities data from portions of the joint probabilities data distributed across the plurality of worker computing devices;
when a size of the created joint probabilities data is less than a second predefined threshold value, broadcast the joint probabilities data to each worker computing device; and
when a size of the created joint probabilities data is greater than or equal to the second predefined threshold value, distribute a portion of the created joint probabilities data to each worker computing device.

### Claim 13 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein the portion of the created joint probabilities data distributed to each worker computing device is determined as the size of the created joint probabilities data divided by a number of the worker computing devices.

### Claim 14 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein enumerating and assigning the plurality of combinations comprises balancing a load of processing combinations across the plurality of worker computing devices.

### Claim 15 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein each worker computing device is assigned approximately
K
U
N
W
combinations, where KU is a predefined maximum number of combinations to process, and NW is a number of the worker computing devices.

### Claim 16 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein enumerating and assigning the plurality of combinations comprises computing a total number of local combinations as a sum of a number of purely local combinations computable on each worker computing device, wherein a purely local combination indicates that the respective worker computing device includes a full sample of each marginal variable included in the purely local combination.

### Claim 17 (depends on 16)

The non-transitory computer-readable medium of claim 16, wherein enumerating and assigning the plurality of combinations further comprises:
when the total number of local combinations is greater than or equal to a predefined maximum number of combinations to process, computing
W
E
=
∑
N
W

1
(
K
w
>
K
U
N
W
)
,
where 1C denotes a function that equals one if the condition C is true and zero otherwise, NW is a number of the worker computing devices, KU is the predefined maximum number of combinations to process, and Kw is the number of purely local combinations computable on a wth worker computing device;
when WE/NW is less than or equal to a predefined threshold, computing a total slack value E as
E
=
∑
N
W

max


(
K
U
N
W
-
K
w
,
0
)
;
computing a number of combinations assigned Na as
N
a
=
min


(
K
U
N
W
+
E
W
E
,
K
w
)
;
and
requesting that each worker computing device process Na of its purely local combinations.

### Claim 18 (depends on 16)

The non-transitory computer-readable medium of claim 16, wherein enumerating and assigning the plurality of combinations further comprises:
when the total number of local combinations is greater than or equal to a predefined maximum number of combinations to process, computing
W
E
=
∑
N
W

1
(
K
w
>
K
U
N
W
)
,
where 1C denotes a function that equals one if the condition C is true and zero otherwise, NW is a number of the worker computing devices, KU is the predefined maximum number of combinations to process, and Kw is the number of purely local combinations computable on a wth worker computing device;
when WE/NW is greater than a predefined threshold or when the total number of local combinations is less than the predefined maximum number of combinations to process,
(a) selecting a worker computing device of the plurality of worker computing devices;
(b) computing a number of marginal variables L that have a local sample on the selected worker computing device;
(c) computing a number of local samples Nm of a first marginal variable on the selected worker computing device; and
(d) when L=Nm and
K
W
≥
K
U
N
W
,
the selected worker computing device is assigned the purely local combinations computable on the selected worker computing device.

### Claim 19 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein enumerating and assigning the plurality of combinations further comprises:
(e) when L≥Nm, computing
R
w
=
K
U
N
W
-
K
W
,
L=Nm, and Nn1=0;
(f) computing Cw=N1*N2* . . . *NL-1+Nnl;
(g) when there are no non-local samples for Lth marginal, decrementing L;
(h) when there are no non-local samples for Lth marginal and when L=0, repeating (a) to (e) for each remaining worker computing device of the plurality of worker computing devices; and
(i) when there are no non-local samples for Lth marginal and when decremented L≠0, repeating (f) to (h).

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein enumerating and assigning the plurality of combinations further comprises:
(j) when there are non-local samples for Lth marginal, adding a next smallest non-local sample for Lth marginal to the plurality of combinations assigned to the selected worker computing device;
(k) computing Rw=Rw−Cw and Nnl=Nnl+1; and
(l) when Rw>0, repeating (g) to (k).

### Claim 21 (depends on 20)

The non-transitory computer-readable medium of claim 20, wherein enumerating and assigning the plurality of combinations further comprises:
(m) when L<Nm, computing
R
w
=
K
U
N
W
,
Nnl=0, Cw=N1*N2* . . . *NL, and setting a new combination parameter to indicate false;
(n) computing m=L+1;
(o) when there are non-local samples for mth marginal, adding a next smallest non-local sample for marginal m to the plurality of combinations assigned to the selected worker computing device and setting a new combination parameter to indicate true;
(p) incrementing m; and
(q) when m≤Nm, repeating (o) to (p) until m>Nm.

### Claim 22 (depends on 21)

The non-transitory computer-readable medium of claim 21, wherein enumerating and assigning the plurality of combinations further comprises:
(r) when m>Nm and the new combination parameter indicates true, computing Rw=Rw−Cw and Nnl=Nnl+1;
(s) when m>Nm and the new combination parameter indicates true, and Rw>0, repeating (n) to (r) until Rw≤0;
(t) when m>Nm, the new combination parameter indicates false, and L=0, repeating (a) to (s) for each remaining worker computing device of the plurality of worker computing devices; and
(u) when m>Nm, the new combination parameter indicates false, and L≠0, repeating (f) to (l).

### Claim 23

A computing device comprising:
a processor; and
a non-transitory computer-readable medium operably coupled to the processor, the computer-readable medium having computer-readable instructions stored thereon that, when executed by the processor, cause the computing device to
receive metadata from each worker computing device of a plurality of worker computing devices, wherein the metadata from each worker computing device describes a plurality of EDF estimates computed for each of a plurality of samples of each of a plurality of marginal variables that is stored on each respective worker computing device;
enumerate and assign a plurality of combinations of the EDF estimates to each worker computing device based on the received metadata;
initiate a request to compute outcome expectation measure values for an outcome expectation measure to each worker computing device of the plurality of worker computing devices based on the assigned plurality of combinations of the EDF estimates;
receive the outcome expectation measure values computed by each worker computing device of the plurality of worker computing devices from each respective worker computing device;
accumulate the received outcome expectation measure values for the outcome expectation measure;
compute a mean value for the outcome expectation measure from the accumulated, received outcome expectation measure values; and
output the computed mean value for the outcome expectation measure to represent an expected outcome based on the plurality of marginal variables.

### Claim 24

A method of distributed computation of an outcome expectation measure, the method comprising:
receiving, by the computing device, metadata from each worker computing device of a plurality of worker computing devices, wherein the metadata from each worker computing device describes a plurality of EDF estimates computed for each of a plurality of samples of each of a plurality of marginal variables that is stored on each respective worker computing device;
enumerating and assigning, by a computing device, a plurality of combinations of the EDF estimates to each worker computing device based on the received metadata;
initiating, by the computing device, a request to compute outcome expectation measure values for an outcome expectation measure to each worker computing device of the plurality of worker computing devices based on the assigned plurality of combinations of the EDF estimates;
receiving, by the computing device, the outcome expectation measure values computed by each worker computing device of the plurality of worker computing devices from each respective worker computing device;
accumulating, by the computing device, the received outcome expectation measure values for the outcome expectation measure;
computing, by the computing device, a mean value for the outcome expectation measure from the accumulated, received outcome expectation measure values; and
outputting, by the computing device, the computed mean value for the outcome expectation measure to represent an expected outcome based on the plurality of marginal variables.

### Claim 25 (depends on 24)

The method of claim 24, wherein the estimated EDF assigned to a first worker computing device of the plurality of worker computing devices that does not store a non-local combination is requested from a second worker computing of the plurality of worker computing devices that does store the non-local combination.

### Claim 26 (depends on 24)

The method of claim 24, wherein computing the outcome expectation measure values by each worker computing device comprises:
(a) reading a first combination of the assigned plurality of combinations and a probability value pim of a first marginal variable from a first observation of joint probabilities data;
(b) computing a marginal value as a (100*pim)th percentile by using the EDF estimate of the first marginal variable from the read first combination;
(c) repeating (a) and (b) with each remaining marginal variable of the plurality of marginal variables as the first marginal variable;
(d) computing an aggregate measure value by applying a predefined aggregation function to the computed marginal value;
(e) adding the computed aggregate measure value to an aggregate measure sample;
(f) repeating (a) to (e) with each remaining observation in the joint probabilities data as the first observation;
(g) computing the outcome expectation measure value for the first combination from the aggregate measure sample;
(h) repeating (a) to (g) with each remaining combination of the assigned plurality of combinations as the first combination; and
(i) sending the computed outcome expectation measure value for each combination of the assigned plurality of combinations to the requesting device.

### Claim 27 (depends on 24)

The method of claim 24, wherein enumerating and assigning the plurality of combinations comprises balancing a load of processing combinations across the plurality of worker computing devices.

### Claim 28 (depends on 27)

The method of claim 27, wherein each worker computing device is assigned approximately
K
U
N
W
combinations, where KU is a predefined maximum number of combinations to process, and NW is a number of the worker computing devices.

### Claim 29 (depends on 24)

The method of claim 24, wherein enumerating and assigning the plurality of combinations comprises computing a total number of local combinations as a sum of a number of purely local combinations computable on each worker computing device, wherein a purely local combination indicates that the respective worker computing device includes a full sample of each marginal variable included in the purely local combination.

### Claim 30 (depends on 29)

The method of claim 29, wherein enumerating and assigning the plurality of combinations further comprises:
when the total number of local combinations is greater than or equal to a predefined maximum number of combinations to process, computing
W
E
=
∑
N
W

1
(
K
w
>
K
U
N
W
)
,
where 1C denotes a function that equals one if the condition C is true and zero otherwise, NW is a number of the worker computing devices, KU is the predefined maximum number of combinations to process, and Kw is the number of purely local combinations computable on a wth worker computing device;
when WE/NW is less than or equal to a predefined threshold, computing a total slack value E as
E
=
∑
N
W

max


(
K
U
N
W
-
K
w
,
0
)
;
computing a number of combinations assigned Na as
N
α
=
min


(
K
U
N
W
+
E
W
E
,
K
w
)
;
and
requesting that each worker computing device process Na of its purely local combinations.
