# Scoring with Weights and Randomization

Let us take an example where questions are organized into groups with [weights](/speechace-speaking-test/speechace-workspaces-create-manage-and-share-speaking-assessments/creating-assessments/create-new-custom-assessments/custom-assessment-configurations/weights-max-scores-timers.md) and [randomization](/speechace-speaking-test/speechace-workspaces-create-manage-and-share-speaking-assessments/creating-assessments/create-new-custom-assessments/custom-assessment-configurations/question-groups-and-randomization/random-order-of-questions.md). The test creator has created two groups of questions: **Pronunciation** group and **Fluency** group with weights of 70% and 30% respectively.&#x20;

<figure><img src="/files/NkAmpejfqVenYfwKqfhG" alt=""><figcaption></figcaption></figure>

The score for such an assessment is calculated as a weighted average of the individual question scores, using the following formula:

`Score` = Sum of (`Question score` x `Weight of Question`)/100

Since two questions are randomly selected from the **Pronunciation** group (70% weight), each will carry a weight of 35% (70/2). The one randomly selected question from the **Fluency** group will have weight of 30%.

As an example, if the Speechace scores for the two **Pronunciation** questions are 8.9 and 8.6, and the one **Fluency** question is 8.6 (all out of 9.0), the final assessment score will be 8.7 out of 9.0 as per the calculation below:

$$
\[(8.9*35)+(8.6*35)+(8.6\*30)]/100=8.7
$$


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://speaking-test-docs.speechace.com/speechace-speaking-test/speechace-workspaces-create-manage-and-share-speaking-assessments/creating-assessments/scoring-logic/scoring-with-weights-and-randomization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
