Why a rater answers a partial request
A full rating needs the whole request.rate refuses a request that lacks a required input, and names the input.
That refusal says what is absent. It stays silent on whether the absent input changes the premium.
The rater holds the tables, the conditions and the rules, so it knows which inputs each outcome reads.
evaluate uses that knowledge on the answers it has. A host that asks questions then needs only the rater’s result, and the rating logic stays in one place.
The examples use the shared renters rater from the synthetic carrier Example Mutual:
construction, which the rater declares as a required input:
rate asks for the complete request. evaluate returns the premium, because each construction gives $216 in the rural territory.
The three results
The rater decides among them in a fixed order:
- A refusal for a business rule arrives as
settled, because it is as final as a premium. - A refusal for a bad value arrives as
invalid, and it comes before any business rule. - An
openresult also lists each outcome that is already final, asknown.
A missing answer stays unknown
The rater treats a missing input as unknown. It leaves the value open, in place of zero or a typical value. An unknown value flows through each calculation that reads it, and the outcome stays unknown too. A default would price a different risk. Suppose a host fills infalse for a missing has_dog.
The renters rater then returns $216 for a household whose true result is $241, or a refusal.
The person sees a premium that the next answer withdraws.
Because the rater uses only given answers, a settled result holds for each way to complete the request.
A host shows it as final and skips the questions that remain.
One kind of input does carry a default, and the rater declares it. A choice is something the person buys, such as a deductible:
deductible out buys the $500 deductible, so a choice stays out of the gaps.
Input contract describes how a host reads a choice and its default.
When a follow-up input applies
A follow-up input belongs to a request only when its condition holds:
So an input outside the request differs from an unanswered input.
The first has left the question list for good. The second stays on the list until a given answer makes it irrelevant.
A follow-up question also comes after the question that decides whether it applies.
How one answer narrows the next question
The rater reads each rate table with the answers that it has. The building table of the renters rater files these factors:
With
territory answered, the rater looks only at that row:
The same reasoning applies to the other forms of a calculation:
- When the rows that fit agree, the lookup has its value and the missing key leaves the gaps.
- When the rows differ, their values for the missing key become its
choices. - An
ifwith a known condition reads one branch. The inputs that only the other branch reads leave the gaps. - A condition such as
a and bis false as soon as one side is false.
What this means for a quoting conversation
- Ask in the order of the gaps. The rater lists first the inputs that it needs first.
- Stop when the result is settled. The premium equals the premium of the complete request.
- Show a known outcome early. A premium under
knownis final for each answer that the rules accept. - End on a refusal. A broken business rule settles the request, and the remaining questions stay unasked.
- Evaluate again after each answer. Each call stands alone, so the same request gives the same result.
Related
- Ask the questions a rater needs writes a rater with questions and follow-up inputs.
- Checks and guarantees covers the proofs behind a complete rating.
- Refusals lists the fields and codes of a refusal.