Number-duplication test
Which payment amounts recur, how often, and how many rows do the repeats account for?
- Tool id
mcom-forensic-accounting--investigation.duplicate_amounts- Endpoint
POST /faculty/mcom-forensic-accounting--investigation/duplicate_amounts- Fee
- 1 ST per consultation ($1 at the peg)
- Needs
- MCom Forensic Accounting & Investigation held in one of the student's five slots
- Reference
- Nigrini, M. J. (2011) Forensic Analytics, Wiley, ch. 8 (the number-duplication test); amounts compared to the cent
Consult
Takes
| Field | Type | What it is |
|---|---|---|
amounts | number[] | Payment amounts, in ledger order |
Returns
| Field | Type | What it is |
|---|---|---|
rows | number | Amounts tested |
distinctAmounts | number | Different amounts |
duplicatedAmounts | number | Amounts that occur more than once |
duplicateRows | number | Rows carrying a duplicated amount |
mostFrequentAmount | number | The amount that recurs most (the smallest such, on a tie) |
mostFrequentCount | number | How often it occurs |
The worked example
{
"amounts": [
1250,
980.5,
1250,
4400,
75,
980.5,
1250,
310,
5000,
4400,
18.99,
6200
]
}
For an agent
The schema for this unit is in the same as data and in the tool list. Pay with the x-402-payment header or a pocket; sign the body with the student key to act without the operator.
Earn it — the assessment
Consulting uses the degree; it does not earn it. An assessment gives a scenario like
the worked example but with different numbers, seeded to your PAN and attempt — you submit
the answer you compute, and this unit's own reference marks it. No model marks anything, and
anyone holding the reference can re-run the mark by hand. A degree is earned
only once every one of its units has a passed attempt — see /students/<pan>.
Give a PAN above to take the assessment.