<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/39/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Fiorent</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/39/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Fiorent"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/Special:Contributions/Fiorent"/>
	<updated>2026-04-14T10:42:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=133055</id>
		<title>Grade aggregation</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=133055"/>
		<updated>2019-01-26T11:05:50Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}&lt;br /&gt;
The aggregation drop-down menu lets you choose the aggregation strategy used to calculate the overall grade of a [[Grade categories|grade category]]. The different options are explained below.&lt;br /&gt;
&lt;br /&gt;
== Aggregation strategy ==&lt;br /&gt;
&lt;br /&gt;
All grades are first converted to percentage values (interval from 0 to 1), then aggregated using one of the strategies below and finally converted to the associated category item&#039;s range (between Minimum grade and Maximum grade). In the following we assume that all Minimum grades are equal to 0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important&#039;&#039;&#039;: An &amp;quot;empty grade&amp;quot; is a missing gradebook entry, and could mean different things. For example, it could be a participant who hasn&#039;t yet submitted an assignment, an assignment submission not yet graded by the teacher, or a grade that has been manually deleted by the gradebook administrator. Caution in interpreting these &amp;quot;empty grades&amp;quot; is thus advised.&lt;br /&gt;
&lt;br /&gt;
== Mean of grades ==&lt;br /&gt;
In yields the sum of all grades divided by the total number of grades.&lt;br /&gt;
For instance: assume a category A (with Maximum grade equal to 100) includes 3 items A1, A2 and A3 (with maximum grades equal to 100, 80 and 10 respectively); if a student scores A1=70, A2=20 and A3=10, then we have the following grade calculation for A: &lt;br /&gt;
    A1 --&amp;gt;70/100=0.7, A2 --&amp;gt; 20/80=0.25, A3 --&amp;gt;10/10=1&lt;br /&gt;
    A: (0.7 + 0.25 + 1.0)/3 = 0.65 --&amp;gt; 65/100 --&amp;gt; 65 (the maximum grade for category A is 100).&lt;br /&gt;
&lt;br /&gt;
== Weighted mean ==&lt;br /&gt;
Each grade item can be given a weight to change its importance in the overall mean. In simple terms, the category &amp;quot;total&amp;quot; will be equal to the sum of the scores in each grade item each multiplied by its grade weight, and that sum being finally divided by the sum of all weights. This is shown in the following example (with the same assumptions of the previous case).&lt;br /&gt;
    A1: 70 out of 100 weight 10, A2: 20 out of 80 weight 5, A3: 10 out of 10 weight 3, category A: maximum grade 100&lt;br /&gt;
    A1 --&amp;gt;70/100=0.7, A2 --&amp;gt; 20/80=0.25, A3 --&amp;gt;10/10=1&lt;br /&gt;
    A: (0.7*10 + 0.25*5 + 1.0*3)/(10 + 5 + 3) = 0.625 --&amp;gt; 62.5/100 --&amp;gt; 62.5 (out of 100)&lt;br /&gt;
&lt;br /&gt;
== Simple weighted mean ==&lt;br /&gt;
The difference from Weighted mean is that the weight of each item is its Maximum grade.&lt;br /&gt;
For instance, using the same assumptions of the first case:&lt;br /&gt;
    A1 --&amp;gt; 70/100, A2 --&amp;gt; 20/80, A3 --&amp;gt; 10/10, category max 100:&lt;br /&gt;
    A: (0.7*100 + 0.25*80 + 1.0*10)/(100 + 80 + 10) = 0.526 --&amp;gt; 52.6/100 --&amp;gt; 52.6 (out of 100)&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Simple weighted mean&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. For example, if A3 is marked as extra credit in the above calculation:&lt;br /&gt;
    A1 --&amp;gt; 70/100, A2 --&amp;gt; 20/80, A3 (extra credit) 10/10, category max 100:&lt;br /&gt;
    A: (0.7*100 + 0.25*80 + 1.0*10)/(100 + 80) = 0.556 --&amp;gt; 55.6 (out of 100)&lt;br /&gt;
&lt;br /&gt;
== Mean of grades (with extra credits) ==&lt;br /&gt;
Arithmetic mean with a twist. An old, now unsupported, aggregation strategy provided here only for backward compatibility with old activities.&lt;br /&gt;
&lt;br /&gt;
A value greater than 0 treats a grade item&#039;s grades as extra credit during aggregation. The number is a factor by which the grade value will be multiplied before it is added to the sum of all grades, but the item itself will not be counted in the division. For example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is set to 2&lt;br /&gt;
* Item 2 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0&lt;br /&gt;
* Item 3 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0&lt;br /&gt;
* All 3 items belong to Category 1, which has &amp;quot;Mean of grades (with extra credits)&amp;quot; as its aggregation strategy&lt;br /&gt;
* A student gets graded 20 on Item 1, 40 on Item 2 and 70 on Item 3&lt;br /&gt;
* The student&#039;s total for Category 1 will be 95/100 since 20*2 + (40 + 70)/2 = 95&lt;br /&gt;
&lt;br /&gt;
== Median of grades ==&lt;br /&gt;
The middle value (or the mean of the two middle values) when percentages (the tatios between grades and their maximum values) are arranged in order of value. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean).&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    A: median(0.7, 0.25, 1.0) --&amp;gt; 0.70 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Smallest grade ==&lt;br /&gt;
The result is the smallest grade after [https://en.wikipedia.org/wiki/Normalization_(statistics) normalisation]. It is usually used in combination with Aggregate only non-empty grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    min(0.7, 0.25,1.0) = 0.25 --&amp;gt; 25/100&lt;br /&gt;
&lt;br /&gt;
== Highest grade ==&lt;br /&gt;
The result is the highest grade after [https://en.wikipedia.org/wiki/Normalization_(statistics) normalisation].&lt;br /&gt;
    A1: 70/100, A2; 20/80, A3: 10/10, category max 100:&lt;br /&gt;
    A: max(0.7, 0.25, 1.0) = 1.0 --&amp;gt; 100/100&lt;br /&gt;
&lt;br /&gt;
== Mode of grades ==&lt;br /&gt;
The mode is the [[https://en.wikipedia.org/wiki/Normalization_(statistics) normalisation] normalised] grade that occurs the most frequently. It is often used for non-numerical grades. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean). However it loses its meaning once there is more than one most frequently occurring grade (only one is kept), or when all the grades are different from each other.&lt;br /&gt;
    A1 70/100, A2 35/50, A3 20/80, A4 10/10, A5 7/10 category max 100:&lt;br /&gt;
    A: mode(0.7, 0.7, 0.25, 1.0, 0.7) = 0.7 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Natural ==&lt;br /&gt;
&lt;br /&gt;
This is the  sum of all grade values, scaled by their relative weights. The Maximum grade of the category is the sum of the maximums of all aggregated items. &lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, without forcing weights:&lt;br /&gt;
    A: (70 + 20 + 10)/(100 + 80 + 10) --&amp;gt; 100/190&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: Scale grades are ignored.&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Natural&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. Following is an example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100&lt;br /&gt;
* Item 2 is graded 0-75&lt;br /&gt;
* Item 1 has the &amp;quot;Act as extra credit&amp;quot; checkbox ticked, Item 2 doesn&#039;t.&lt;br /&gt;
* Both items belong to Category 1, which has &amp;quot;Natural&amp;quot; as its aggregation strategy&lt;br /&gt;
* Category 1&#039;s total will be graded 0-75&lt;br /&gt;
* A student gets graded 20 on Item 1 and 70 on Item 2&lt;br /&gt;
* The student&#039;s total for Category 1 will be 75/75 (20+70 = 90 but Item 1 only acts as extra credit, so it brings the total to its maximum)&lt;br /&gt;
&lt;br /&gt;
Natural aggregation functions as a sum of grades when the weight boxes are left alone. In this situation, the numbers in the weight boxes are informational and represent the effective weights in the sum. Natural aggregation can also function as a mean of grades, when the weight boxes are checked and then adjusted so that the weights are equal across a set of items in a category, or across a set of categories. Items can still be marked as &amp;quot;Extra credit&amp;quot; while using the weights to calculate a mean, and contribute to the total for the category.&lt;br /&gt;
&lt;br /&gt;
==Available aggregation types==&lt;br /&gt;
[[Image:availableaggregationtypes1.png|thumb|Available aggregation types setting]]&lt;br /&gt;
The default is &#039;Natural&#039; but the administrator can specify other types from  &#039;&#039;Site administration &amp;gt;administration &amp;gt; Grades &amp;gt; [[Grade category settings]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that reducing the number of aggregation types simply results in disabled aggregation types not appearing in the aggregation type dropdown menu. All existing grade category calculations remain the same, regardless of whether the aggregation type is later disabled by an administrator.&lt;br /&gt;
&lt;br /&gt;
[[ca:Agregació de les categories]]&lt;br /&gt;
[[fr:Tendance centrale de la catégorie]]&lt;br /&gt;
[[es:Agregación de categoría]]&lt;br /&gt;
[[de:Bewertungen zusammenfassen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=133054</id>
		<title>Grade aggregation</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=133054"/>
		<updated>2019-01-26T10:59:07Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}&lt;br /&gt;
The aggregation drop-down menu lets you choose the aggregation strategy used to calculate the overall grade of a [[Grade categories|grade category]]. The different options are explained below.&lt;br /&gt;
&lt;br /&gt;
== Aggregation strategy ==&lt;br /&gt;
&lt;br /&gt;
All grades are first converted to percentage values (interval from 0 to 1), then aggregated using one of the strategies below and finally converted to the associated category item&#039;s range (between Minimum grade and Maximum grade). In the following we assume that all Minimum grades are equal to 0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important&#039;&#039;&#039;: An &amp;quot;empty grade&amp;quot; is a missing gradebook entry, and could mean different things. For example, it could be a participant who hasn&#039;t yet submitted an assignment, an assignment submission not yet graded by the teacher, or a grade that has been manually deleted by the gradebook administrator. Caution in interpreting these &amp;quot;empty grades&amp;quot; is thus advised.&lt;br /&gt;
&lt;br /&gt;
== Mean of grades ==&lt;br /&gt;
In yields the sum of all grades divided by the total number of grades.&lt;br /&gt;
For instance: assume a category A (with Maximum grade equal to 100) includes 3 items A1, A2 and A3 (with maximum grades equal to 100, 80 and 10 respectively); if a student scores A1=70, A2=20 and A3=10, then we have the following grade calculation for A: &lt;br /&gt;
    A1 --&amp;gt;70/100=0.7, A2 --&amp;gt; 20/80=0.25, A3 --&amp;gt;10/10=1&lt;br /&gt;
    A: (0.7 + 0.25 + 1.0)/3 = 0.65 --&amp;gt; 65/100 --&amp;gt; 65 (the maximum grade for category A is 100).&lt;br /&gt;
&lt;br /&gt;
== Weighted mean ==&lt;br /&gt;
Each grade item can be given a weight to change its importance in the overall mean. In simple terms, the category &amp;quot;total&amp;quot; will be equal to the sum of the scores in each grade item each multiplied by its grade weight, and that sum being finally divided by the sum of all weights. This is shown in the following example (with the same assumptions of the previous case).&lt;br /&gt;
    A1: 70 out of 100 with weight 10, A2: 20 out of 80 with weight 5, A3: 10 out of 10 with weight 3, category A: maximum grade equal to 100&lt;br /&gt;
    A1 --&amp;gt;70/100=0.7, A2 --&amp;gt; 20/80=0.25, A3 --&amp;gt;10/10=1&lt;br /&gt;
    A: (0.7*10 + 0.25*5 + 1.0*3)/(10 + 5 + 3) = 0.625 --&amp;gt; 62.5/100 --&amp;gt; 62.5 (out of 100)&lt;br /&gt;
&lt;br /&gt;
== Simple weighted mean ==&lt;br /&gt;
The difference from Weighted mean is that the weight of each item is its Maximum grade.&lt;br /&gt;
For instance, using the same assumptions of the first case:&lt;br /&gt;
    A1 --&amp;gt; 70/100, A2 --&amp;gt; 20/80, A3 --&amp;gt; 10/10, category max 100:&lt;br /&gt;
    A: (0.7*100 + 0.25*80 + 1.0*10)/(100 + 80 + 10) = 0.526 --&amp;gt; 52.6/100 --&amp;gt; 52.6 (out of 100)&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Simple weighted mean&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. For example, if A3 is marked as extra credit in the above calculation:&lt;br /&gt;
    A1 70/100, A2 20/80, A3 (extra credit) 10/10, category max 100:&lt;br /&gt;
    A: (0.7*100 + 0.25*80 + 1.0*10)/(100 + 80) = 0.556 --&amp;gt; 55.6/100&lt;br /&gt;
&lt;br /&gt;
== Mean of grades (with extra credits) ==&lt;br /&gt;
Arithmetic mean with a twist. An old, now unsupported, aggregation strategy provided here only for backward compatibility with old activities.&lt;br /&gt;
&lt;br /&gt;
A value greater than 0 treats a grade item&#039;s grades as extra credit during aggregation. The number is a factor by which the grade value will be multiplied before it is added to the sum of all grades, but the item itself will not be counted in the division. For example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is set to 2&lt;br /&gt;
* Item 2 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0&lt;br /&gt;
* Item 3 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0&lt;br /&gt;
* All 3 items belong to Category 1, which has &amp;quot;Mean of grades (with extra credits)&amp;quot; as its aggregation strategy&lt;br /&gt;
* A student gets graded 20 on Item 1, 40 on Item 2 and 70 on Item 3&lt;br /&gt;
* The student&#039;s total for Category 1 will be 95/100 since 20*2 + (40 + 70)/2 = 95&lt;br /&gt;
&lt;br /&gt;
== Median of grades ==&lt;br /&gt;
The middle value (or the mean of the two middle values) when percentages (the tatios between grades and their maximum values) are arranged in order of value. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean).&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    median(0.7; 0.25; 1.0) --&amp;gt; 0.70 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Smallest grade ==&lt;br /&gt;
The result is the smallest grade after [https://en.wikipedia.org/wiki/Normalization_(statistics) normalisation]. It is usually used in combination with Aggregate only non-empty grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    min(0.7; 0.25; 1.0) = 0.25 --&amp;gt; 25/100&lt;br /&gt;
&lt;br /&gt;
== Highest grade ==&lt;br /&gt;
The result is the highest grade after [https://en.wikipedia.org/wiki/Normalization_(statistics) normalisation].&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    max(0.7; 0.25; 1.0) = 1.0 --&amp;gt; 100/100&lt;br /&gt;
&lt;br /&gt;
== Mode of grades ==&lt;br /&gt;
The mode is the [[https://en.wikipedia.org/wiki/Normalization_(statistics) normalisation] normalised] grade that occurs the most frequently. It is often used for non-numerical grades. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean). However it loses its meaning once there is more than one most frequently occurring grade (only one is kept), or when all the grades are different from each other.&lt;br /&gt;
    A1 70/100, A2 35/50, A3 20/80, A4 10/10, A5 7/10 category max 100:&lt;br /&gt;
    mode(0.7; 0.7; 0.25; 1.0; 0.7) = 0.7 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Natural ==&lt;br /&gt;
&lt;br /&gt;
This is the  sum of all grade values, scaled by weight. The Maximum grade of the category is the sum of the maximums of all aggregated items. &lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, without forcing weights:&lt;br /&gt;
    (70 + 20 + 10)/(100 + 80 + 10) --&amp;gt; 100/190&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: Scale grades are ignored.&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Natural&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. Following is an example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100&lt;br /&gt;
* Item 2 is graded 0-75&lt;br /&gt;
* Item 1 has the &amp;quot;Act as extra credit&amp;quot; checkbox ticked, Item 2 doesn&#039;t.&lt;br /&gt;
* Both items belong to Category 1, which has &amp;quot;Natural&amp;quot; as its aggregation strategy&lt;br /&gt;
* Category 1&#039;s total will be graded 0-75&lt;br /&gt;
* A student gets graded 20 on Item 1 and 70 on Item 2&lt;br /&gt;
* The student&#039;s total for Category 1 will be 75/75 (20+70 = 90 but Item 1 only acts as extra credit, so it brings the total to its maximum)&lt;br /&gt;
&lt;br /&gt;
Natural aggregation functions as a sum of grades when the weight boxes are left alone. In this situation, the numbers in the weight boxes are informational and represent the effective weights in the sum. Natural aggregation can also function as a mean of grades, when the weight boxes are checked and then adjusted so that the weights are equal across a set of items in a category, or across a set of categories. Items can still be marked as &amp;quot;Extra credit&amp;quot; while using the weights to calculate a mean, and contribute to the total for the category.&lt;br /&gt;
&lt;br /&gt;
==Available aggregation types==&lt;br /&gt;
[[Image:availableaggregationtypes1.png|thumb|Available aggregation types setting]]&lt;br /&gt;
The default is &#039;Natural&#039; but the administrator can specify other types from  &#039;&#039; Site administration &amp;gt;administration &amp;gt; Grades &amp;gt; [[Grade category settings]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that reducing the number of aggregation types simply results in disabled aggregation types not appearing in the aggregation type dropdown menu. All existing grade category calculations remain the same, regardless of whether the aggregation type is later disabled by an administrator.&lt;br /&gt;
&lt;br /&gt;
[[ca:Agregació de les categories]]&lt;br /&gt;
[[fr:Tendance centrale de la catégorie]]&lt;br /&gt;
[[es:Agregación de categoría]]&lt;br /&gt;
[[de:Bewertungen zusammenfassen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=133037</id>
		<title>Grade aggregation</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=133037"/>
		<updated>2019-01-21T12:30:40Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: Fixing calculations and notation, work in progress&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}&lt;br /&gt;
The aggregation drop-down menu lets you choose the aggregation strategy that will be used to calculate each participant&#039;s overall grade for a [[Grade categories|grade category]]. The different options are explained below.&lt;br /&gt;
&lt;br /&gt;
== Aggregation strategy ==&lt;br /&gt;
&lt;br /&gt;
All grades are first converted to percentage values (interval from 0 to 1), then aggregated using one of the strategies below and finally converted to the associated category item&#039;s range (between Minimum grade and Maximum grade). In what follows all Minimum grades are assumed to be 0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important&#039;&#039;&#039;: An empty grade is simply a missing gradebook entry, and could mean different things. For example, it could be a participant who hasn&#039;t yet submitted an assignment, an assignment submission not yet graded by the teacher, or a grade that has been manually deleted by the gradebook administrator. Caution in interpreting these &amp;quot;empty grades&amp;quot; is thus advised.&lt;br /&gt;
&lt;br /&gt;
== Mean of grades ==&lt;br /&gt;
The sum of all grades divided by the total number of grades.&lt;br /&gt;
For instance: assume a category A (with Maximum grade equal to 100) includes 3 items A1, A2 and A3 (with maximum grades equal to 100, 80 and 10 respectively); if a student scores A1=70, A2=20 and A3=10, we have the following grade calculation for A : &lt;br /&gt;
    A1 --&amp;gt;70/100=0.7, A2 --&amp;gt; 20/80=0.25, A3 --&amp;gt;10/10=1&lt;br /&gt;
    A: (0.7 + 0.25 + 1.0)/3 = 0.65 --&amp;gt; 65/100 --&amp;gt; 65 (the maximum for category A is 100).&lt;br /&gt;
&lt;br /&gt;
== Weighted mean ==&lt;br /&gt;
Each grade item can be given a weight to change its importance in the overall mean. In simple terms, the category &amp;quot;total&amp;quot; will be equal to the sum of the scores in each grade item each multiplied by its grade weight, and that sum being finally divided by the sum of all weights, as shown in this example (using the same assumptions of the previous case).&lt;br /&gt;
    A1: 70 out of 100 with weight 10, A2: 20 out of 80 with weight 5, A3: 10 out of 10 with weight 3, category A maximum grade equal to 100:&lt;br /&gt;
    A1 --&amp;gt;70/100=0.7, A2 --&amp;gt; 20/80=0.25, A3 --&amp;gt;10/10=1&lt;br /&gt;
    (0.7*10 + 0.25*5 + 1.0*3)/(10 + 5 + 3) = 0.625 --&amp;gt; 62.5/100 --&amp;gt; 62.5 (out of 100)&lt;br /&gt;
&lt;br /&gt;
== Simple weighted mean ==&lt;br /&gt;
The difference from Weighted mean is that the weight of each item is simply its Maximum grade.&lt;br /&gt;
For instance, using the same assumptions of the first case:&lt;br /&gt;
    A1 --&amp;gt; 70/100, A2 --&amp;gt; 20/80, A3 --&amp;gt; 10/10, category max 100:&lt;br /&gt;
    (0.7*100 + 0.25*80 + 1.0*10)/(100 + 80 + 10) = 0.526 --&amp;gt; 52.6/100 --&amp;gt; 52.6 (out of 100)&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Simple weighted mean&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. For example, if A3 is marked as extra credit in the above calculation:&lt;br /&gt;
    A1 70/100, A2 20/80, A3 (extra credit) 10/10, category max 100:&lt;br /&gt;
    (0.7*100 + 0.25*80 + 1.0*10)/(100 + 80) = 0.556 --&amp;gt; 55.6/100&lt;br /&gt;
&lt;br /&gt;
== Mean of grades (with extra credits) ==&lt;br /&gt;
Arithmetic mean with a twist. An old, now unsupported, aggregation strategy provided here only for backward compatibility with old activities.&lt;br /&gt;
&lt;br /&gt;
A value greater than 0 treats a grade item&#039;s grades as extra credit during aggregation. The number is a factor by which the grade value will be multiplied before it is added to the sum of all grades, but the item itself will not be counted in the division. For example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is set to 2&lt;br /&gt;
* Item 2 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0.0000&lt;br /&gt;
* Item 3 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0.0000&lt;br /&gt;
* All 3 items belong to Category 1, which has &amp;quot;Mean of grades (with extra credits)&amp;quot; as its aggregation strategy&lt;br /&gt;
* A student gets graded 20 on Item 1, 40 on Item 2 and 70 on Item 3&lt;br /&gt;
* The student&#039;s total for Category 1 will be 95/100 since 20*2 + (40 + 70)/2 = 95&lt;br /&gt;
&lt;br /&gt;
== Median of grades ==&lt;br /&gt;
The middle value (or the mean of the two middle values) when percentages (the tatios between grades and their maximum values) are arranged in order of value. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean).&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    median(0.7; 0.25; 1.0) --&amp;gt; 0.70 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Smallest grade ==&lt;br /&gt;
The result is the smallest grade after normalisation. It is usually used in combination with Aggregate only non-empty grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    min(0.7; 0.25; 1.0) = 0.25 --&amp;gt; 25/100&lt;br /&gt;
&lt;br /&gt;
== Highest grade ==&lt;br /&gt;
The result is the highest grade after normalisation.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    max(0.7; 0.25; 1.0) = 1.0 --&amp;gt; 100/100&lt;br /&gt;
&lt;br /&gt;
== Mode of grades ==&lt;br /&gt;
The mode is the normalised grade that occurs the most frequently. It is often used for non-numerical grades. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean). However it loses its meaning once there is more than one most frequently occurring grade (only one is kept), or when all the grades are different from each other.&lt;br /&gt;
    A1 70/100, A2 35/50, A3 20/80, A4 10/10, A5 7/10 category max 100:&lt;br /&gt;
    mode(0.7; 0.7; 0.25; 1.0; 0.7) = 0.7 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Natural ==&lt;br /&gt;
&lt;br /&gt;
This is the  sum of all grade values, scaled by weight. The Maximum grade of the category is the sum of the maximums of all aggregated items. &lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, without forcing weights:&lt;br /&gt;
    (70 + 20 + 10)/(100 + 80 + 10) --&amp;gt; 100/190&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: Scale grades are ignored.&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Natural&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. Following is an example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100&lt;br /&gt;
* Item 2 is graded 0-75&lt;br /&gt;
* Item 1 has the &amp;quot;Act as extra credit&amp;quot; checkbox ticked, Item 2 doesn&#039;t.&lt;br /&gt;
* Both items belong to Category 1, which has &amp;quot;Natural&amp;quot; as its aggregation strategy&lt;br /&gt;
* Category 1&#039;s total will be graded 0-75&lt;br /&gt;
* A student gets graded 20 on Item 1 and 70 on Item 2&lt;br /&gt;
* The student&#039;s total for Category 1 will be 75/75 (20+70 = 90 but Item 1 only acts as extra credit, so it brings the total to its maximum)&lt;br /&gt;
&lt;br /&gt;
Natural aggregation functions as a sum of grades when the weight boxes are left alone. In this situation, the numbers in the weight boxes are informational and represent the effective weights in the sum. Natural aggregation can also function as a mean of grades, when the weight boxes are checked and then adjusted so that the weights are equal across a set of items in a category, or across a set of categories. Items can still be marked as &amp;quot;Extra credit&amp;quot; while using the weights to calculate a mean, and contribute to the total for the category.&lt;br /&gt;
&lt;br /&gt;
==Available aggregation types==&lt;br /&gt;
[[Image:availableaggregationtypes1.png|thumb|Available aggregation types setting]]&lt;br /&gt;
The default is &#039;Natural&#039; but the administrator can specify other types from  &#039;&#039; Site administration &amp;gt;administration &amp;gt; Grades &amp;gt; [[Grade category settings]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that reducing the number of aggregation types simply results in disabled aggregation types not appearing in the aggregation type dropdown menu. All existing grade category calculations remain the same, regardless of whether the aggregation type is later disabled by an administrator.&lt;br /&gt;
&lt;br /&gt;
[[ca:Agregació de les categories]]&lt;br /&gt;
[[fr:Tendance centrale de la catégorie]]&lt;br /&gt;
[[es:Agregación de categoría]]&lt;br /&gt;
[[de:Bewertungen zusammenfassen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=133036</id>
		<title>Grade calculations</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=133036"/>
		<updated>2019-01-21T11:59:07Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: Improved wording and correction of some typos&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing grades}}&lt;br /&gt;
A grade calculation is a formula used to determine grades, based on other grade items. Note that this is not the same as [[Calculated_question_type|Calculated question types]].&lt;br /&gt;
&lt;br /&gt;
Grade calculations follow the pattern of formulas/functions in popular spreadsheet programs. They start with an equal (=) sign, and use common mathematical operators and functions to produce a single numerical output. This output is then used as the computed value for the grade item you are editing.&lt;br /&gt;
&lt;br /&gt;
==Setting a grade calculation==&lt;br /&gt;
[[Image:neweditcalculation.png|thumb|Edit calculation setting]]&lt;br /&gt;
[[Image:newcalculationgrade.png|thumb|Example calculation]]&lt;br /&gt;
To set a grade calculation:&lt;br /&gt;
# Login as teacher or other user with permission to edit grades&lt;br /&gt;
# Click on Grades in the course administration block&lt;br /&gt;
# Click the &#039;Categories and items&#039; &lt;br /&gt;
# Click the &#039;Edit settings&#039; and then &#039;Edit calculation&#039;. Note: if you don&#039;t see this, then it must be enabled in &#039;&#039;Site administration&amp;gt;Grades&amp;gt;Report settings&amp;gt;Grader report&#039;&#039;&lt;br /&gt;
# Start with an equal sign (=)&lt;br /&gt;
# Type an expression using numbers, arithmetic operators, mathematical functions and ID numbers; for example &amp;lt;nowiki&amp;gt;=average()&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Plug in your ID numbers (see below) enclosed in double square brackets, for example &amp;lt;nowiki&amp;gt;=[[item1]]+[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Separate each function argument with a comma, as in &amp;lt;nowiki&amp;gt;=average([[item1]], [[item2]])+[[item3]])&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Click the &amp;quot;Save Changes&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
==Assigning ID numbers==&lt;br /&gt;
&lt;br /&gt;
You can include the values of other grade items by using their ID number as references in your formulas. The ID number must be surrounded by double square brackets, for example if you have a grade item with Quiz.3 as ID number, you can refer this item using &amp;lt;nowiki&amp;gt;[[Quiz.3]]&amp;lt;/nowiki&amp;gt; in your calculation.&lt;br /&gt;
&lt;br /&gt;
Below the calculation field there is a list of your course grade categories and grade items. Next to each item or category&#039;s total there is the ID number you can use in your calculation (already surrounded with the required double square brackets).&lt;br /&gt;
&lt;br /&gt;
However, since ID numbers are optional, some items may not yet have one. Each item without ID number have a form field that you can use to enter its ID number directly. As soon as you have assigned the ID numbers you need, you must click the &amp;quot;Add ID numbers&amp;quot; button; the page will reload and show you the same list including the ID numbers you have just assigned. Now you can use them in your grade calculation.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: Moodle does not allow calculations involving no ID numbers.&lt;br /&gt;
&lt;br /&gt;
==Calculation functions==&lt;br /&gt;
&lt;br /&gt;
Every grade calculation must start with an equal sign (=) followed by an expression using operators and functions supported by the system.&lt;br /&gt;
All common arithmetic operators are supported&lt;br /&gt;
&lt;br /&gt;
* addition, using the plus (+) sign&lt;br /&gt;
* subtraction, using the minus (-) sign&lt;br /&gt;
* multiplication, using the asterisk (*) character&lt;br /&gt;
* division, using the slash (/) character&lt;br /&gt;
* exponentiation, using the caret (^) character&lt;br /&gt;
&lt;br /&gt;
with their usual evaluation precedence rules: exponentiations are evaluated first, then multiplications and divisions are performed, finally additions and subtraction are carried out; so, the expression =1+2-3*4/5^6 gives almost 3 (2,999232). Different precedences can be forced using round parentheses, as in the expression =((((1+2)-3)*4)/5)^6 which yields 0.&lt;br /&gt;
&lt;br /&gt;
Functions can also appear in expressions, using the comma (,) character to separate their arguments listed within round brackets. (Note that the separator character could be a semicolon (;) in other [[Language|languages]], see below).&lt;br /&gt;
&lt;br /&gt;
* average&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the average of the values in a list of arguments&lt;br /&gt;
* max&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the maximum value in a list of arguments&lt;br /&gt;
* min&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the minimum value in a list of arguments&lt;br /&gt;
* mod(dividend, divisor): Calculates the remainder of a division&lt;br /&gt;
* pi(): Returns the value of the number Pi (3.14159265...)&lt;br /&gt;
* power(base, exponent): Raises a number to the exponent power (this is the same as base^exponent)&lt;br /&gt;
* round(number, count): Rounds number to count decimal digits&lt;br /&gt;
* floor(number): Maps a real number to the largest previous integer&lt;br /&gt;
* ceil(number): Maps a real number to the smallest following integer&lt;br /&gt;
* sum&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the sum of all arguments (this is the same as &amp;lt;nowiki&amp;gt;[[item1]]+[[item2]]+...&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Many other mathematical functions are also supported:&lt;br /&gt;
&lt;br /&gt;
* sin()&lt;br /&gt;
* sinh()&lt;br /&gt;
* arcsin()&lt;br /&gt;
* asin()&lt;br /&gt;
* arcsinh()&lt;br /&gt;
* asinh()&lt;br /&gt;
* cos()&lt;br /&gt;
* cosh()&lt;br /&gt;
* arccos()&lt;br /&gt;
* acos()&lt;br /&gt;
* arccosh()&lt;br /&gt;
* acosh()&lt;br /&gt;
* tan()&lt;br /&gt;
* tanh()&lt;br /&gt;
* arctan()&lt;br /&gt;
* atan()&lt;br /&gt;
* arctanh()&lt;br /&gt;
* atanh()&lt;br /&gt;
* sqrt()&lt;br /&gt;
* abs()&lt;br /&gt;
* ln()&lt;br /&gt;
* log()&lt;br /&gt;
* exp()&lt;br /&gt;
&lt;br /&gt;
==Example calculations==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]])&amp;lt;/nowiki&amp;gt; - Returns the maximum value of the grades referred by Quiz.1, Quiz.4 and Assignment.1&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=average(max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]), min([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]))&amp;lt;/nowiki&amp;gt; - Returns the average of the maximum and the minimum values among Quiz.1, Quiz.4 and Assignment.1 (functions can be nested)&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=sum([[item1]]*0.3, [[item2]]*0.6, [[item3]]*2)&amp;lt;/nowiki&amp;gt; - Returns a weighted grade sum where item1 is weighted 30%, item2 is weighted at 60% and item3 is weighted at 200%&lt;br /&gt;
&lt;br /&gt;
==Calculations when user language is not English==&lt;br /&gt;
&lt;br /&gt;
Calculation can formulas use decimal and list separators as defined in the [https://docs.moodle.org/dev/Translation_langconfig langconfig.php] file of each [[Language packs|language pack]].&lt;br /&gt;
&lt;br /&gt;
The [[Decimal separator|decimal separator]] (the symbol used to mark the boundary between the integral and the fractional parts of a decimal number) is a point (.) in English. In other languages it may be a comma (,).&lt;br /&gt;
&lt;br /&gt;
Analogously, the list separator (the symbol used to separate the items within a list, such as the arguments of a function) is a comma (,) in English. In other languages it may be a semicolon (;).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://www.youtube.com/watch?v=WKUGyzAXcyA Video on how to set up calculations in the gradebook (basic)]&lt;br /&gt;
*[http://www.youtube.com/watch?v=VBEj8mmu8lM Video on how to set up calculations in the gradebook (advanced)]&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/edit/tree/calculation]]&lt;br /&gt;
[[es:Cálculos de calificación]]&lt;br /&gt;
[[fr:Calcul de note]]&lt;br /&gt;
[[ru:Формулы и вычисления оценок]]&lt;br /&gt;
[[ja:評定計算]]&lt;br /&gt;
[[de:Bewertungen berechnen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Assignment_settings&amp;diff=132138</id>
		<title>Assignment settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Assignment_settings&amp;diff=132138"/>
		<updated>2018-11-02T17:03:53Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Assignment}}&lt;br /&gt;
&lt;br /&gt;
==Adding an assignment==&lt;br /&gt;
&lt;br /&gt;
# Go to the course where you want the assignment; turn on the editing, and in the section you want the assignment, click &#039;Add an activity or resource&#039;.&lt;br /&gt;
# From the Activity chooser, click the Assignment button and click &#039;Add&#039;. &lt;br /&gt;
&lt;br /&gt;
(If you want to edit an existing assignment, click the Edit link to its right and choose the action you wish to take, eg &#039;Edit settings&#039;.)&lt;br /&gt;
&lt;br /&gt;
==Assignment settings==&lt;br /&gt;
&lt;br /&gt;
===General ===&lt;br /&gt;
Give your assignment a name (which students will see to click on) and, if required, a description. If you want the description to display on the course page, check the box.&lt;br /&gt;
&lt;br /&gt;
;Additional files&lt;br /&gt;
:Here you can add files which may be of help to the students as they do their assignment, such as example submissions or answer templates.&lt;br /&gt;
&lt;br /&gt;
===Availability===&lt;br /&gt;
&lt;br /&gt;
;Allow submissions from&lt;br /&gt;
:This stops students from submitting before the shown date but it doesn&#039;t hide the assignment and any included instructions or materials.&lt;br /&gt;
;Due date&lt;br /&gt;
:Submissions are still allowed after this date but will be marked as late. Disable it by unticking the checkbox. Assignments without a due date will appear on the dashboard with &#039;No Due Date&#039; displayed.&lt;br /&gt;
;Cut-off date&lt;br /&gt;
:After this date, students will not be able to submit and the submit button will disappear.&lt;br /&gt;
;Remind me to grade by..&lt;br /&gt;
:A date needs to be entered here in order for the assignment to display on the teacher&#039;s [[Course overview block]] and in the [[Calendar]]. It will display when at least one student has submitted.&lt;br /&gt;
&lt;br /&gt;
===Submission types===&lt;br /&gt;
&lt;br /&gt;
Here you can decide how you wish students to submit their work to you. &lt;br /&gt;
&lt;br /&gt;
Note: If Submission comments are enabled in &#039;&#039;Administration&amp;gt;Plugins&amp;gt;Activity modules&amp;gt;Assignment&amp;gt;Submission plugins&#039;&#039;, students will be able to add a note to their teacher on submitting work. If Anonymous (blind) marking is enabled, student comments display in the gradebook as from &amp;quot;Participant 01 etc&amp;quot; to avoid revealing identities.&lt;br /&gt;
&lt;br /&gt;
;Online text &lt;br /&gt;
:Students type their responses directly in Moodle using a text editor (such as the [[Atto editor]] which automatically saves text at regular intervals.)&lt;br /&gt;
&lt;br /&gt;
It&#039;s possible to set a word limit on an online text assignment. Students get a warning if they try to exceed the word limit. Numbers are counted as words and abbreviations such as &#039;&#039;I&#039;m&#039;&#039; or &#039;&#039;they&#039;re&#039;&#039; are counted as single words.&lt;br /&gt;
&lt;br /&gt;
;File submissions&lt;br /&gt;
:Students can upload one or more files of any type the teacher can  open. The teacher can annotate  uploaded PDFs, docx and odt files within the browser, and on saving, the annotated file is made available to the student.  (Check with your admin that [https://en.wikipedia.org/wiki/Ghostscript Ghostscript] and a [[Document converters| document converter]] are enabled, if you can&#039;t annotate uploaded files.) In the screenshot below, a docx file has been uploaded and converted so that the teacher may use the annotation tools to comment directly on the student&#039;s assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:assignmentgrading3.png|thumb|500px|center|Annotating uploaded files]]&lt;br /&gt;
&lt;br /&gt;
Comments may be collapsed to make it easier to read the original text:&lt;br /&gt;
&lt;br /&gt;
[[File:collapsedcommentexample.png]]&lt;br /&gt;
&lt;br /&gt;
;Maximum submission size&lt;br /&gt;
:The maximum upload size refers to each file a student uploads. It cannot be larger than the limit in the Course settings.&lt;br /&gt;
;Accepted file types&lt;br /&gt;
:The teacher can specify the types of file the students may upload to the assignment. A file type selector appears upon clicking &#039;Choose&#039; , offering a choice of different file types. (See the video [https://youtu.be/vN1DlHeZkw4 File type selection] for more information.) Leaving the field blank will allow all file types. &lt;br /&gt;
&lt;br /&gt;
If the file types have been restricted, then when  students attempt to submit the assignment, they will see a message telling them which files are accepted:&lt;br /&gt;
[[File:studentfiletyperestrictions.png|thumb|500px|center|Student view of specified files]]&lt;br /&gt;
&lt;br /&gt;
===Feedback types===&lt;br /&gt;
;Feedback comments&lt;br /&gt;
:With this enabled, markers can leave comments for each submission (which appear on the assignment grading screen.)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Annotate PDF&#039;&#039;&#039; appears if this setting is enabled by the Site administrator in the &#039;&#039;Manage assignment feedback plugins&#039;&#039; section of Site admin and will allow the teacher to annotate using comments,stamps and other features.&lt;br /&gt;
&lt;br /&gt;
;Offline grading worksheet&lt;br /&gt;
:This is useful if you wish to download the grading list and edit it in a program such as MS Excel. &lt;br /&gt;
{|&lt;br /&gt;
|[[File:emptygradebook.png|thumb|The empty gradebook on Moodle]]&lt;br /&gt;
|[[File:downloadgradingworksheet.png|thumb|The dropdown to download the list]]&lt;br /&gt;
|[[File:excelgrades.png|thumb|Editing the grades offline]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
When the teacher has completed their grading offline, they can then upload the spreadsheet, confirm the changes and the grades and comments will be transferred over into Moodle&#039;s gradebook:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|[[File:uploadgradingworksheet.png|thumb|Uploading the grading worksheet]]&lt;br /&gt;
|[[File:confirmchanges.png|thumb|Confirming the changes]]&lt;br /&gt;
|[[File:fullgradebook.png|thumb|Grades and feedback transferred into Moodle]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
See also [http://www.somerandomthoughts.com/blog/2012/11/19/offline-grading-worksheet-in-moodle-2-4-assignment/ Offline grading worksheet] blog post by Gavin Henrick.&lt;br /&gt;
&lt;br /&gt;
;Feedback files&lt;br /&gt;
:This allows  markers to upload files with feedback when marking. These files may be the marked up student assignments, documents with comments, a completed marking guide, or spoken audio feedback. It enables the Feedback Files column in the assignment grading screen (accessed from &#039;View/Grade all submissions&#039;.) To upload feedback files, click on the green tick in the grade column on the grading table and then upload either with drag and drop or using the [[File picker]].&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|[[File:feedback files.jpg|thumb|The Feedback files column]]&lt;br /&gt;
|[[File:feedback files 2.jpg|thumb|Upload files here]]&lt;br /&gt;
|[[File:feedback view for students.jpg|thumb|Student view with comments and file feedback both enabled]]&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;Uploading multiple feedback files&#039;&#039;&#039; is also possible:&lt;br /&gt;
#Download the students&#039; assignments using the &amp;quot;Download all submissions&amp;quot; link from the same dropdown menu;&lt;br /&gt;
#Extract the folder offline and add your comments to the student&#039;s submissions.Keep the names the same.&lt;br /&gt;
#Select the students&#039; submissions and zip them into a new folder. Important: Don&#039;t just edit them inside their original folder and re-zip this; it will not work. The folder name does not matter as long as the feedback files have the same names as before.&lt;br /&gt;
#Upload this newly zipped folder.&lt;br /&gt;
#You will be presented with a confirmation screen displaying your feedback files. (If you zip files from a Mac,make sure to  remove the folder _MACOSX)&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|[[File:mutiplefeedbackzip.png|thumb|Choose from the dropdown menu]]&lt;br /&gt;
|[[File:multiplezip1.png|thumb|Confirmation screen displaying the feedback files to be uploaded]]&lt;br /&gt;
|[[File:multiplezip2.png|thumb|Screen confirming uploaded feedback]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
;Comment inline&lt;br /&gt;
:This usefully allows you to comment directly on an &#039;online text&#039; type submission.&lt;br /&gt;
&lt;br /&gt;
===Submission settings===&lt;br /&gt;
;Require students click submit button&lt;br /&gt;
:If this is set to &#039;No&#039; students can make changes to their submission at any time. (If you want to stop them changing work once you are ready to grade, click &#039;View/Grade all submissions&#039;; locate the student and From the Edit column, click the action icon and select &#039;Prevent submission changes.&#039;&lt;br /&gt;
:If set to &#039;Yes&#039;, students can upload draft versions of the assignment until such time as they are ready to submit. Clicking the submit button tells the teacher they have finished drafting and want the work to be graded. They can no longer edit it and must ask the teacher to revert to draft status if they need to change it again.To do that, click &#039;View/Grade all submissions; locate the student and from the Edit column, click the action icon and select &#039;Revert the submission to draft&#039;.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|[[File:revert to draft.jpg|thumb|Reverting to draft]]&lt;br /&gt;
|[[File:prevent submission changes.jpg|thumb|Prevent submission changes]]&lt;br /&gt;
|[[File:with selected.jpg|thumb|&amp;quot;With selected&amp;quot; to choose several students..]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
;Require that students accept the Submission statement&lt;br /&gt;
:An administrator can define a &amp;quot;Submission statement&amp;quot;, ie, a statement where students promise the work is their own and which they must agree to before submitting their work. This may be done via &#039;&#039;Site administration&amp;gt;Plugins&amp;gt;Activity modules&amp;gt;Assignment.&#039;&#039; (A default statement is also available.)  If the administrator has given teachers the option of using a submission statement or not, then it will be available in the assignment settings screen. If the administrator has forced the statement throughout the site, a teacher will not have this option in the settings but a student will see the statement when accessing their assignment.&lt;br /&gt;
&lt;br /&gt;
;Attempts reopened&lt;br /&gt;
: If &#039;require students to click submit&#039; is enabled, then students may only submit once. You can change this here to &#039;Manually&#039; and reopen it for students to resubmit, or you can change it to &#039;Automatically until pass&#039;, for the students to keep resubmitting until they get a pass grade.&lt;br /&gt;
;Maximum attempts&lt;br /&gt;
: Here you can decide how many attempts to allow  if students can resubmit. If a student has to keep trying until they get a pass grade, you might decide to limit the attempts even though they have not yet passed - or they might be trying for ever!&lt;br /&gt;
&lt;br /&gt;
===Groups submission settings===&lt;br /&gt;
These settings allow students to collaborate on a single assignment, eg, working in the same online area or uploading , editing and reuploading an MS Powerpoint in the common assignment area.&lt;br /&gt;
&lt;br /&gt;
When grading, the teacher may choose to give a common grade and feedback to all students in the group or to give individual grades and feedback to each member.&lt;br /&gt;
&lt;br /&gt;
;Require group to make submission&lt;br /&gt;
:Students  not in a group can still submit  assignments unless this is forced in &#039;&#039;Site administration &amp;gt; Plugins  &amp;gt; Assignment &amp;gt; Assignment settings&#039;&#039; .  Moodle will then display a message &#039;&#039;You&#039;re not a member of any group; please contact your teacher&#039;&#039; , and the student will not be able to submit the assignment.&lt;br /&gt;
;Require all group members submit&lt;br /&gt;
:This setting will only appear if the teacher has ticked the &amp;quot;Require students click submit button&amp;quot; earlier. The assignment will not be classed as &amp;quot;submitted&amp;quot; until all members of the group have made a contribution. When one student has submitted, the other members of the group will be able to see who still has to submit.&lt;br /&gt;
;Grouping for student groups&lt;br /&gt;
:If a particular grouping is selected here, then the gradebook will display any other groups and non-grouped students in the &amp;quot;default group&amp;quot;, while naming the group(s) that are in the chosen grouping. If &amp;quot;none&amp;quot; is selected, then the gradebook will display the names of all groups and put any non-grouped students in the &amp;quot;default group&amp;quot;. See this [https://moodle.org/mod/forum/discuss.php?d=216399#p942913 forum post on grouping for student groups] for examples of how this might be used.&lt;br /&gt;
&lt;br /&gt;
==Notifications==&lt;br /&gt;
Please note that if you are using group mode then course teachers need to be members of the group in order to receive submission and late submission notifications.&lt;br /&gt;
&lt;br /&gt;
==Grade==&lt;br /&gt;
*See [[Grade points]] and [[Advanced grading methods]] for more information on the settings here.&lt;br /&gt;
*Setting a passing grade  may be connected with [[Activity completion]] and [[Restrict access]] such that a student will not be able to access a follow up activity until they have passed this assignment.&lt;br /&gt;
&lt;br /&gt;
===Anonymous marking===&lt;br /&gt;
&lt;br /&gt;
Sometimes known as &#039;blind marking&#039;, anonymous marking prevents assessors from seeing students&#039; names on submissions. Instead, they will see randomly generated Participant numbers. (The student view of the assignment does not change.) This is also the case if student comments have been enabled. &lt;br /&gt;
&lt;br /&gt;
Because of the nature of anonymous marking, the students cannot see the final grade until all of the students&#039; names have been revealed. If you are grading an assignment using an advanced grading method such as a rubric, the rubric will also be hidden from students&#039; view until the names are revealed. To reveal student names after you are finished grading, look under &#039;&#039;Assignment settings &amp;gt; Reveal student identities&#039;&#039;. Feedback comments will appear whether or not student names are hidden or revealed. Note that this level of anonymity might not suit the privacy requirements of your organisation. See MDL-35390 for more details.&lt;br /&gt;
&lt;br /&gt;
Users with the capability [[Capabilities/mod/assign:viewblinddetails|mod/assign:viewblinddetails]] can view student identities and participant numbers (in Moodle 3.0.3 onwards).&lt;br /&gt;
&lt;br /&gt;
===Use marking (grading) workflow===&lt;br /&gt;
&lt;br /&gt;
Enable Marking Workflow if you need to:&lt;br /&gt;
*keep grades and feedback hidden until you are ready to release them (otherwise by default they display to each student as you save them).&lt;br /&gt;
*state where you are up to in your grading.&lt;br /&gt;
*coordinate multiple markers. &lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|[[File:26markingworkflow.png|thumb|Marking workflow state in the individual grading screen]]&lt;br /&gt;
|[[File:26quickgradingworkflow.png|thumb|Dropdown to select marking workflow state when quick grading]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
One advantage of using marking workflow is that the grades can be hidden from students until they are set to &#039;Released&#039;. The phases are:&lt;br /&gt;
&lt;br /&gt;
* Not marked (the marker has not yet started) &lt;br /&gt;
* In marking (the marker has started but not yet finished) &lt;br /&gt;
* Marking completed (the marker has finished but might need to go back for checking/corrections) &lt;br /&gt;
* In review (the marking is now with the teacher in charge for quality checking) &lt;br /&gt;
* Ready for release (the teacher in charge is satisfied with the marking but wait before giving students access to the marking) &lt;br /&gt;
* Released (the student can access the grades/feedback)&lt;br /&gt;
&lt;br /&gt;
====Example use cases====&lt;br /&gt;
&lt;br /&gt;
One marker, Marker, wants to release all grades at the same time &lt;br /&gt;
* Marker enables &amp;quot;Use marking workflow&amp;quot; &lt;br /&gt;
* Marker marks each submission and transitions the grading to &amp;quot;Marking completed&amp;quot; as each submission is graded. &lt;br /&gt;
* Marker then uses the batch operations to transition all grades to &amp;quot;Released&amp;quot; at the same time. &lt;br /&gt;
&lt;br /&gt;
Multiple markers, &lt;br /&gt;
* Marker enables &amp;quot;Use marking workflow&amp;quot; &lt;br /&gt;
* Marker marks each submission and transitions the grading to &amp;quot;Marking completed&amp;quot; as each submission is graded. &lt;br /&gt;
* Marker then uses the batch operations to transition all grades to &amp;quot;Released&amp;quot; at the same time.&lt;br /&gt;
&lt;br /&gt;
===Use marking allocation===&lt;br /&gt;
&lt;br /&gt;
If marking workflow (see above) is set to Yes, it is possible to enable marking allocation. This means that teachers can be selected to grade or review the submitted work of specific students. Colleagues can monitor progress through the displayed marking workflow states:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|[[File:26markingworkflowallocatedmarkers.png|thumb|Allocated markers on the grading screen]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Locally assigned roles==&lt;br /&gt;
&lt;br /&gt;
In &#039;&#039;Administration &amp;gt; Assignment administration &amp;gt; Locally assigned roles&#039;&#039; selected users can be given additional roles in the activity. See the Using Moodle [http://moodle.org/mod/forum/discuss.php?d=98208 Custom role for &#039;Course Monitor&#039;] forum discussion for an example.&lt;br /&gt;
&lt;br /&gt;
==Assignment capabilities==&lt;br /&gt;
&lt;br /&gt;
* [[Capabilities/mod/assign:exportownsubmission|Export own submission]]&lt;br /&gt;
* [[Capabilities/mod/assign:grade|Grade assignment]]&lt;br /&gt;
* [[Capabilities/mod/assign:submit|Submit assignment]]&lt;br /&gt;
* [[Capabilities/mod/assign:view|View assignment]]&lt;br /&gt;
&lt;br /&gt;
Role permissions for the activity can be changed in &#039;&#039;Course administration &amp;gt; Assignment administration &amp;gt; Permissions&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Site administration settings==&lt;br /&gt;
Administrators can access assignment configuration options by expanding &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Activity modules &amp;gt; Assignment&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Assignment settings===&lt;br /&gt;
Here, the administrator can set defaults for certain settings. They may also make certain settings &#039;Advanced&#039; which means a course teacher has to click the &#039;Show more&#039; link to see them, or they may &#039;lock&#039; settings which means a course teacher cannot alter that setting.&lt;br /&gt;
&lt;br /&gt;
If the site contains courses with over 100 participants, the number of assignments listed on the assignment grading page may be limited using the Maximum assignments per page (assign | maxperpage) setting. This removes &#039;All&#039; from the &#039;Assignments per page&#039; setting.&lt;br /&gt;
&lt;br /&gt;
;Submission statement&lt;br /&gt;
:Here is where the administrator can enter text into a box which will appear when students are about to submit an assignment:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|[[File:newsubmissionstatement.png|thumb|Admin view of Submission statement set up screen - click to enlarge]]&lt;br /&gt;
|[[File:submissionstatement1.png|thumb|Student view when about to submit - click to enlarge]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If it is left as the default &amp;quot;No&amp;quot;, then teachers will have the choice within their own assignments to force this or not.&lt;br /&gt;
&lt;br /&gt;
The submission statement may be shown in different languages. See [[Multi-language content filter]] for how to do this.&lt;br /&gt;
&lt;br /&gt;
===Submission plugins===&lt;br /&gt;
Here the administrator can enable, disable or change the order and default settings for any submission plugins.&lt;br /&gt;
;Submission comments&lt;br /&gt;
:Note that if submission comments are enabled here AND AND comments enabled globally in &#039;&#039;Site Administration &amp;gt; Advanced features&#039;&#039;) then students will be able to send a message to their teacher when submitting their assignment. If either of those settings is disabled, then the submission comments link will not appear.&lt;br /&gt;
&lt;br /&gt;
===Feedback plugins===&lt;br /&gt;
====Manage assignment feedback plugins====&lt;br /&gt;
Here the administrator can enable, disable or change the order and default settings for any feedback plugins.&lt;br /&gt;
;Annotate PDF&lt;br /&gt;
:This is the place to upload stamps for teachers to use when annotating student PDFs. &lt;br /&gt;
&lt;br /&gt;
=====Check Ghostscript=====&lt;br /&gt;
You can also check the ghostscript path from here:&lt;br /&gt;
{|&lt;br /&gt;
|[[File:Selection_116.png|thumb|Ghostscript not installed or incorrectly installed]]&lt;br /&gt;
|[[File:Selection_115.png|thumb|Ghostscript correctly installed]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If the default stamps are deleted by accident, they can be found in mod/assign/feedback/editpdf/pix and re-uploaded.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
Synergy Learning blog post: [http://www.synergy-learning.com/moodle-2-5-improvements-assignment-resubmissions/ Assignment resubmissions]&lt;br /&gt;
[[de:Aufgabe konfigurieren]]&lt;br /&gt;
[[fr:Ajouter/modifier un devoir]]&lt;br /&gt;
[[ja:課題を追加/編集する]]&lt;br /&gt;
[[es:Configuraciones de tarea]]&lt;br /&gt;
[[it:Impostazioni Compito]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=mod/assign/mod&amp;diff=132137</id>
		<title>mod/assign/mod</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=mod/assign/mod&amp;diff=132137"/>
		<updated>2018-11-02T17:02:53Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Assignment settings]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=mod/assign/mod&amp;diff=132136</id>
		<title>mod/assign/mod</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=mod/assign/mod&amp;diff=132136"/>
		<updated>2018-11-02T17:01:22Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Assignment settings]]&lt;br /&gt;
#REDIRECT [[IT:Impostazioni Compito]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125277</id>
		<title>Grade calculations</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125277"/>
		<updated>2016-09-11T21:13:12Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Calculation functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing grades}}&lt;br /&gt;
A grade calculation is a formula used to determine grades, based (optionally) on other grade items. Note that this is not the same as [[Calculated_question_type|Calculated question types]].&lt;br /&gt;
&lt;br /&gt;
Calculations for the gradebook follow the pattern of formulas/functions in popular spreadsheet programs. They start with an equal (=) sign, and use common mathematical operators and functions to produce a single numerical output. This output is then used as the computed value for the grade item you are editing.&lt;br /&gt;
&lt;br /&gt;
==Setting a grade calculation==&lt;br /&gt;
[[Image:neweditcalculation.png|thumb|Edit calculation setting]]&lt;br /&gt;
[[Image:newcalculationgrade.png|thumb|Example calculation]]&lt;br /&gt;
To set a grade calculation:&lt;br /&gt;
# Login as teacher or other user with permission to edit grades&lt;br /&gt;
# Click on Grades in the course administration block&lt;br /&gt;
# Click the &#039;Categories and items&#039; &lt;br /&gt;
# Click the &#039;Edit settings&#039; and then &#039;Edit calculation&#039;. Note: if you don&#039;t see this, then it must be enabled in &#039;&#039;Site administration&amp;gt;Grades&amp;gt;Report settings&amp;gt;Grader report&#039;&#039;&lt;br /&gt;
# Start with an equal sign (=)&lt;br /&gt;
# Type an expression using numbers, arithmetic opertors, mathematical functions and ID numbers; for example &amp;lt;nowiki&amp;gt;=average()&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Plug in your ID numbers (see below) enclosed in double square brackets, for example &amp;lt;nowiki&amp;gt;=[[item1]]+[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Separate each ID number with a comma, for example &amp;lt;nowiki&amp;gt;=average([[item1]], [[item2]])+[[item3]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Click the &amp;quot;Save Changes&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
==Assigning ID numbers==&lt;br /&gt;
&lt;br /&gt;
You can include the values of other grade items by using their ID number as references in your formulas. The ID number is surrounded by double square brackets, for example if you have a grade item with Quiz.3 as ID number, you will refer to this item as &amp;lt;nowiki&amp;gt;[[Quiz.3]]&amp;lt;/nowiki&amp;gt; in your calculation.&lt;br /&gt;
&lt;br /&gt;
Below the calculation field is a list of your course with its grade categories and grade items. Next to each item or category&#039;s total is displayed the ID number you can use in your calculation (already surrounded with double square brackets). However, since the ID number is optional, some items may not yet have one. These items without an ID number have instead a form field which lets you enter an ID number directly.&lt;br /&gt;
&lt;br /&gt;
As soon as you have assigned the ID numbers you need, you can click the &amp;quot;Add ID numbers&amp;quot; button, and the page will reload and show you the same list with the ID numbers you have just assigned. Now you can use them in your formulas.&lt;br /&gt;
&lt;br /&gt;
==Calculation functions==&lt;br /&gt;
&lt;br /&gt;
Every calculation must start with an equal sign (=). Following is an expression using operators and  functions supported by the system.&lt;br /&gt;
All common arithmetic operators are supported:&lt;br /&gt;
&lt;br /&gt;
* addition, using the plus (+) sign&lt;br /&gt;
* subtraction, using the minus (-) sign&lt;br /&gt;
* multiplication, using the asterisk (*) character&lt;br /&gt;
* division, using the slash (/) character&lt;br /&gt;
* exponentiation, using the caret (^) character&lt;br /&gt;
&lt;br /&gt;
with their usual precedence rules: exponentiations are evaluated first, then multiplications and divisions are performed, finally additions and subtraction are carried out; so, the expression =1+2-3*4/5^6 gives almost 3 (2,999232). Precedences can be forced using parentheses, as in the expression =((((1+2)-3)*4)/5)^6 which yields 0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: Moodle does not allow calculations involving no ID numbers.&lt;br /&gt;
&lt;br /&gt;
Functions can also appear in expressions, using the comma (,) character to separate their arguments listed within function (round) brackets. (The separator character could be a semicolon (;) in other [[Language|languages]], see below).&lt;br /&gt;
&lt;br /&gt;
* average&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the average of the values in a list of arguments&lt;br /&gt;
* max&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the maximum value in a list of arguments&lt;br /&gt;
* min&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...):&amp;lt;/nowiki&amp;gt; Returns the minimum value in a list of arguments&lt;br /&gt;
* mod(dividend, divisor): Calculates the remainder of a division&lt;br /&gt;
* pi(): Returns the value of the number Pi&lt;br /&gt;
* power(base, power): Raises a number to the power of another&lt;br /&gt;
* round(number, count): Rounds number to count decimal digits&lt;br /&gt;
* floor(number): Maps a real number to the largest previous integer&lt;br /&gt;
* ceil(number): Maps a real number to the smallest following integer&lt;br /&gt;
* sum(&amp;lt;nowiki&amp;gt;[[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the sum of all arguments&lt;br /&gt;
&lt;br /&gt;
Many other mathematical functions are also supported:&lt;br /&gt;
&lt;br /&gt;
* sin()&lt;br /&gt;
* sinh()&lt;br /&gt;
* arcsin()&lt;br /&gt;
* asin()&lt;br /&gt;
* arcsinh()&lt;br /&gt;
* asinh()&lt;br /&gt;
* cos()&lt;br /&gt;
* cosh()&lt;br /&gt;
* arccos()&lt;br /&gt;
* acos()&lt;br /&gt;
* arccosh()&lt;br /&gt;
* acosh()&lt;br /&gt;
* tan()&lt;br /&gt;
* tanh()&lt;br /&gt;
* arctan()&lt;br /&gt;
* atan()&lt;br /&gt;
* arctanh()&lt;br /&gt;
* atanh()&lt;br /&gt;
* sqrt()&lt;br /&gt;
* abs()&lt;br /&gt;
* ln()&lt;br /&gt;
* log()&lt;br /&gt;
* exp()&lt;br /&gt;
&lt;br /&gt;
==Example calculations==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]])&amp;lt;/nowiki&amp;gt; - Returns the maximum value of Quiz.1, Quiz.4 and Assignment.1&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=average(max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]), min([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]))&amp;lt;/nowiki&amp;gt; - Returns the average of the maximum and the minimum values among Quiz.1, Quiz.4 and Assignment.1 (functions can be nested)&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=sum([[1]]*0.3, [[2]]*0.6, [[3]]*2)&amp;lt;/nowiki&amp;gt; - Returns a weighted grade calculations where item 1 is weighted 30%, item 2 is weighted at 60% and item 3 is weighted at 200%&lt;br /&gt;
&lt;br /&gt;
==Calculations when user language is not English==&lt;br /&gt;
&lt;br /&gt;
Calculation formulas use decimal and list separators as defined in the [https://docs.moodle.org/dev/Translation_langconfig langconfig.php] file of each [[Language packs|language pack]].&lt;br /&gt;
&lt;br /&gt;
The [[Decimal separator|decimal separator]] (a symbol used to mark the boundary between the integral and the fractional parts of a decimal number) is a point (.) in English. In other languages it may be a comma (,).&lt;br /&gt;
&lt;br /&gt;
The list separator (a symbol used to separate the items within a list, such as the arguments of a function) is a comma (,) in English. In other languages it may be a semicolon (;).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://www.youtube.com/watch?v=WKUGyzAXcyA Video on how to set up calculations in the gradebook (basic)]&lt;br /&gt;
*[http://www.youtube.com/watch?v=VBEj8mmu8lM Video on how to set up calculations in the gradebook (advanced)]&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/edit/tree/calculation]]&lt;br /&gt;
[[es:Cálculos de calificación]]&lt;br /&gt;
[[fr:Calcul de note]]&lt;br /&gt;
[[ru:Формулы и вычисления оценок]]&lt;br /&gt;
[[ja:評定計算]]&lt;br /&gt;
[[de:Bewertungen berechnen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125276</id>
		<title>Grade calculations</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125276"/>
		<updated>2016-09-11T21:11:16Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Calculation functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing grades}}&lt;br /&gt;
A grade calculation is a formula used to determine grades, based (optionally) on other grade items. Note that this is not the same as [[Calculated_question_type|Calculated question types]].&lt;br /&gt;
&lt;br /&gt;
Calculations for the gradebook follow the pattern of formulas/functions in popular spreadsheet programs. They start with an equal (=) sign, and use common mathematical operators and functions to produce a single numerical output. This output is then used as the computed value for the grade item you are editing.&lt;br /&gt;
&lt;br /&gt;
==Setting a grade calculation==&lt;br /&gt;
[[Image:neweditcalculation.png|thumb|Edit calculation setting]]&lt;br /&gt;
[[Image:newcalculationgrade.png|thumb|Example calculation]]&lt;br /&gt;
To set a grade calculation:&lt;br /&gt;
# Login as teacher or other user with permission to edit grades&lt;br /&gt;
# Click on Grades in the course administration block&lt;br /&gt;
# Click the &#039;Categories and items&#039; &lt;br /&gt;
# Click the &#039;Edit settings&#039; and then &#039;Edit calculation&#039;. Note: if you don&#039;t see this, then it must be enabled in &#039;&#039;Site administration&amp;gt;Grades&amp;gt;Report settings&amp;gt;Grader report&#039;&#039;&lt;br /&gt;
# Start with an equal sign (=)&lt;br /&gt;
# Type an expression using numbers, arithmetic opertors, mathematical functions and ID numbers; for example &amp;lt;nowiki&amp;gt;=average()&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Plug in your ID numbers (see below) enclosed in double square brackets, for example &amp;lt;nowiki&amp;gt;=[[item1]]+[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Separate each ID number with a comma, for example &amp;lt;nowiki&amp;gt;=average([[item1]], [[item2]])+[[item3]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Click the &amp;quot;Save Changes&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
==Assigning ID numbers==&lt;br /&gt;
&lt;br /&gt;
You can include the values of other grade items by using their ID number as references in your formulas. The ID number is surrounded by double square brackets, for example if you have a grade item with Quiz.3 as ID number, you will refer to this item as &amp;lt;nowiki&amp;gt;[[Quiz.3]]&amp;lt;/nowiki&amp;gt; in your calculation.&lt;br /&gt;
&lt;br /&gt;
Below the calculation field is a list of your course with its grade categories and grade items. Next to each item or category&#039;s total is displayed the ID number you can use in your calculation (already surrounded with double square brackets). However, since the ID number is optional, some items may not yet have one. These items without an ID number have instead a form field which lets you enter an ID number directly.&lt;br /&gt;
&lt;br /&gt;
As soon as you have assigned the ID numbers you need, you can click the &amp;quot;Add ID numbers&amp;quot; button, and the page will reload and show you the same list with the ID numbers you have just assigned. Now you can use them in your formulas.&lt;br /&gt;
&lt;br /&gt;
==Calculation functions==&lt;br /&gt;
&lt;br /&gt;
Every calculation must start with an equal sign (=). Following is an expression using operators and  functions supported by the system.&lt;br /&gt;
All common arithmetic operators are supported:&lt;br /&gt;
&lt;br /&gt;
* addition, using the plus (+) sign&lt;br /&gt;
* subtraction, using the minus (-) sign&lt;br /&gt;
* multiplication, using the asterisk (*) character&lt;br /&gt;
* division, using the slash (/) character&lt;br /&gt;
* exponentiation, using the caret (^) character&lt;br /&gt;
&lt;br /&gt;
with their usual precedence rules: exponentiations are evaluated first, then multiplications and divisions are performed, finally additions and subtraction are carried out; so, the expression =1+2-3*4/5^6 gives almost 3 (2,999232). Precedences can be forced using parentheses, as in the expression =((((1+2)-3)*4)/5)^6 which yields 0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: Moodle does not allow calculations involving only numerical constants and no item id.&lt;br /&gt;
&lt;br /&gt;
Functions can also appear in expressions, using the comma (,) character to separate their arguments listed within function (round) brackets. (The separator character could be a semicolon (;) in other [[Language|languages]], see below).&lt;br /&gt;
&lt;br /&gt;
* average&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the average of the values in a list of arguments&lt;br /&gt;
* max&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the maximum value in a list of arguments&lt;br /&gt;
* min&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...):&amp;lt;/nowiki&amp;gt; Returns the minimum value in a list of arguments&lt;br /&gt;
* mod(dividend, divisor): Calculates the remainder of a division&lt;br /&gt;
* pi(): Returns the value of the number Pi&lt;br /&gt;
* power(base, power): Raises a number to the power of another&lt;br /&gt;
* round(number, count): Rounds number to count decimal digits&lt;br /&gt;
* floor(number): Maps a real number to the largest previous integer&lt;br /&gt;
* ceil(number): Maps a real number to the smallest following integer&lt;br /&gt;
* sum(&amp;lt;nowiki&amp;gt;[[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the sum of all arguments&lt;br /&gt;
&lt;br /&gt;
Many other mathematical functions are also supported:&lt;br /&gt;
&lt;br /&gt;
* sin()&lt;br /&gt;
* sinh()&lt;br /&gt;
* arcsin()&lt;br /&gt;
* asin()&lt;br /&gt;
* arcsinh()&lt;br /&gt;
* asinh()&lt;br /&gt;
* cos()&lt;br /&gt;
* cosh()&lt;br /&gt;
* arccos()&lt;br /&gt;
* acos()&lt;br /&gt;
* arccosh()&lt;br /&gt;
* acosh()&lt;br /&gt;
* tan()&lt;br /&gt;
* tanh()&lt;br /&gt;
* arctan()&lt;br /&gt;
* atan()&lt;br /&gt;
* arctanh()&lt;br /&gt;
* atanh()&lt;br /&gt;
* sqrt()&lt;br /&gt;
* abs()&lt;br /&gt;
* ln()&lt;br /&gt;
* log()&lt;br /&gt;
* exp()&lt;br /&gt;
&lt;br /&gt;
==Example calculations==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]])&amp;lt;/nowiki&amp;gt; - Returns the maximum value of Quiz.1, Quiz.4 and Assignment.1&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=average(max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]), min([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]))&amp;lt;/nowiki&amp;gt; - Returns the average of the maximum and the minimum values among Quiz.1, Quiz.4 and Assignment.1 (functions can be nested)&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=sum([[1]]*0.3, [[2]]*0.6, [[3]]*2)&amp;lt;/nowiki&amp;gt; - Returns a weighted grade calculations where item 1 is weighted 30%, item 2 is weighted at 60% and item 3 is weighted at 200%&lt;br /&gt;
&lt;br /&gt;
==Calculations when user language is not English==&lt;br /&gt;
&lt;br /&gt;
Calculation formulas use decimal and list separators as defined in the [https://docs.moodle.org/dev/Translation_langconfig langconfig.php] file of each [[Language packs|language pack]].&lt;br /&gt;
&lt;br /&gt;
The [[Decimal separator|decimal separator]] (a symbol used to mark the boundary between the integral and the fractional parts of a decimal number) is a point (.) in English. In other languages it may be a comma (,).&lt;br /&gt;
&lt;br /&gt;
The list separator (a symbol used to separate the items within a list, such as the arguments of a function) is a comma (,) in English. In other languages it may be a semicolon (;).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://www.youtube.com/watch?v=WKUGyzAXcyA Video on how to set up calculations in the gradebook (basic)]&lt;br /&gt;
*[http://www.youtube.com/watch?v=VBEj8mmu8lM Video on how to set up calculations in the gradebook (advanced)]&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/edit/tree/calculation]]&lt;br /&gt;
[[es:Cálculos de calificación]]&lt;br /&gt;
[[fr:Calcul de note]]&lt;br /&gt;
[[ru:Формулы и вычисления оценок]]&lt;br /&gt;
[[ja:評定計算]]&lt;br /&gt;
[[de:Bewertungen berechnen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=125275</id>
		<title>Grade aggregation</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=125275"/>
		<updated>2016-09-11T20:57:02Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}&lt;br /&gt;
The aggregation dropdown menu lets you choose the aggregation strategy that will be used to calculate each participant&#039;s overall grade for a [[Grade categories|grade category]]. The different options are explained below.&lt;br /&gt;
&lt;br /&gt;
== Aggregation strategy ==&lt;br /&gt;
&lt;br /&gt;
The grades are first converted to percentage values (interval from 0 to 1), then aggregated using one of the strategies below and finally converted to the associated category item&#039;s range (between Minimum grade and Maximum grade). In what follows all Minimum grades are assumed to be 0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important&#039;&#039;&#039;: An empty grade is simply a missing gradebook entry, and could mean different things. For example, it could be a participant who hasn&#039;t yet submitted an assignment, an assignment submission not yet graded by the teacher, or a grade that has been manually deleted by the gradebook administrator. Caution in interpreting these &amp;quot;empty grades&amp;quot; is thus advised.&lt;br /&gt;
&lt;br /&gt;
== Mean of grades ==&lt;br /&gt;
The sum of all grades divided by the total number of grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    (0.7 + 0.25 + 1.0)/3 = 0.65 --&amp;gt; 65/100&lt;br /&gt;
&lt;br /&gt;
== Weighted mean ==&lt;br /&gt;
Each grade item can be given a weight to influence its importance in the overall mean. In simple terms, the category &amp;quot;total&amp;quot; will be equal to the sum of the scores in each grade item, these scores being multiplied by the grade items&#039; weights, and that sum being finally divided by the sum of the weights, as shown in this example.&lt;br /&gt;
    A1 70/100 weight 10, A2 20/80 weight 5, A3 10/10 weight 3, category max 100:&lt;br /&gt;
    (0.7*10 + 0.25*5 + 1.0*3)/(10 + 5 + 3) = 0.625 --&amp;gt; 62.5/100&lt;br /&gt;
&lt;br /&gt;
== Simple weighted mean ==&lt;br /&gt;
The difference from Weighted mean is that the weight of each item is simply the difference between its Maximum and Minimum grade.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    (0.7*100 + 0.25*80 + 1.0*10)/(100 + 80 + 10) = 0.526 --&amp;gt; 52.6/100&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Simple weighted mean&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. For example, if A3 is marked as extra credit in the above calculation:&lt;br /&gt;
    A1 70/100, A2 20/80, A3 (extra credit) 10/10, category max 100:&lt;br /&gt;
    (0.7*100 + 0.25*80 + 1.0*10)/(100 + 80) = 0.556 --&amp;gt; 55.6/100&lt;br /&gt;
&lt;br /&gt;
== Mean of grades (with extra credits) ==&lt;br /&gt;
Arithmetic mean with a twist. An old, now unsupported, aggregation strategy provided here only for backward compatibility with old activities.&lt;br /&gt;
&lt;br /&gt;
A value greater than 0 treats a grade item&#039;s grades as extra credit during aggregation. The number is a factor by which the grade value will be multiplied before it is added to the sum of all grades, but the item itself will not be counted in the division. For example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is set to 2&lt;br /&gt;
* Item 2 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0.0000&lt;br /&gt;
* Item 3 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0.0000&lt;br /&gt;
* All 3 items belong to Category 1, which has &amp;quot;Mean of grades (with extra credits)&amp;quot; as its aggregation strategy&lt;br /&gt;
* A student gets graded 20 on Item 1, 40 on Item 2 and 70 on Item 3&lt;br /&gt;
* The student&#039;s total for Category 1 will be 95/100 since 20*2 + (40 + 70)/2 = 95&lt;br /&gt;
&lt;br /&gt;
== Median of grades ==&lt;br /&gt;
The middle value (or the mean of the two middle values) when percentages (the tatios between grades and their maximum values) are arranged in order of value. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean).&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    median(0.7; 0.25; 1.0) --&amp;gt; 0.70 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Smallest grade ==&lt;br /&gt;
The result is the smallest grade after normalisation. It is usually used in combination with Aggregate only non-empty grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    min(0.7; 0.25; 1.0) = 0.25 --&amp;gt; 25/100&lt;br /&gt;
&lt;br /&gt;
== Highest grade ==&lt;br /&gt;
The result is the highest grade after normalisation.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    max(0.7; 0.25; 1.0) = 1.0 --&amp;gt; 100/100&lt;br /&gt;
&lt;br /&gt;
== Mode of grades ==&lt;br /&gt;
The mode is the normalised grade that occurs the most frequently. It is often used for non-numerical grades. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean). However it loses its meaning once there is more than one most frequently occurring grade (only one is kept), or when all the grades are different from each other.&lt;br /&gt;
    A1 70/100, A2 35/50, A3 20/80, A4 10/10, A5 7/10 category max 100:&lt;br /&gt;
    mode(0.7; 0.7; 0.25; 1.0; 0.7) = 0.7 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Natural ==&lt;br /&gt;
&lt;br /&gt;
This is the  sum of all grade values, scaled by weight. The Maximum grade of the category is the sum of the maximums of all aggregated items. &lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, without forcing weights:&lt;br /&gt;
    (70 + 20 + 10)/(100 + 80 + 10) --&amp;gt; 100/190&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: Scale grades are ignored.&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Natural&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. Following is an example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100&lt;br /&gt;
* Item 2 is graded 0-75&lt;br /&gt;
* Item 1 has the &amp;quot;Act as extra credit&amp;quot; checkbox ticked, Item 2 doesn&#039;t.&lt;br /&gt;
* Both items belong to Category 1, which has &amp;quot;Natural&amp;quot; as its aggregation strategy&lt;br /&gt;
* Category 1&#039;s total will be graded 0-75&lt;br /&gt;
* A student gets graded 20 on Item 1 and 70 on Item 2&lt;br /&gt;
* The student&#039;s total for Category 1 will be 75/75 (20+70 = 90 but Item 1 only acts as extra credit, so it brings the total to its maximum)&lt;br /&gt;
&lt;br /&gt;
Natural aggregation functions as a sum of grades when the weight boxes are left alone. In this situation, the numbers in the weight boxes are informational and represent the effective weights in the sum. Natural aggregation can also function as a mean of grades, when the weight boxes are checked and then adjusted so that the weights are equal across a set of items in a category, or across a set of categories. Items can still be marked as &amp;quot;Extra credit&amp;quot; while using the weights to calculate a mean, and contribute to the total for the category.&lt;br /&gt;
&lt;br /&gt;
==Available aggregation types==&lt;br /&gt;
[[Image:availableaggregationtypes1.png|thumb|Available aggregation types setting]]&lt;br /&gt;
The default is &#039;Natural&#039; but the administrator can specify other types from  &#039;&#039; Site administration &amp;gt;administration &amp;gt; Grades &amp;gt; [[Grade category settings]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that reducing the number of aggregation types simply results in disabled aggregation types not appearing in the aggregation type dropdown menu. All existing grade category calculations remain the same, regardless of whether the aggregation type is later disabled by an administrator.&lt;br /&gt;
&lt;br /&gt;
[[ca:Agregació de les categories]]&lt;br /&gt;
[[fr:Tendance centrale de la catégorie]]&lt;br /&gt;
[[es:Agregación de categoría]]&lt;br /&gt;
[[de:Bewertungen zusammenfassen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=125266</id>
		<title>Grade aggregation</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=125266"/>
		<updated>2016-09-10T14:30:37Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Mean of grades (with extra credits) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}&lt;br /&gt;
The aggregation dropdown menu lets you choose the aggregation strategy that will be used to calculate each participant&#039;s overall grade for a [[Grade categories|grade category]]. The different options are explained below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important&#039;&#039;&#039;: An empty grade is simply a missing gradebook entry, and could mean different things. For example, it could be a participant who hasn&#039;t yet submitted an assignment, an assignment submission not yet graded by the teacher, or a grade that has been manually deleted by the gradebook administrator. Caution in interpreting these &amp;quot;empty grades&amp;quot; is thus advised.&lt;br /&gt;
&lt;br /&gt;
== Aggregation strategy ==&lt;br /&gt;
&lt;br /&gt;
The grades are first converted to percentage values (interval from 0 to 1), then aggregated using one of the strategies below and finally converted to the associated category item&#039;s range (between Minimum grade and Maximum grade). In what follows the category&#039;s Minimum grade is assumed to be 0.&lt;br /&gt;
&lt;br /&gt;
== Mean of grades ==&lt;br /&gt;
The sum of all grades divided by the total number of grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    (0.7 + 0.25 + 1.0)/3 = 0.65 --&amp;gt; 65/100&lt;br /&gt;
&lt;br /&gt;
== Weighted mean ==&lt;br /&gt;
Each grade item can be given a weight to influence its importance in the overall mean. In simple terms, the category &amp;quot;total&amp;quot; will be equal to the sum of the scores in each grade item, these scores being multiplied by the grade items&#039; weights, and that sum being finally divided by the sum of the weights, as shown in this example.&lt;br /&gt;
    A1 70/100 weight 10, A2 20/80 weight 5, A3 10/10 weight 3, category max 100:&lt;br /&gt;
    (0.7*10 + 0.25*5 + 1.0*3)/(10 + 5 + 3) = 0.625 --&amp;gt; 62.5/100&lt;br /&gt;
&lt;br /&gt;
== Simple weighted mean ==&lt;br /&gt;
The difference from Weighted mean is that the weight of each item is simply the difference between its Maximum and Minimum grade.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    (0.7*100 + 0.25*80 + 1.0*10)/(100 + 80 + 10) = 0.526 --&amp;gt; 52.6/100&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Simple weighted mean&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. For example, if A3 is marked as extra credit in the above calculation:&lt;br /&gt;
    A1 70/100, A2 20/80, A3 (extra credit) 10/10, category max 100:&lt;br /&gt;
    (0.7*100 + 0.25*80 + 1.0*10)/(100 + 80) = 0.556 --&amp;gt; 55.6/100&lt;br /&gt;
&lt;br /&gt;
== Mean of grades (with extra credits) ==&lt;br /&gt;
Arithmetic mean with a twist. An old, now unsupported, aggregation strategy provided here only for backward compatibility with old activities.&lt;br /&gt;
&lt;br /&gt;
A value greater than 0 treats a grade item&#039;s grades as extra credit during aggregation. The number is a factor by which the grade value will be multiplied before it is added to the sum of all grades, but the item itself will not be counted in the division. For example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is set to 2&lt;br /&gt;
* Item 2 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0.0000&lt;br /&gt;
* Item 3 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0.0000&lt;br /&gt;
* All 3 items belong to Category 1, which has &amp;quot;Mean of grades (with extra credits)&amp;quot; as its aggregation strategy&lt;br /&gt;
* A student gets graded 20 on Item 1, 40 on Item 2 and 70 on Item 3&lt;br /&gt;
* The student&#039;s total for Category 1 will be 95/100 since 20*2 + (40 + 70)/2 = 95&lt;br /&gt;
&lt;br /&gt;
== Median of grades ==&lt;br /&gt;
The middle value (or the mean of the two middle values) when percentages (the tatios between grades and their maximum values) are arranged in order of value. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean).&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    median(0.7; 0.25; 1.0) --&amp;gt; 0.70 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Smallest grade ==&lt;br /&gt;
The result is the smallest grade after normalisation. It is usually used in combination with Aggregate only non-empty grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    min(0.7; 0.25; 1.0) = 0.25 --&amp;gt; 25/100&lt;br /&gt;
&lt;br /&gt;
== Highest grade ==&lt;br /&gt;
The result is the highest grade after normalisation.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    max(0.7; 0.25; 1.0) = 1.0 --&amp;gt; 100/100&lt;br /&gt;
&lt;br /&gt;
== Mode of grades ==&lt;br /&gt;
The mode is the normalised grade that occurs the most frequently. It is often used for non-numerical grades. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean). However it loses its meaning once there is more than one most frequently occurring grade (only one is kept), or when all the grades are different from each other.&lt;br /&gt;
    A1 70/100, A2 35/50, A3 20/80, A4 10/10, A5 7/10 category max 100:&lt;br /&gt;
    mode(0.7; 0.7; 0.25; 1.0; 0.7) = 0.7 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Natural ==&lt;br /&gt;
&lt;br /&gt;
This is the  sum of all grade values, scaled by weight. The Maximum grade of the category is the sum of the maximums of all aggregated items. &lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, without forcing weights:&lt;br /&gt;
    (70 + 20 + 10)/(100 + 80 + 10) --&amp;gt; 100/190&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: Scale grades are ignored.&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Natural&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. Following is an example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100&lt;br /&gt;
* Item 2 is graded 0-75&lt;br /&gt;
* Item 1 has the &amp;quot;Act as extra credit&amp;quot; checkbox ticked, Item 2 doesn&#039;t.&lt;br /&gt;
* Both items belong to Category 1, which has &amp;quot;Natural&amp;quot; as its aggregation strategy&lt;br /&gt;
* Category 1&#039;s total will be graded 0-75&lt;br /&gt;
* A student gets graded 20 on Item 1 and 70 on Item 2&lt;br /&gt;
* The student&#039;s total for Category 1 will be 75/75 (20+70 = 90 but Item 1 only acts as extra credit, so it brings the total to its maximum)&lt;br /&gt;
&lt;br /&gt;
Natural aggregation functions as a sum of grades when the weight boxes are left alone. In this situation, the numbers in the weight boxes are informational and represent the effective weights in the sum. Natural aggregation can also function as a mean of grades, when the weight boxes are checked and then adjusted so that the weights are equal across a set of items in a category, or across a set of categories. Items can still be marked as &amp;quot;Extra credit&amp;quot; while using the weights to calculate a mean, and contribute to the total for the category.&lt;br /&gt;
&lt;br /&gt;
==Available aggregation types==&lt;br /&gt;
[[Image:availableaggregationtypes1.png|thumb|Available aggregation types setting]]&lt;br /&gt;
The default is &#039;Natural&#039; but the administrator can specify other types from  &#039;&#039; Site administration &amp;gt;administration &amp;gt; Grades &amp;gt; [[Grade category settings]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that reducing the number of aggregation types simply results in disabled aggregation types not appearing in the aggregation type dropdown menu. All existing grade category calculations remain the same, regardless of whether the aggregation type is later disabled by an administrator.&lt;br /&gt;
&lt;br /&gt;
[[ca:Agregació de les categories]]&lt;br /&gt;
[[fr:Tendance centrale de la catégorie]]&lt;br /&gt;
[[es:Agregación de categoría]]&lt;br /&gt;
[[de:Bewertungen zusammenfassen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=125265</id>
		<title>Grade aggregation</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=125265"/>
		<updated>2016-09-10T13:33:34Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Aggregation strategies */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}&lt;br /&gt;
The aggregation dropdown menu lets you choose the aggregation strategy that will be used to calculate each participant&#039;s overall grade for a [[Grade categories|grade category]]. The different options are explained below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important&#039;&#039;&#039;: An empty grade is simply a missing gradebook entry, and could mean different things. For example, it could be a participant who hasn&#039;t yet submitted an assignment, an assignment submission not yet graded by the teacher, or a grade that has been manually deleted by the gradebook administrator. Caution in interpreting these &amp;quot;empty grades&amp;quot; is thus advised.&lt;br /&gt;
&lt;br /&gt;
== Aggregation strategy ==&lt;br /&gt;
&lt;br /&gt;
The grades are first converted to percentage values (interval from 0 to 1), then aggregated using one of the strategies below and finally converted to the associated category item&#039;s range (between Minimum grade and Maximum grade). In what follows the category&#039;s Minimum grade is assumed to be 0.&lt;br /&gt;
&lt;br /&gt;
== Mean of grades ==&lt;br /&gt;
The sum of all grades divided by the total number of grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    (0.7 + 0.25 + 1.0)/3 = 0.65 --&amp;gt; 65/100&lt;br /&gt;
&lt;br /&gt;
== Weighted mean ==&lt;br /&gt;
Each grade item can be given a weight to influence its importance in the overall mean. In simple terms, the category &amp;quot;total&amp;quot; will be equal to the sum of the scores in each grade item, these scores being multiplied by the grade items&#039; weights, and that sum being finally divided by the sum of the weights, as shown in this example.&lt;br /&gt;
    A1 70/100 weight 10, A2 20/80 weight 5, A3 10/10 weight 3, category max 100:&lt;br /&gt;
    (0.7*10 + 0.25*5 + 1.0*3)/(10 + 5 + 3) = 0.625 --&amp;gt; 62.5/100&lt;br /&gt;
&lt;br /&gt;
== Simple weighted mean ==&lt;br /&gt;
The difference from Weighted mean is that the weight of each item is simply the difference between its Maximum and Minimum grade.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    (0.7*100 + 0.25*80 + 1.0*10)/(100 + 80 + 10) = 0.526 --&amp;gt; 52.6/100&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Simple weighted mean&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. For example, if A3 is marked as extra credit in the above calculation:&lt;br /&gt;
    A1 70/100, A2 20/80, A3 (extra credit) 10/10, category max 100:&lt;br /&gt;
    (0.7*100 + 0.25*80 + 1.0*10)/(100 + 80) = 0.556 --&amp;gt; 55.6/100&lt;br /&gt;
&lt;br /&gt;
== Mean of grades (with extra credits) ==&lt;br /&gt;
Arithmetic mean with a twist. An old, now unsupported aggregation strategy provided here only for backward compatibility with old activities.&lt;br /&gt;
&lt;br /&gt;
A value greater than 0 treats a grade item&#039;s grades as extra credit during aggregation. The number is a factor by which the grade value will be multiplied before it is added to the sum of all grades, but the item itself will not be counted in the division. For example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is set to 2&lt;br /&gt;
* Item 2 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0.0000&lt;br /&gt;
* Item 3 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0.0000&lt;br /&gt;
* All 3 items belong to Category 1, which has &amp;quot;Mean of grades (with extra credits)&amp;quot; as its aggregation strategy&lt;br /&gt;
* A student gets graded 20 on Item 1, 40 on Item 2 and 70 on Item 3&lt;br /&gt;
* The student&#039;s total for Category 1 will be 95/100 since 20*2 + (40 + 70)/2 = 95&lt;br /&gt;
&lt;br /&gt;
== Median of grades ==&lt;br /&gt;
The middle value (or the mean of the two middle values) when percentages (the tatios between grades and their maximum values) are arranged in order of value. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean).&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    median(0.7; 0.25; 1.0) --&amp;gt; 0.70 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Smallest grade ==&lt;br /&gt;
The result is the smallest grade after normalisation. It is usually used in combination with Aggregate only non-empty grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    min(0.7; 0.25; 1.0) = 0.25 --&amp;gt; 25/100&lt;br /&gt;
&lt;br /&gt;
== Highest grade ==&lt;br /&gt;
The result is the highest grade after normalisation.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    max(0.7; 0.25; 1.0) = 1.0 --&amp;gt; 100/100&lt;br /&gt;
&lt;br /&gt;
== Mode of grades ==&lt;br /&gt;
The mode is the normalised grade that occurs the most frequently. It is often used for non-numerical grades. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean). However it loses its meaning once there is more than one most frequently occurring grade (only one is kept), or when all the grades are different from each other.&lt;br /&gt;
    A1 70/100, A2 35/50, A3 20/80, A4 10/10, A5 7/10 category max 100:&lt;br /&gt;
    mode(0.7; 0.7; 0.25; 1.0; 0.7) = 0.7 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Natural ==&lt;br /&gt;
&lt;br /&gt;
This is the  sum of all grade values, scaled by weight. The Maximum grade of the category is the sum of the maximums of all aggregated items. &lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, without forcing weights:&lt;br /&gt;
    (70 + 20 + 10)/(100 + 80 + 10) --&amp;gt; 100/190&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: Scale grades are ignored.&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Natural&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. Following is an example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100&lt;br /&gt;
* Item 2 is graded 0-75&lt;br /&gt;
* Item 1 has the &amp;quot;Act as extra credit&amp;quot; checkbox ticked, Item 2 doesn&#039;t.&lt;br /&gt;
* Both items belong to Category 1, which has &amp;quot;Natural&amp;quot; as its aggregation strategy&lt;br /&gt;
* Category 1&#039;s total will be graded 0-75&lt;br /&gt;
* A student gets graded 20 on Item 1 and 70 on Item 2&lt;br /&gt;
* The student&#039;s total for Category 1 will be 75/75 (20+70 = 90 but Item 1 only acts as extra credit, so it brings the total to its maximum)&lt;br /&gt;
&lt;br /&gt;
Natural aggregation functions as a sum of grades when the weight boxes are left alone. In this situation, the numbers in the weight boxes are informational and represent the effective weights in the sum. Natural aggregation can also function as a mean of grades, when the weight boxes are checked and then adjusted so that the weights are equal across a set of items in a category, or across a set of categories. Items can still be marked as &amp;quot;Extra credit&amp;quot; while using the weights to calculate a mean, and contribute to the total for the category.&lt;br /&gt;
&lt;br /&gt;
==Available aggregation types==&lt;br /&gt;
[[Image:availableaggregationtypes1.png|thumb|Available aggregation types setting]]&lt;br /&gt;
The default is &#039;Natural&#039; but the administrator can specify other types from  &#039;&#039; Site administration &amp;gt;administration &amp;gt; Grades &amp;gt; [[Grade category settings]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that reducing the number of aggregation types simply results in disabled aggregation types not appearing in the aggregation type dropdown menu. All existing grade category calculations remain the same, regardless of whether the aggregation type is later disabled by an administrator.&lt;br /&gt;
&lt;br /&gt;
[[ca:Agregació de les categories]]&lt;br /&gt;
[[fr:Tendance centrale de la catégorie]]&lt;br /&gt;
[[es:Agregación de categoría]]&lt;br /&gt;
[[de:Bewertungen zusammenfassen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=125264</id>
		<title>Grade aggregation</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=125264"/>
		<updated>2016-09-10T13:32:51Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: I made grade calculations more clear.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}&lt;br /&gt;
The aggregation dropdown menu lets you choose the aggregation strategy that will be used to calculate each participant&#039;s overall grade for a [[Grade categories|grade category]]. The different options are explained below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important&#039;&#039;&#039;: An empty grade is simply a missing gradebook entry, and could mean different things. For example, it could be a participant who hasn&#039;t yet submitted an assignment, an assignment submission not yet graded by the teacher, or a grade that has been manually deleted by the gradebook administrator. Caution in interpreting these &amp;quot;empty grades&amp;quot; is thus advised.&lt;br /&gt;
&lt;br /&gt;
== Aggregation strategies ==&lt;br /&gt;
&lt;br /&gt;
The grades are first converted to percentage values (interval from 0 to 1), then aggregated using one of the strategies below and finally converted to the associated category item&#039;s range (between Minimum grade and Maximum grade). In what follows the category&#039;s Minimum grade is assumed to be 0.&lt;br /&gt;
&lt;br /&gt;
== Mean of grades ==&lt;br /&gt;
The sum of all grades divided by the total number of grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    (0.7 + 0.25 + 1.0)/3 = 0.65 --&amp;gt; 65/100&lt;br /&gt;
&lt;br /&gt;
== Weighted mean ==&lt;br /&gt;
Each grade item can be given a weight to influence its importance in the overall mean. In simple terms, the category &amp;quot;total&amp;quot; will be equal to the sum of the scores in each grade item, these scores being multiplied by the grade items&#039; weights, and that sum being finally divided by the sum of the weights, as shown in this example.&lt;br /&gt;
    A1 70/100 weight 10, A2 20/80 weight 5, A3 10/10 weight 3, category max 100:&lt;br /&gt;
    (0.7*10 + 0.25*5 + 1.0*3)/(10 + 5 + 3) = 0.625 --&amp;gt; 62.5/100&lt;br /&gt;
&lt;br /&gt;
== Simple weighted mean ==&lt;br /&gt;
The difference from Weighted mean is that the weight of each item is simply the difference between its Maximum and Minimum grade.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    (0.7*100 + 0.25*80 + 1.0*10)/(100 + 80 + 10) = 0.526 --&amp;gt; 52.6/100&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Simple weighted mean&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. For example, if A3 is marked as extra credit in the above calculation:&lt;br /&gt;
    A1 70/100, A2 20/80, A3 (extra credit) 10/10, category max 100:&lt;br /&gt;
    (0.7*100 + 0.25*80 + 1.0*10)/(100 + 80) = 0.556 --&amp;gt; 55.6/100&lt;br /&gt;
&lt;br /&gt;
== Mean of grades (with extra credits) ==&lt;br /&gt;
Arithmetic mean with a twist. An old, now unsupported aggregation strategy provided here only for backward compatibility with old activities.&lt;br /&gt;
&lt;br /&gt;
A value greater than 0 treats a grade item&#039;s grades as extra credit during aggregation. The number is a factor by which the grade value will be multiplied before it is added to the sum of all grades, but the item itself will not be counted in the division. For example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is set to 2&lt;br /&gt;
* Item 2 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0.0000&lt;br /&gt;
* Item 3 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0.0000&lt;br /&gt;
* All 3 items belong to Category 1, which has &amp;quot;Mean of grades (with extra credits)&amp;quot; as its aggregation strategy&lt;br /&gt;
* A student gets graded 20 on Item 1, 40 on Item 2 and 70 on Item 3&lt;br /&gt;
* The student&#039;s total for Category 1 will be 95/100 since 20*2 + (40 + 70)/2 = 95&lt;br /&gt;
&lt;br /&gt;
== Median of grades ==&lt;br /&gt;
The middle value (or the mean of the two middle values) when percentages (the tatios between grades and their maximum values) are arranged in order of value. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean).&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    median(0.7; 0.25; 1.0) --&amp;gt; 0.70 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Smallest grade ==&lt;br /&gt;
The result is the smallest grade after normalisation. It is usually used in combination with Aggregate only non-empty grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    min(0.7; 0.25; 1.0) = 0.25 --&amp;gt; 25/100&lt;br /&gt;
&lt;br /&gt;
== Highest grade ==&lt;br /&gt;
The result is the highest grade after normalisation.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    max(0.7; 0.25; 1.0) = 1.0 --&amp;gt; 100/100&lt;br /&gt;
&lt;br /&gt;
== Mode of grades ==&lt;br /&gt;
The mode is the normalised grade that occurs the most frequently. It is often used for non-numerical grades. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean). However it loses its meaning once there is more than one most frequently occurring grade (only one is kept), or when all the grades are different from each other.&lt;br /&gt;
    A1 70/100, A2 35/50, A3 20/80, A4 10/10, A5 7/10 category max 100:&lt;br /&gt;
    mode(0.7; 0.7; 0.25; 1.0; 0.7) = 0.7 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Natural ==&lt;br /&gt;
&lt;br /&gt;
This is the  sum of all grade values, scaled by weight. The Maximum grade of the category is the sum of the maximums of all aggregated items. &lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, without forcing weights:&lt;br /&gt;
    (70 + 20 + 10)/(100 + 80 + 10) --&amp;gt; 100/190&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: Scale grades are ignored.&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Natural&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. Following is an example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100&lt;br /&gt;
* Item 2 is graded 0-75&lt;br /&gt;
* Item 1 has the &amp;quot;Act as extra credit&amp;quot; checkbox ticked, Item 2 doesn&#039;t.&lt;br /&gt;
* Both items belong to Category 1, which has &amp;quot;Natural&amp;quot; as its aggregation strategy&lt;br /&gt;
* Category 1&#039;s total will be graded 0-75&lt;br /&gt;
* A student gets graded 20 on Item 1 and 70 on Item 2&lt;br /&gt;
* The student&#039;s total for Category 1 will be 75/75 (20+70 = 90 but Item 1 only acts as extra credit, so it brings the total to its maximum)&lt;br /&gt;
&lt;br /&gt;
Natural aggregation functions as a sum of grades when the weight boxes are left alone. In this situation, the numbers in the weight boxes are informational and represent the effective weights in the sum. Natural aggregation can also function as a mean of grades, when the weight boxes are checked and then adjusted so that the weights are equal across a set of items in a category, or across a set of categories. Items can still be marked as &amp;quot;Extra credit&amp;quot; while using the weights to calculate a mean, and contribute to the total for the category.&lt;br /&gt;
&lt;br /&gt;
==Available aggregation types==&lt;br /&gt;
[[Image:availableaggregationtypes1.png|thumb|Available aggregation types setting]]&lt;br /&gt;
The default is &#039;Natural&#039; but the administrator can specify other types from  &#039;&#039; Site administration &amp;gt;administration &amp;gt; Grades &amp;gt; [[Grade category settings]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that reducing the number of aggregation types simply results in disabled aggregation types not appearing in the aggregation type dropdown menu. All existing grade category calculations remain the same, regardless of whether the aggregation type is later disabled by an administrator.&lt;br /&gt;
&lt;br /&gt;
[[ca:Agregació de les categories]]&lt;br /&gt;
[[fr:Tendance centrale de la catégorie]]&lt;br /&gt;
[[es:Agregación de categoría]]&lt;br /&gt;
[[de:Bewertungen zusammenfassen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=125262</id>
		<title>Grade aggregation</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=125262"/>
		<updated>2016-09-10T12:50:06Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}&lt;br /&gt;
The aggregation dropdown menu lets you choose the aggregation strategy that will be used to calculate each participant&#039;s overall grade for a [[Grade categories|grade category]]. The different options are explained below.&lt;br /&gt;
&lt;br /&gt;
The grades are first converted to percentage values (interval from 0 to 1), then aggregated using one of the strategies below and finally converted to the associated category item&#039;s range (between Minimum grade and Maximum grade).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important&#039;&#039;&#039;: An empty grade is simply a missing gradebook entry, and could mean different things. For example, it could be a participant who hasn&#039;t yet submitted an assignment, an assignment submission not yet graded by the teacher, or a grade that has been manually deleted by the gradebook administrator. Caution in interpreting these &amp;quot;empty grades&amp;quot; is thus advised.&lt;br /&gt;
&lt;br /&gt;
== Mean of grades ==&lt;br /&gt;
The sum of all grades divided by the total number of grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    (0.7 + 0.25 + 1.0)/3 = 0.65 --&amp;gt; 65/100&lt;br /&gt;
&lt;br /&gt;
== Weighted mean ==&lt;br /&gt;
Each grade item can be given a weight, which is then used in the arithmetic mean aggregation to influence the importance of each item in the overall mean. In simple terms, the category &amp;quot;total&amp;quot; will be equal to the sum of the scores in each grade item, these scores being multiplied by the grade items&#039; weights, and that sum being finally divided by the sum of the weights, as shown in this example.&lt;br /&gt;
    A1 70/100 weight 10, A2 20/80 weight 5, A3 10/10 weight 3, category max 100:&lt;br /&gt;
    (0.7*10 + 0.25*5 + 1.0*3)/18 = 0.625 --&amp;gt; 62.5/100&lt;br /&gt;
&lt;br /&gt;
== Simple weighted mean ==&lt;br /&gt;
The difference from Weighted mean is that weight is calculated as Maximum grade - Minimum grade for each item. 100 point assignment has weight 100, 10 point assignment has weight 10.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    (0.7*100 + 0.25*80 + 1.0*10)/190 = 0.526 --&amp;gt; 52.6/100&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Simple weighted mean&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. For example, if A3 is marked as extra credit in the above calculation:&lt;br /&gt;
    A1 70/100, A2 20/80, A3 (extra credit) 10/10, category max 100:&lt;br /&gt;
    (0.7*100 + 0.25*80 + 1.0*10)/180 = 0.556 --&amp;gt; 55.6/100&lt;br /&gt;
&lt;br /&gt;
== Mean of grades (with extra credits) ==&lt;br /&gt;
Arithmetic mean with a twist. An old, now unsupported aggregation strategy provided here only for backward compatibility with old activities.&lt;br /&gt;
&lt;br /&gt;
A value greater than 0 treats a grade item&#039;s grades as extra credit during aggregation. The number is a factor by which the grade value will be multiplied before it is added to the sum of all grades, but the item itself will not be counted in the division. For example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is set to 2&lt;br /&gt;
* Item 2 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0.0000&lt;br /&gt;
* Item 3 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0.0000&lt;br /&gt;
* All 3 items belong to Category 1, which has &amp;quot;Mean of grades (with extra credits)&amp;quot; as its aggregation strategy&lt;br /&gt;
* A student gets graded 20 on Item 1, 40 on Item 2 and 70 on Item 3&lt;br /&gt;
* The student&#039;s total for Category 1 will be 95/100 since 20*2 + (40 + 70)/2 = 95&lt;br /&gt;
&lt;br /&gt;
== Median of grades ==&lt;br /&gt;
The middle grade (or the mean of the two middle grades) when grades are arranged in order of size. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean).&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    median(0.7; 0.25; 1.0) --&amp;gt; 0.70 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Smallest grade ==&lt;br /&gt;
The result is the smallest grade after normalisation. It is usually used in combination with Aggregate only non-empty grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    min(0.7; 0.25; 1.0) = 0.25 --&amp;gt; 25/100&lt;br /&gt;
&lt;br /&gt;
== Highest grade ==&lt;br /&gt;
The result is the highest grade after normalisation.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    max(0.7; 0.25; 1.0) = 1.0 --&amp;gt; 100/100&lt;br /&gt;
&lt;br /&gt;
== Mode of grades ==&lt;br /&gt;
The mode is the grade that occurs the most frequently. It is more often used for non-numerical grades. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean). However it loses its meaning once there is more than one most frequently occurring grade (only one is kept), or when all the grades are different from each other.&lt;br /&gt;
    A1 70/100, A2 35/50, A3 20/80, A4 10/10, A5 7/10 category max 100:&lt;br /&gt;
    mode(0.7; 0.7; 0.25; 1.0; 0.7) = 0.7 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Natural ==&lt;br /&gt;
&lt;br /&gt;
This is the  sum of all grade values, scaled by weight. &lt;br /&gt;
&lt;br /&gt;
Scale grades are ignored. This is the only type that does not convert the grades to percentages internally. The Maximum grade of associated category item is calculated automatically as a sum of maximums from all aggregated items.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10:&lt;br /&gt;
    70 + 20 + 10 = 100/190&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Natural&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. Following is an example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100&lt;br /&gt;
* Item 2 is graded 0-75&lt;br /&gt;
* Item 1 has the &amp;quot;Act as extra credit&amp;quot; checkbox ticked, Item 2 doesn&#039;t.&lt;br /&gt;
* Both items belong to Category 1, which has &amp;quot;Natural&amp;quot; as its aggregation strategy&lt;br /&gt;
* Category 1&#039;s total will be graded 0-75&lt;br /&gt;
* A student gets graded 20 on Item 1 and 70 on Item 2&lt;br /&gt;
* The student&#039;s total for Category 1 will be 75/75 (20+70 = 90 but Item 1 only acts as extra credit, so it brings the total to its maximum)&lt;br /&gt;
&lt;br /&gt;
Natural aggregation functions as a sum of grades when the weight boxes are left alone. In this situation, the numbers in the weight boxes are informational and represent the effective weights in the sum. Natural aggregation can also function as a mean of grades, when the weight boxes are checked and then adjusted so that the weights are equal across a set of items in a category, or across a set of categories. Items can still be marked as &amp;quot;Extra credit&amp;quot; while using the weights to calculate a mean, and contribute to the total for the category.&lt;br /&gt;
&lt;br /&gt;
==Available aggregation types==&lt;br /&gt;
[[Image:availableaggregationtypes1.png|thumb|Available aggregation types setting]]&lt;br /&gt;
The default is &#039;Natural&#039; but the administrator can specify other types from  &#039;&#039; Site administration &amp;gt;administration &amp;gt; Grades &amp;gt; [[Grade category settings]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that reducing the number of aggregation types simply results in disabled aggregation types not appearing in the aggregation type dropdown menu. All existing grade category calculations remain the same, regardless of whether the aggregation type is later disabled by an administrator.&lt;br /&gt;
&lt;br /&gt;
[[ca:Agregació de les categories]]&lt;br /&gt;
[[fr:Tendance centrale de la catégorie]]&lt;br /&gt;
[[es:Agregación de categoría]]&lt;br /&gt;
[[de:Bewertungen zusammenfassen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_categories&amp;diff=125261</id>
		<title>Grade categories</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_categories&amp;diff=125261"/>
		<updated>2016-09-10T12:44:22Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Aggregate only non-empty grades */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing grades}}&lt;br /&gt;
Grades can be organised into grade categories. &lt;br /&gt;
A grade category has its own aggregated grade which is calculated from its grade items. There is no limit to the level of nesting of categories (a category may belong to another category). However, each grade item may belong to only one category. Also, all grade items and categories belong to at least one, permanent category: the course category.&lt;br /&gt;
&lt;br /&gt;
==Adding a grade category==&lt;br /&gt;
To add a grade category:&lt;br /&gt;
# Select &amp;quot;Gradebook setup&amp;quot; from the gradebook dropdown menu.&lt;br /&gt;
# Click the &amp;quot;Add category&amp;quot; button near the bottom of the page.&lt;br /&gt;
# Give the grade category a meaningful name.&lt;br /&gt;
# Select grade category settings as appropriate. Advanced settings may be made available by clicking the &amp;quot;Show more&amp;quot; link.&lt;br /&gt;
# Click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
==Editing a grade category==&lt;br /&gt;
To edit a grade category:&lt;br /&gt;
# Select &amp;quot;Gradebook setup&amp;quot; from the gradebook dropdown menu.&lt;br /&gt;
# Click the edit icon opposite the grade category you wish to edit.&lt;br /&gt;
# After editing the grade category, click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
[[Image:Edit grade category.png|thumb|center|Editing a grade category]]&lt;br /&gt;
&lt;br /&gt;
==Settings==&lt;br /&gt;
If any of the following do not appear in your page, it may mean that they are set globally in your site. See [[Grade_category_settings#Forcing_settings|Forcing settings]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Aggregation ===&lt;br /&gt;
&lt;br /&gt;
The dropdown menu allows to select how to obtain the category&#039;s aggregated grade from its grade items.&lt;br /&gt;
&lt;br /&gt;
See [[Grade aggregation]] for a detailed explanation.&lt;br /&gt;
&lt;br /&gt;
=== Aggregate only non-empty grades ===&lt;br /&gt;
Non-existent grades are either treated as minimal grades or not included in the aggregation. For example, an assignment graded between 0 and 100 for which only half the students have been graded will either count the non-graded submissions as 0 (option switched off) or will ignore them (option switched on).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important&#039;&#039;&#039;: An empty grade is simply a missing gradebook entry, and could mean different things. For example, it could be a participant who hasn&#039;t yet submitted an assignment, an assignment submission not yet graded by the teacher, or a grade that has been manually deleted by the gradebook administrator. Caution in interpreting these &amp;quot;empty grades&amp;quot; is thus advised.&lt;br /&gt;
&lt;br /&gt;
=== Include outcomes in aggregation ===&lt;br /&gt;
Including outcomes in aggregation may not lead to the desired overall grade, so you have the option to include or leave them out.&lt;br /&gt;
&lt;br /&gt;
=== Drop the lowest ===&lt;br /&gt;
If set, this option will drop the X lowest grades, X being the selected value for this option.&lt;br /&gt;
&lt;br /&gt;
Note: You can only make use of either this option or the option below `Keep Highest`. If you have both set then only `Drop the lowest` will be usable under course categories.&lt;br /&gt;
&lt;br /&gt;
When using natural weighting, drop the lowest is only allowed when:&lt;br /&gt;
* all children of the category have equal weights&lt;br /&gt;
* all children of the category have equal max grade&lt;br /&gt;
* there are no sub categories in the category&lt;br /&gt;
* there are no extra credit items in the category&lt;br /&gt;
&lt;br /&gt;
=== Keep the highest ===&lt;br /&gt;
If set, this option will only retain the X highest grades, X being the selected value for this option.&lt;br /&gt;
&lt;br /&gt;
Note: If you have `Drop the lowest` set to anything other than null then this option will have no effect&lt;br /&gt;
&lt;br /&gt;
=== Parent Category - Item Weight ===&lt;br /&gt;
&lt;br /&gt;
If your course is set to use weighted mean of grades, you can assign a weight that the grade for this category will have inside the parent category.  Within all of the subcategories of the parent category, the weight values do not need to add up to 100.&lt;br /&gt;
&lt;br /&gt;
If your course is set to use natural grading, you can assign a weight that the grade for this category will have inside the parent category.  All other weights will adjust in response to the amount you set here.&lt;br /&gt;
&lt;br /&gt;
=== Aggregation view ===&lt;br /&gt;
Each category can be displayed in three ways: Full mode (aggregated column and grade item columns), the aggregated column only, or the grade items alone.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Grade items]]&lt;br /&gt;
*[[Grade category settings]] - for administrators&lt;br /&gt;
&lt;br /&gt;
[[fr:Catégories de note]]&lt;br /&gt;
[[ja:評定カテゴリ]]&lt;br /&gt;
[[de:Bewertungskategorien]]&lt;br /&gt;
[[es:Categorías de calificación]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_categories&amp;diff=125260</id>
		<title>Grade categories</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_categories&amp;diff=125260"/>
		<updated>2016-09-10T12:42:44Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Aggregation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing grades}}&lt;br /&gt;
Grades can be organised into grade categories. &lt;br /&gt;
A grade category has its own aggregated grade which is calculated from its grade items. There is no limit to the level of nesting of categories (a category may belong to another category). However, each grade item may belong to only one category. Also, all grade items and categories belong to at least one, permanent category: the course category.&lt;br /&gt;
&lt;br /&gt;
==Adding a grade category==&lt;br /&gt;
To add a grade category:&lt;br /&gt;
# Select &amp;quot;Gradebook setup&amp;quot; from the gradebook dropdown menu.&lt;br /&gt;
# Click the &amp;quot;Add category&amp;quot; button near the bottom of the page.&lt;br /&gt;
# Give the grade category a meaningful name.&lt;br /&gt;
# Select grade category settings as appropriate. Advanced settings may be made available by clicking the &amp;quot;Show more&amp;quot; link.&lt;br /&gt;
# Click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
==Editing a grade category==&lt;br /&gt;
To edit a grade category:&lt;br /&gt;
# Select &amp;quot;Gradebook setup&amp;quot; from the gradebook dropdown menu.&lt;br /&gt;
# Click the edit icon opposite the grade category you wish to edit.&lt;br /&gt;
# After editing the grade category, click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
[[Image:Edit grade category.png|thumb|center|Editing a grade category]]&lt;br /&gt;
&lt;br /&gt;
==Settings==&lt;br /&gt;
If any of the following do not appear in your page, it may mean that they are set globally in your site. See [[Grade_category_settings#Forcing_settings|Forcing settings]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Aggregation ===&lt;br /&gt;
&lt;br /&gt;
The dropdown menu allows to select how to obtain the category&#039;s aggregated grade from its grade items.&lt;br /&gt;
&lt;br /&gt;
See [[Grade aggregation]] for a detailed explanation.&lt;br /&gt;
&lt;br /&gt;
=== Aggregate only non-empty grades ===&lt;br /&gt;
Non-existent grades are either treated as minimal grades or not included in the aggregation. For example, an assignment graded between 0 and 100 for which only half the students have been graded will either count the non-graded submissions as 0 (option switched off) or will ignore them (option switched on).&lt;br /&gt;
&lt;br /&gt;
Important: An empty grade is simply a missing gradebook entry, and could mean different things. For example, it could be a participant who hasn&#039;t yet submitted an assignment, an assignment submission not yet graded by the teacher, or a grade that has been manually deleted by the gradebook administrator. Caution in interpreting these &amp;quot;empty grades&amp;quot; is thus advised.&lt;br /&gt;
&lt;br /&gt;
=== Include outcomes in aggregation ===&lt;br /&gt;
Including outcomes in aggregation may not lead to the desired overall grade, so you have the option to include or leave them out.&lt;br /&gt;
&lt;br /&gt;
=== Drop the lowest ===&lt;br /&gt;
If set, this option will drop the X lowest grades, X being the selected value for this option.&lt;br /&gt;
&lt;br /&gt;
Note: You can only make use of either this option or the option below `Keep Highest`. If you have both set then only `Drop the lowest` will be usable under course categories.&lt;br /&gt;
&lt;br /&gt;
When using natural weighting, drop the lowest is only allowed when:&lt;br /&gt;
* all children of the category have equal weights&lt;br /&gt;
* all children of the category have equal max grade&lt;br /&gt;
* there are no sub categories in the category&lt;br /&gt;
* there are no extra credit items in the category&lt;br /&gt;
&lt;br /&gt;
=== Keep the highest ===&lt;br /&gt;
If set, this option will only retain the X highest grades, X being the selected value for this option.&lt;br /&gt;
&lt;br /&gt;
Note: If you have `Drop the lowest` set to anything other than null then this option will have no effect&lt;br /&gt;
&lt;br /&gt;
=== Parent Category - Item Weight ===&lt;br /&gt;
&lt;br /&gt;
If your course is set to use weighted mean of grades, you can assign a weight that the grade for this category will have inside the parent category.  Within all of the subcategories of the parent category, the weight values do not need to add up to 100.&lt;br /&gt;
&lt;br /&gt;
If your course is set to use natural grading, you can assign a weight that the grade for this category will have inside the parent category.  All other weights will adjust in response to the amount you set here.&lt;br /&gt;
&lt;br /&gt;
=== Aggregation view ===&lt;br /&gt;
Each category can be displayed in three ways: Full mode (aggregated column and grade item columns), the aggregated column only, or the grade items alone.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Grade items]]&lt;br /&gt;
*[[Grade category settings]] - for administrators&lt;br /&gt;
&lt;br /&gt;
[[fr:Catégories de note]]&lt;br /&gt;
[[ja:評定カテゴリ]]&lt;br /&gt;
[[de:Bewertungskategorien]]&lt;br /&gt;
[[es:Categorías de calificación]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125259</id>
		<title>Grade calculations</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125259"/>
		<updated>2016-09-10T11:59:37Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Calculation functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing grades}}&lt;br /&gt;
A grade calculation is a formula used to determine grades, based (optionally) on other grade items. Note that this is not the same as [[Calculated_question_type|Calculated question types]].&lt;br /&gt;
&lt;br /&gt;
Calculations for the gradebook follow the pattern of formulas/functions in popular spreadsheet programs. They start with an equal (=) sign, and use common mathematical operators and functions to produce a single numerical output. This output is then used as the computed value for the grade item you are editing.&lt;br /&gt;
&lt;br /&gt;
==Setting a grade calculation==&lt;br /&gt;
[[Image:neweditcalculation.png|thumb|Edit calculation setting]]&lt;br /&gt;
[[Image:newcalculationgrade.png|thumb|Example calculation]]&lt;br /&gt;
To set a grade calculation:&lt;br /&gt;
# Login as teacher or other user with permission to edit grades&lt;br /&gt;
# Click on Grades in the course administration block&lt;br /&gt;
# Click the &#039;Categories and items&#039; &lt;br /&gt;
# Click the &#039;Edit settings&#039; and then &#039;Edit calculation&#039;. Note: if you don&#039;t see this, then it must be enabled in &#039;&#039;Site administration&amp;gt;Grades&amp;gt;Report settings&amp;gt;Grader report&#039;&#039;&lt;br /&gt;
# Start with an equal sign (=)&lt;br /&gt;
# Type an expression using numbers, arithmetic opertors, mathematical functions and ID numbers; for example &amp;lt;nowiki&amp;gt;=average()&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Plug in your ID numbers (see below) enclosed in double square brackets, for example &amp;lt;nowiki&amp;gt;=[[item1]]+[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Separate each ID number with a comma, for example &amp;lt;nowiki&amp;gt;=average([[item1]], [[item2]])+[[item3]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Click the &amp;quot;Save Changes&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
==Assigning ID numbers==&lt;br /&gt;
&lt;br /&gt;
You can include the values of other grade items by using their ID number as references in your formulas. The ID number is surrounded by double square brackets, for example if you have a grade item with Quiz.3 as ID number, you will refer to this item as &amp;lt;nowiki&amp;gt;[[Quiz.3]]&amp;lt;/nowiki&amp;gt; in your calculation.&lt;br /&gt;
&lt;br /&gt;
Below the calculation field is a list of your course with its grade categories and grade items. Next to each item or category&#039;s total is displayed the ID number you can use in your calculation (already surrounded with double square brackets). However, since the ID number is optional, some items may not yet have one. These items without an ID number have instead a form field which lets you enter an ID number directly.&lt;br /&gt;
&lt;br /&gt;
As soon as you have assigned the ID numbers you need, you can click the &amp;quot;Add ID numbers&amp;quot; button, and the page will reload and show you the same list with the ID numbers you have just assigned. Now you can use them in your formulas.&lt;br /&gt;
&lt;br /&gt;
==Calculation functions==&lt;br /&gt;
&lt;br /&gt;
Every calculation must start with an equal sign (=). Following is an expression using operators and  functions supported by the system.&lt;br /&gt;
All common arithmetic operators are supported:&lt;br /&gt;
&lt;br /&gt;
* addition, using the plus (+) sign&lt;br /&gt;
* subtraction, using the minus (-) sign&lt;br /&gt;
* multiplication, using the asterisk (*) character&lt;br /&gt;
* division, using the slash (/) character&lt;br /&gt;
&lt;br /&gt;
with their common precedence rules: multiplications and divisions are evaluated first, then additions and subtraction are calculated; so, =1+2-3*4/5 gives 0.6. Precedences can be forced using parentheses, as in =(((1+2)-3)*4)/5 which yields 0.&lt;br /&gt;
&lt;br /&gt;
Functions can also appear in expressions, using the comma (,) character to separate their arguments listed within function (round) brackets. (The separator character could be a semicolon (;) in other [[Language|languages]], see below).&lt;br /&gt;
&lt;br /&gt;
* average&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the average of the values in a list of arguments&lt;br /&gt;
* max&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the maximum value in a list of arguments&lt;br /&gt;
* min&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...):&amp;lt;/nowiki&amp;gt; Returns the minimum value in a list of arguments&lt;br /&gt;
* mod(dividend, divisor): Calculates the remainder of a division&lt;br /&gt;
* pi(): Returns the value of the number Pi&lt;br /&gt;
* power(base, power): Raises a number to the power of another&lt;br /&gt;
* round(number, count): Rounds number to count decimal digits&lt;br /&gt;
* floor(number): Maps a real number to the largest previous integer&lt;br /&gt;
* ceil(number): Maps a real number to the smallest following integer&lt;br /&gt;
* sum(&amp;lt;nowiki&amp;gt;[[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the sum of all arguments&lt;br /&gt;
&lt;br /&gt;
Many other mathematical functions are also supported:&lt;br /&gt;
&lt;br /&gt;
* sin()&lt;br /&gt;
* sinh()&lt;br /&gt;
* arcsin()&lt;br /&gt;
* asin()&lt;br /&gt;
* arcsinh()&lt;br /&gt;
* asinh()&lt;br /&gt;
* cos()&lt;br /&gt;
* cosh()&lt;br /&gt;
* arccos()&lt;br /&gt;
* acos()&lt;br /&gt;
* arccosh()&lt;br /&gt;
* acosh()&lt;br /&gt;
* tan()&lt;br /&gt;
* tanh()&lt;br /&gt;
* arctan()&lt;br /&gt;
* atan()&lt;br /&gt;
* arctanh()&lt;br /&gt;
* atanh()&lt;br /&gt;
* sqrt()&lt;br /&gt;
* abs()&lt;br /&gt;
* ln()&lt;br /&gt;
* log()&lt;br /&gt;
* exp()&lt;br /&gt;
&lt;br /&gt;
==Example calculations==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]])&amp;lt;/nowiki&amp;gt; - Returns the maximum value of Quiz.1, Quiz.4 and Assignment.1&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=average(max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]), min([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]))&amp;lt;/nowiki&amp;gt; - Returns the average of the maximum and the minimum values among Quiz.1, Quiz.4 and Assignment.1 (functions can be nested)&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=sum([[1]]*0.3, [[2]]*0.6, [[3]]*2)&amp;lt;/nowiki&amp;gt; - Returns a weighted grade calculations where item 1 is weighted 30%, item 2 is weighted at 60% and item 3 is weighted at 200%&lt;br /&gt;
&lt;br /&gt;
==Calculations when user language is not English==&lt;br /&gt;
&lt;br /&gt;
Calculation formulas use decimal and list separators as defined in the [https://docs.moodle.org/dev/Translation_langconfig langconfig.php] file of each [[Language packs|language pack]].&lt;br /&gt;
&lt;br /&gt;
The [[Decimal separator|decimal separator]] (a symbol used to mark the boundary between the integral and the fractional parts of a decimal number) is a point (.) in English. In other languages it may be a comma (,).&lt;br /&gt;
&lt;br /&gt;
The list separator (a symbol used to separate the items within a list, such as the arguments of a function) is a comma (,) in English. In other languages it may be a semicolon (;).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://www.youtube.com/watch?v=WKUGyzAXcyA Video on how to set up calculations in the gradebook (basic)]&lt;br /&gt;
*[http://www.youtube.com/watch?v=VBEj8mmu8lM Video on how to set up calculations in the gradebook (advanced)]&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/edit/tree/calculation]]&lt;br /&gt;
[[es:Cálculos de calificación]]&lt;br /&gt;
[[fr:Calcul de note]]&lt;br /&gt;
[[ru:Формулы и вычисления оценок]]&lt;br /&gt;
[[ja:評定計算]]&lt;br /&gt;
[[de:Bewertungen berechnen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125258</id>
		<title>Grade calculations</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125258"/>
		<updated>2016-09-10T11:31:00Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Calculation functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing grades}}&lt;br /&gt;
A grade calculation is a formula used to determine grades, based (optionally) on other grade items. Note that this is not the same as [[Calculated_question_type|Calculated question types]].&lt;br /&gt;
&lt;br /&gt;
Calculations for the gradebook follow the pattern of formulas/functions in popular spreadsheet programs. They start with an equal (=) sign, and use common mathematical operators and functions to produce a single numerical output. This output is then used as the computed value for the grade item you are editing.&lt;br /&gt;
&lt;br /&gt;
==Setting a grade calculation==&lt;br /&gt;
[[Image:neweditcalculation.png|thumb|Edit calculation setting]]&lt;br /&gt;
[[Image:newcalculationgrade.png|thumb|Example calculation]]&lt;br /&gt;
To set a grade calculation:&lt;br /&gt;
# Login as teacher or other user with permission to edit grades&lt;br /&gt;
# Click on Grades in the course administration block&lt;br /&gt;
# Click the &#039;Categories and items&#039; &lt;br /&gt;
# Click the &#039;Edit settings&#039; and then &#039;Edit calculation&#039;. Note: if you don&#039;t see this, then it must be enabled in &#039;&#039;Site administration&amp;gt;Grades&amp;gt;Report settings&amp;gt;Grader report&#039;&#039;&lt;br /&gt;
# Start with an equal sign (=)&lt;br /&gt;
# Type an expression using numbers, arithmetic opertors, mathematical functions and ID numbers; for example &amp;lt;nowiki&amp;gt;=average()&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Plug in your ID numbers (see below) enclosed in double square brackets, for example &amp;lt;nowiki&amp;gt;=[[item1]]+[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Separate each ID number with a comma, for example &amp;lt;nowiki&amp;gt;=average([[item1]], [[item2]])+[[item3]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Click the &amp;quot;Save Changes&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
==Assigning ID numbers==&lt;br /&gt;
&lt;br /&gt;
You can include the values of other grade items by using their ID number as references in your formulas. The ID number is surrounded by double square brackets, for example if you have a grade item with Quiz.3 as ID number, you will refer to this item as &amp;lt;nowiki&amp;gt;[[Quiz.3]]&amp;lt;/nowiki&amp;gt; in your calculation.&lt;br /&gt;
&lt;br /&gt;
Below the calculation field is a list of your course with its grade categories and grade items. Next to each item or category&#039;s total is displayed the ID number you can use in your calculation (already surrounded with double square brackets). However, since the ID number is optional, some items may not yet have one. These items without an ID number have instead a form field which lets you enter an ID number directly.&lt;br /&gt;
&lt;br /&gt;
As soon as you have assigned the ID numbers you need, you can click the &amp;quot;Add ID numbers&amp;quot; button, and the page will reload and show you the same list with the ID numbers you have just assigned. Now you can use them in your formulas.&lt;br /&gt;
&lt;br /&gt;
==Calculation functions==&lt;br /&gt;
&lt;br /&gt;
Every calculation must start with an equal sign (=). Following is an expression using operators and  functions supported by the system.&lt;br /&gt;
All common arithmetic operators are supported:&lt;br /&gt;
&lt;br /&gt;
* addition, using the plus (+) sign&lt;br /&gt;
* subtraction, using the minus (-) sign&lt;br /&gt;
* multiplication, using the asterisk (*)&lt;br /&gt;
* division, using the slash (/) &lt;br /&gt;
&lt;br /&gt;
with their common precedence rules: multiplications and divisions are evaluated first, then additions and subtraction are calculated; so, =1+2-3*4/5 gives 0.6. Precedence can be changed using round parentheses as in =(((1+2)-3)*4)/5, which yields 0.&lt;br /&gt;
&lt;br /&gt;
Functions can also appear in expressions, using the comma (,) character to separate their arguments listed within function (round) brackets. (The separator character could be a semicolon (;) in other [[Language|languages]], see below).&lt;br /&gt;
&lt;br /&gt;
* average&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the average of the values in a list of arguments&lt;br /&gt;
* max&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the maximum value in a list of arguments&lt;br /&gt;
* min&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...):&amp;lt;/nowiki&amp;gt; Returns the minimum value in a list of arguments&lt;br /&gt;
* mod(dividend, divisor): Calculates the remainder of a division&lt;br /&gt;
* pi(): Returns the value of the number Pi&lt;br /&gt;
* power(base, power): Raises a number to the power of another&lt;br /&gt;
* round(number, count): Rounds number to count decimal digits&lt;br /&gt;
* floor(number): Maps a real number to the largest previous integer&lt;br /&gt;
* ceil(number): Maps a real number to the smallest following integer&lt;br /&gt;
* sum(&amp;lt;nowiki&amp;gt;[[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the sum of all arguments&lt;br /&gt;
&lt;br /&gt;
Many other mathematical functions are also supported:&lt;br /&gt;
&lt;br /&gt;
* sin()&lt;br /&gt;
* sinh()&lt;br /&gt;
* arcsin()&lt;br /&gt;
* asin()&lt;br /&gt;
* arcsinh()&lt;br /&gt;
* asinh()&lt;br /&gt;
* cos()&lt;br /&gt;
* cosh()&lt;br /&gt;
* arccos()&lt;br /&gt;
* acos()&lt;br /&gt;
* arccosh()&lt;br /&gt;
* acosh()&lt;br /&gt;
* tan()&lt;br /&gt;
* tanh()&lt;br /&gt;
* arctan()&lt;br /&gt;
* atan()&lt;br /&gt;
* arctanh()&lt;br /&gt;
* atanh()&lt;br /&gt;
* sqrt()&lt;br /&gt;
* abs()&lt;br /&gt;
* ln()&lt;br /&gt;
* log()&lt;br /&gt;
* exp()&lt;br /&gt;
&lt;br /&gt;
==Example calculations==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]])&amp;lt;/nowiki&amp;gt; - Returns the maximum value of Quiz.1, Quiz.4 and Assignment.1&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=average(max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]), min([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]))&amp;lt;/nowiki&amp;gt; - Returns the average of the maximum and the minimum values among Quiz.1, Quiz.4 and Assignment.1 (functions can be nested)&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=sum([[1]]*0.3, [[2]]*0.6, [[3]]*2)&amp;lt;/nowiki&amp;gt; - Returns a weighted grade calculations where item 1 is weighted 30%, item 2 is weighted at 60% and item 3 is weighted at 200%&lt;br /&gt;
&lt;br /&gt;
==Calculations when user language is not English==&lt;br /&gt;
&lt;br /&gt;
Calculation formulas use decimal and list separators as defined in the [https://docs.moodle.org/dev/Translation_langconfig langconfig.php] file of each [[Language packs|language pack]].&lt;br /&gt;
&lt;br /&gt;
The [[Decimal separator|decimal separator]] (a symbol used to mark the boundary between the integral and the fractional parts of a decimal number) is a point (.) in English. In other languages it may be a comma (,).&lt;br /&gt;
&lt;br /&gt;
The list separator (a symbol used to separate the items within a list, such as the arguments of a function) is a comma (,) in English. In other languages it may be a semicolon (;).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://www.youtube.com/watch?v=WKUGyzAXcyA Video on how to set up calculations in the gradebook (basic)]&lt;br /&gt;
*[http://www.youtube.com/watch?v=VBEj8mmu8lM Video on how to set up calculations in the gradebook (advanced)]&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/edit/tree/calculation]]&lt;br /&gt;
[[es:Cálculos de calificación]]&lt;br /&gt;
[[fr:Calcul de note]]&lt;br /&gt;
[[ru:Формулы и вычисления оценок]]&lt;br /&gt;
[[ja:評定計算]]&lt;br /&gt;
[[de:Bewertungen berechnen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125257</id>
		<title>Grade calculations</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125257"/>
		<updated>2016-09-10T11:28:13Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Calculation functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing grades}}&lt;br /&gt;
A grade calculation is a formula used to determine grades, based (optionally) on other grade items. Note that this is not the same as [[Calculated_question_type|Calculated question types]].&lt;br /&gt;
&lt;br /&gt;
Calculations for the gradebook follow the pattern of formulas/functions in popular spreadsheet programs. They start with an equal (=) sign, and use common mathematical operators and functions to produce a single numerical output. This output is then used as the computed value for the grade item you are editing.&lt;br /&gt;
&lt;br /&gt;
==Setting a grade calculation==&lt;br /&gt;
[[Image:neweditcalculation.png|thumb|Edit calculation setting]]&lt;br /&gt;
[[Image:newcalculationgrade.png|thumb|Example calculation]]&lt;br /&gt;
To set a grade calculation:&lt;br /&gt;
# Login as teacher or other user with permission to edit grades&lt;br /&gt;
# Click on Grades in the course administration block&lt;br /&gt;
# Click the &#039;Categories and items&#039; &lt;br /&gt;
# Click the &#039;Edit settings&#039; and then &#039;Edit calculation&#039;. Note: if you don&#039;t see this, then it must be enabled in &#039;&#039;Site administration&amp;gt;Grades&amp;gt;Report settings&amp;gt;Grader report&#039;&#039;&lt;br /&gt;
# Start with an equal sign (=)&lt;br /&gt;
# Type an expression using numbers, arithmetic opertors, mathematical functions and ID numbers; for example &amp;lt;nowiki&amp;gt;=average()&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Plug in your ID numbers (see below) enclosed in double square brackets, for example &amp;lt;nowiki&amp;gt;=[[item1]]+[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Separate each ID number with a comma, for example &amp;lt;nowiki&amp;gt;=average([[item1]], [[item2]])+[[item3]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Click the &amp;quot;Save Changes&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
==Assigning ID numbers==&lt;br /&gt;
&lt;br /&gt;
You can include the values of other grade items by using their ID number as references in your formulas. The ID number is surrounded by double square brackets, for example if you have a grade item with Quiz.3 as ID number, you will refer to this item as &amp;lt;nowiki&amp;gt;[[Quiz.3]]&amp;lt;/nowiki&amp;gt; in your calculation.&lt;br /&gt;
&lt;br /&gt;
Below the calculation field is a list of your course with its grade categories and grade items. Next to each item or category&#039;s total is displayed the ID number you can use in your calculation (already surrounded with double square brackets). However, since the ID number is optional, some items may not yet have one. These items without an ID number have instead a form field which lets you enter an ID number directly.&lt;br /&gt;
&lt;br /&gt;
As soon as you have assigned the ID numbers you need, you can click the &amp;quot;Add ID numbers&amp;quot; button, and the page will reload and show you the same list with the ID numbers you have just assigned. Now you can use them in your formulas.&lt;br /&gt;
&lt;br /&gt;
==Calculation functions==&lt;br /&gt;
&lt;br /&gt;
Every calculation must start with an equal sign (=). Following is an expression using operators and  functions supported by the system.&lt;br /&gt;
All common arithmetic operators are supported:&lt;br /&gt;
&lt;br /&gt;
* addition, using the plus (+) sign&lt;br /&gt;
* subtraction, using the minus (-) sign&lt;br /&gt;
* multiplication, using the asterisk (*)&lt;br /&gt;
* division, using the slash (/) &lt;br /&gt;
&lt;br /&gt;
with their common precedence rules: multiplications and divisions are evaluated first then additions and subtraction; so, =1+2-3*4/5 gives 0.6. Precedence can be changed using round parentheses as in =(((1+2)-3)*4)/5, which yields 0.&lt;br /&gt;
&lt;br /&gt;
Functions can also appear in expressions using the comma (,) character to separate arguments within function (round) brackets. (The separator character could be a semicolon (;) in other [[Language|languages]], see below).&lt;br /&gt;
&lt;br /&gt;
* average&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the average of the values in a list of arguments&lt;br /&gt;
* max&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the maximum value in a list of arguments&lt;br /&gt;
* min&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...):&amp;lt;/nowiki&amp;gt; Returns the minimum value in a list of arguments&lt;br /&gt;
* mod(dividend, divisor): Calculates the remainder of a division&lt;br /&gt;
* pi(): Returns the value of the number Pi&lt;br /&gt;
* power(base, power): Raises a number to the power of another&lt;br /&gt;
* round(number, count): Rounds number to count decimal digits&lt;br /&gt;
* floor(number): Maps a real number to the largest previous integer&lt;br /&gt;
* ceil(number): Maps a real number to the smallest following integer&lt;br /&gt;
* sum(&amp;lt;nowiki&amp;gt;[[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the sum of all arguments&lt;br /&gt;
&lt;br /&gt;
Many other mathematical functions are also supported:&lt;br /&gt;
&lt;br /&gt;
* sin()&lt;br /&gt;
* sinh()&lt;br /&gt;
* arcsin()&lt;br /&gt;
* asin()&lt;br /&gt;
* arcsinh()&lt;br /&gt;
* asinh()&lt;br /&gt;
* cos()&lt;br /&gt;
* cosh()&lt;br /&gt;
* arccos()&lt;br /&gt;
* acos()&lt;br /&gt;
* arccosh()&lt;br /&gt;
* acosh()&lt;br /&gt;
* tan()&lt;br /&gt;
* tanh()&lt;br /&gt;
* arctan()&lt;br /&gt;
* atan()&lt;br /&gt;
* arctanh()&lt;br /&gt;
* atanh()&lt;br /&gt;
* sqrt()&lt;br /&gt;
* abs()&lt;br /&gt;
* ln()&lt;br /&gt;
* log()&lt;br /&gt;
* exp()&lt;br /&gt;
&lt;br /&gt;
==Example calculations==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]])&amp;lt;/nowiki&amp;gt; - Returns the maximum value of Quiz.1, Quiz.4 and Assignment.1&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=average(max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]), min([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]))&amp;lt;/nowiki&amp;gt; - Returns the average of the maximum and the minimum values among Quiz.1, Quiz.4 and Assignment.1 (functions can be nested)&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=sum([[1]]*0.3, [[2]]*0.6, [[3]]*2)&amp;lt;/nowiki&amp;gt; - Returns a weighted grade calculations where item 1 is weighted 30%, item 2 is weighted at 60% and item 3 is weighted at 200%&lt;br /&gt;
&lt;br /&gt;
==Calculations when user language is not English==&lt;br /&gt;
&lt;br /&gt;
Calculation formulas use decimal and list separators as defined in the [https://docs.moodle.org/dev/Translation_langconfig langconfig.php] file of each [[Language packs|language pack]].&lt;br /&gt;
&lt;br /&gt;
The [[Decimal separator|decimal separator]] (a symbol used to mark the boundary between the integral and the fractional parts of a decimal number) is a point (.) in English. In other languages it may be a comma (,).&lt;br /&gt;
&lt;br /&gt;
The list separator (a symbol used to separate the items within a list, such as the arguments of a function) is a comma (,) in English. In other languages it may be a semicolon (;).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://www.youtube.com/watch?v=WKUGyzAXcyA Video on how to set up calculations in the gradebook (basic)]&lt;br /&gt;
*[http://www.youtube.com/watch?v=VBEj8mmu8lM Video on how to set up calculations in the gradebook (advanced)]&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/edit/tree/calculation]]&lt;br /&gt;
[[es:Cálculos de calificación]]&lt;br /&gt;
[[fr:Calcul de note]]&lt;br /&gt;
[[ru:Формулы и вычисления оценок]]&lt;br /&gt;
[[ja:評定計算]]&lt;br /&gt;
[[de:Bewertungen berechnen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_items&amp;diff=125256</id>
		<title>Grade items</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_items&amp;diff=125256"/>
		<updated>2016-09-10T10:42:43Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Activity-based grade items */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing grades}}&lt;br /&gt;
A grade item is a unit (typically an activity) where course participants are assessed through a grade or mark.&lt;br /&gt;
As such, a grade item is a container for grades and a set of settings applied to these grades. The settings affect the calculation and display of the grades in the gradebook reports and [[Grade_export|exports]].&lt;br /&gt;
&lt;br /&gt;
Grade items may refer to course activities (e.g. a quiz, an assignment etc.), [[Outcomes]] or  manual grades. &lt;br /&gt;
&lt;br /&gt;
== Grade items and gradebook ==&lt;br /&gt;
The three building blocks of the Gradebook are:&lt;br /&gt;
&lt;br /&gt;
#The grade item&lt;br /&gt;
#The [[Grade_categories|grade category]]&lt;br /&gt;
#The [[Grades|grade]]&lt;br /&gt;
&lt;br /&gt;
Grade items are represented by columns in the [[Grader_report | grader report]].&lt;br /&gt;
&lt;br /&gt;
Within a category, a [[Grades|grade]] summary is also a grade item itself.  Summary grade items for a category can show up in reports, and can be used in the calculation of the grade for the parent category.&lt;br /&gt;
&lt;br /&gt;
== Activity-based grade items ==&lt;br /&gt;
[[Image:editingradeitem.png|right|thumb|Editing a grade item]]&lt;br /&gt;
A number of activities such as [[Assignment]], [[Workshop]], [[Lesson]], [[Quiz]] and others  communicate their grades to the gradebook. The generated grade item can later be changed directly from Course administration&amp;gt;Grades, but this will then freeze it in the activity itself; so, a teacher who has edited an assignment grade in the gradebook will not be able to change it from the assignment, unless they unlock it in the gradebook.&lt;br /&gt;
&lt;br /&gt;
Here is a list of the settings that can be edited for an activity-based grade item:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Item name&#039;&#039;&#039; The name given to this item, for example the assignment name&lt;br /&gt;
*&#039;&#039;&#039;Item info&#039;&#039;&#039;: General information about the grade item. Optional.&lt;br /&gt;
*&#039;&#039;&#039;Grade to pass&#039;&#039;&#039;: Specify the minimum grade a student must achieve to be considered to have passed this item. This must be in real grades, not a percentage. Once this is done, grades will be highlighted in red for fail and green for pass in the gradebook. (The Grade to pass may also be specified from activity set up pages.)&lt;br /&gt;
*&#039;&#039;&#039;Grade type&#039;&#039;&#039;:  There are 4 grade types:&lt;br /&gt;
#None - No grading possible&lt;br /&gt;
#Value - A numerical value with a maximum and minimum&lt;br /&gt;
#Scale - An item in a list - see [[Scales]]&lt;br /&gt;
#Text - Feedback only&lt;br /&gt;
Only value and scale grade types may be aggregated. The grade type for an activity-based grade item is set on the activity settings page.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Overall decimal points&#039;&#039;&#039;: This specifies the number of decimal points to display for each grade. It has no effect on grade calculations, which are made with an accuracy of 5 decimal places. &lt;br /&gt;
*&#039;&#039;&#039;Multiplicator&#039;&#039;&#039;: Factor by which all grade for this grade item will be multiplied, with a maximum value of the maximum grade. For example, if the multiplicator is 2 and the maximum grade is 100, then all grades less than 50 are doubled, and all grades 50 and above are changed to 100. &lt;br /&gt;
*&#039;&#039;&#039;Offset&#039;&#039;&#039;: Number that will be added to every grade for this grade item, &#039;&#039;&#039;after&#039;&#039;&#039; the Multiplicator is applied. (Can be a negative number.)&lt;br /&gt;
*&#039;&#039;&#039;Hidden&#039;&#039;&#039;: Whether this grade item should be hidden from students.&lt;br /&gt;
*&#039;&#039;&#039;Hidden until&#039;&#039;&#039;: An optional date after which the grade item will no longer be hidden (i.e. a grades release date)&lt;br /&gt;
*&#039;&#039;&#039;Locked&#039;&#039;&#039;: Whether or not to lock this grade item. A locked grade item doesn&#039;t accept changes to its settings or grades from its related module.&lt;br /&gt;
*&#039;&#039;&#039;Locked after&#039;&#039;&#039;: A date after which the locking will be effective, usually after the grades release date.&lt;br /&gt;
&lt;br /&gt;
== Outcome items ==&lt;br /&gt;
&lt;br /&gt;
An outcome item is in most respects the same thing as a grade item. The main difference between the two is that the purpose of a outcome item is to rate students on a particular outcome/competency/goal, whereas grade items are used for grading students, usually with the intention of aggregating the results as a measure of the student&#039;s performance in the course activities.&lt;br /&gt;
&lt;br /&gt;
An outcome item is always linked with an outcome, which itself is linked to a [[Scales|scale]]. The scale may represent a quantitative measure, its values being arranged from lowest to highest; or it may represent a qualitative measure, in which the order of the scale values is irrelevant. The first type can be aggregated, but the second type shouldn&#039;t (we wouldn&#039;t want to fail a student because her favourite colour is &amp;quot;blue&amp;quot;!).&lt;br /&gt;
&lt;br /&gt;
An outcome item may optionally be linked to an activity. This activity may or may not appear in the gradebook (for example, a wiki is usually not graded, so does not appear). Linking an outcome item with an activity creates a grade item with the icon of the linked activity, but there is no other way to see which activity it is linked with. For this reason, it is a good idea to include the activity name in the name of the outcome item (e.g. Wiki 1: Participation).&lt;br /&gt;
&lt;br /&gt;
These can either be generated by the creation of a new activity module (by selecting [[Outcomes]] in the module creation form), or manually created like manual grade items. A grade outcome item uses a course outcome as its grading type, so such an outcome must be made available at the course level before a grade outcome item can be manually created.&lt;br /&gt;
&lt;br /&gt;
The settings of the grade outcome item edit form are identical to those of manual grade items, with the addition of two settings:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Outcome&#039;&#039;&#039;: The course outcome represented by this item&lt;br /&gt;
*&#039;&#039;&#039;Linked activity&#039;&#039;&#039;: The optional activity module to which this item will be linked&lt;br /&gt;
&lt;br /&gt;
== Manual grade items ==&lt;br /&gt;
[[File:editingmanualgrades.png|right|thumb|Editing a manual grade item]]&lt;br /&gt;
These grade items are created manually from &#039;&#039;Course administration &amp;gt; Gradebook setup&#039;&#039;. The &amp;quot;Add grade item&amp;quot; button is clicked, and the form appears. Several options are available here;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Item name&#039;&#039;&#039;: The display name of your grade item&lt;br /&gt;
*&#039;&#039;&#039;ID Number&#039;&#039;&#039;: An arbitrary string of characters used to refer to this grade item in Formulas. If set, it must be unique.&lt;br /&gt;
*&#039;&#039;&#039;Grade type&#039;&#039;&#039;: The type of grade: None (no grading possible), Value (a numerical value), Scale (an item in a list) or Text (arbitrary text). &lt;br /&gt;
*&#039;&#039;&#039;Scale&#039;&#039;&#039;: Which scale to use for grading: available only when the Scale grade type is selected. &lt;br /&gt;
*&#039;&#039;&#039;Maximum grade&#039;&#039;&#039;: The maximum grade that can be given (for scales: the number of items in the scale - 1)&lt;br /&gt;
*&#039;&#039;&#039;Minimum grade&#039;&#039;&#039;: The minimum grade that can be given (for scales: 0)&lt;br /&gt;
&lt;br /&gt;
Manual grade items are recognised in the Grader report by their icon like a pencil:&lt;br /&gt;
&lt;br /&gt;
[[File:manualgradeitem2.png]]&lt;br /&gt;
&lt;br /&gt;
Note that this icon is not clickable; to edit the manual grade item you have to click the edit icon just below it.&lt;br /&gt;
&lt;br /&gt;
==Grade item settings==&lt;br /&gt;
&lt;br /&gt;
===Site defaults===&lt;br /&gt;
&lt;br /&gt;
Grade item settings, accessed from &#039;&#039;Administration &amp;gt; Grades &amp;gt; Grade item settings,&#039;&#039; are the various settings that the administrator is able to edit for the grader report used by teachers. These settings will change what items are displayed for each grade. As administrator, you would turn on or off various settings and the teacher would input the actual data. &lt;br /&gt;
&lt;br /&gt;
[[Image:newgradeitemsettings.png|thumb|center|Grade item settings screen]]&lt;br /&gt;
&lt;br /&gt;
===Grade display type===&lt;br /&gt;
&lt;br /&gt;
This is the type of grade that is to be shown for each individual grade. Different school districts use different grading systems so this can be changed to suit your district.&lt;br /&gt;
&lt;br /&gt;
* Real - Grade from minimum to maximum range indicating total points received. Default from 0-100 but may be arbitrary.&lt;br /&gt;
* Percentage - Grade from 0 - 100% indicating the total points received divided by maximum possible amount times 100.&lt;br /&gt;
* [[Grade letters|Letter]]- Grade in the form of a letter representing a range of percentages.&lt;br /&gt;
&lt;br /&gt;
===Overall decimal points===&lt;br /&gt;
&lt;br /&gt;
This setting is for display purposes only. Grade calculations are made with an accuracy of 5 decimal places and grade letters, if used, are assigned accordingly.&lt;br /&gt;
&lt;br /&gt;
If rounding of grades in [[Grade calculations|grade calculations]] is required, the round(number, count) function may be used.&lt;br /&gt;
&lt;br /&gt;
===Advanced grade item options===&lt;br /&gt;
You can determine here what will be displayed when a teacher clicks on the &#039;Show more&#039; link.&lt;br /&gt;
These features can be set or viewed:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width:75%&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
| &lt;br /&gt;
* Item info&lt;br /&gt;
* ID Number&lt;br /&gt;
* Grade Type&lt;br /&gt;
* Scale&lt;br /&gt;
* Minimum Grade&lt;br /&gt;
* Maximum Grade&lt;br /&gt;
||&lt;br /&gt;
* Grade to pass&lt;br /&gt;
* Offset&lt;br /&gt;
* Multiplicator&lt;br /&gt;
* Grade display type&lt;br /&gt;
* Overall decimal places &lt;br /&gt;
|| &lt;br /&gt;
* Hidden&lt;br /&gt;
* Hidden until&lt;br /&gt;
* Locked&lt;br /&gt;
* Locked after&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/edit/tree/item]]&lt;br /&gt;
[[de:Bewertungsaspekte]]&lt;br /&gt;
[[es:Ítems de calificación]]&lt;br /&gt;
[[fr:Éléments de note]]&lt;br /&gt;
[[ja:評定項目]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Talk:Grade_calculations&amp;diff=125255</id>
		<title>Talk:Grade calculations</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Talk:Grade_calculations&amp;diff=125255"/>
		<updated>2016-09-10T10:36:05Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: Created page with &amp;quot;I tried to improve this page providing explanations of the examples, generalize the content, correct some minor errors.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I tried to improve this page providing explanations of the examples, generalize the content, correct some minor errors.&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125254</id>
		<title>Grade calculations</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125254"/>
		<updated>2016-09-10T10:33:45Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Calculations when user language is not English */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing grades}}&lt;br /&gt;
A grade calculation is a formula used to determine grades, based (optionally) on other grade items. Note that this is not the same as [[Calculated_question_type|Calculated question types]].&lt;br /&gt;
&lt;br /&gt;
Calculations for the gradebook follow the pattern of formulas/functions in popular spreadsheet programs. They start with an equal (=) sign, and use common mathematical operators and functions to produce a single numerical output. This output is then used as the computed value for the grade item you are editing.&lt;br /&gt;
&lt;br /&gt;
==Setting a grade calculation==&lt;br /&gt;
[[Image:neweditcalculation.png|thumb|Edit calculation setting]]&lt;br /&gt;
[[Image:newcalculationgrade.png|thumb|Example calculation]]&lt;br /&gt;
To set a grade calculation:&lt;br /&gt;
# Login as teacher or other user with permission to edit grades&lt;br /&gt;
# Click on Grades in the course administration block&lt;br /&gt;
# Click the &#039;Categories and items&#039; &lt;br /&gt;
# Click the &#039;Edit settings&#039; and then &#039;Edit calculation&#039;. Note: if you don&#039;t see this, then it must be enabled in &#039;&#039;Site administration&amp;gt;Grades&amp;gt;Report settings&amp;gt;Grader report&#039;&#039;&lt;br /&gt;
# Start with an equal sign (=)&lt;br /&gt;
# Type an expression using numbers, arithmetic opertors, mathematical functions and ID numbers; for example &amp;lt;nowiki&amp;gt;=average()&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Plug in your ID numbers (see below) enclosed in double square brackets, for example &amp;lt;nowiki&amp;gt;=[[item1]]+[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Separate each ID number with a comma, for example &amp;lt;nowiki&amp;gt;=average([[item1]], [[item2]])+[[item3]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Click the &amp;quot;Save Changes&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
==Assigning ID numbers==&lt;br /&gt;
&lt;br /&gt;
You can include the values of other grade items by using their ID number as references in your formulas. The ID number is surrounded by double square brackets, for example if you have a grade item with Quiz.3 as ID number, you will refer to this item as &amp;lt;nowiki&amp;gt;[[Quiz.3]]&amp;lt;/nowiki&amp;gt; in your calculation.&lt;br /&gt;
&lt;br /&gt;
Below the calculation field is a list of your course with its grade categories and grade items. Next to each item or category&#039;s total is displayed the ID number you can use in your calculation (already surrounded with double square brackets). However, since the ID number is optional, some items may not yet have one. These items without an ID number have instead a form field which lets you enter an ID number directly.&lt;br /&gt;
&lt;br /&gt;
As soon as you have assigned the ID numbers you need, you can click the &amp;quot;Add ID numbers&amp;quot; button, and the page will reload and show you the same list with the ID numbers you have just assigned. Now you can use them in your formulas.&lt;br /&gt;
&lt;br /&gt;
==Calculation functions==&lt;br /&gt;
&lt;br /&gt;
Every calculation must start with an equal sign (=). Following is an expression using operators and  functions supported by the system. The comma (,) character is used to separate arguments within function (round) brackets. (The separator character could be a semicolon (;) in other [[Language|languages]], see below).&lt;br /&gt;
&lt;br /&gt;
* average&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the average of the values in a list of arguments&lt;br /&gt;
* max&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the maximum value in a list of arguments&lt;br /&gt;
* min&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...):&amp;lt;/nowiki&amp;gt; Returns the minimum value in a list of arguments&lt;br /&gt;
* mod(dividend, divisor): Calculates the remainder of a division&lt;br /&gt;
* pi(): Returns the value of the number Pi&lt;br /&gt;
* power(base, power): Raises a number to the power of another&lt;br /&gt;
* round(number, count): Rounds number to count decimal digits&lt;br /&gt;
* floor(number): Maps a real number to the largest previous integer&lt;br /&gt;
* ceil(number): Maps a real number to the smallest following integer&lt;br /&gt;
* sum(&amp;lt;nowiki&amp;gt;[[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the sum of all arguments&lt;br /&gt;
* an asterisk (*) gives the product of two items: &amp;lt;nowiki&amp;gt;[[item1]]*[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Many mathematical functions are also supported:&lt;br /&gt;
&lt;br /&gt;
* sin()&lt;br /&gt;
* sinh()&lt;br /&gt;
* arcsin()&lt;br /&gt;
* asin()&lt;br /&gt;
* arcsinh()&lt;br /&gt;
* asinh()&lt;br /&gt;
* cos()&lt;br /&gt;
* cosh()&lt;br /&gt;
* arccos()&lt;br /&gt;
* acos()&lt;br /&gt;
* arccosh()&lt;br /&gt;
* acosh()&lt;br /&gt;
* tan()&lt;br /&gt;
* tanh()&lt;br /&gt;
* arctan()&lt;br /&gt;
* atan()&lt;br /&gt;
* arctanh()&lt;br /&gt;
* atanh()&lt;br /&gt;
* sqrt()&lt;br /&gt;
* abs()&lt;br /&gt;
* ln()&lt;br /&gt;
* log()&lt;br /&gt;
* exp()&lt;br /&gt;
&lt;br /&gt;
==Example calculations==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]])&amp;lt;/nowiki&amp;gt; - Returns the maximum value of Quiz.1, Quiz.4 and Assignment.1&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=average(max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]), min([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]))&amp;lt;/nowiki&amp;gt; - Returns the average of the maximum and the minimum values among Quiz.1, Quiz.4 and Assignment.1 (functions can be nested)&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=sum([[1]]*0.3, [[2]]*0.6, [[3]]*2)&amp;lt;/nowiki&amp;gt; - Returns a weighted grade calculations where item 1 is weighted 30%, item 2 is weighted at 60% and item 3 is weighted at 200%&lt;br /&gt;
&lt;br /&gt;
==Calculations when user language is not English==&lt;br /&gt;
&lt;br /&gt;
Calculation formulas use decimal and list separators as defined in the [https://docs.moodle.org/dev/Translation_langconfig langconfig.php] file of each [[Language packs|language pack]].&lt;br /&gt;
&lt;br /&gt;
The [[Decimal separator|decimal separator]] (a symbol used to mark the boundary between the integral and the fractional parts of a decimal number) is a point (.) in English. In other languages it may be a comma (,).&lt;br /&gt;
&lt;br /&gt;
The list separator (a symbol used to separate the items within a list, such as the arguments of a function) is a comma (,) in English. In other languages it may be a semicolon (;).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://www.youtube.com/watch?v=WKUGyzAXcyA Video on how to set up calculations in the gradebook (basic)]&lt;br /&gt;
*[http://www.youtube.com/watch?v=VBEj8mmu8lM Video on how to set up calculations in the gradebook (advanced)]&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/edit/tree/calculation]]&lt;br /&gt;
[[es:Cálculos de calificación]]&lt;br /&gt;
[[fr:Calcul de note]]&lt;br /&gt;
[[ru:Формулы и вычисления оценок]]&lt;br /&gt;
[[ja:評定計算]]&lt;br /&gt;
[[de:Bewertungen berechnen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125253</id>
		<title>Grade calculations</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125253"/>
		<updated>2016-09-10T10:31:22Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Example calculations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing grades}}&lt;br /&gt;
A grade calculation is a formula used to determine grades, based (optionally) on other grade items. Note that this is not the same as [[Calculated_question_type|Calculated question types]].&lt;br /&gt;
&lt;br /&gt;
Calculations for the gradebook follow the pattern of formulas/functions in popular spreadsheet programs. They start with an equal (=) sign, and use common mathematical operators and functions to produce a single numerical output. This output is then used as the computed value for the grade item you are editing.&lt;br /&gt;
&lt;br /&gt;
==Setting a grade calculation==&lt;br /&gt;
[[Image:neweditcalculation.png|thumb|Edit calculation setting]]&lt;br /&gt;
[[Image:newcalculationgrade.png|thumb|Example calculation]]&lt;br /&gt;
To set a grade calculation:&lt;br /&gt;
# Login as teacher or other user with permission to edit grades&lt;br /&gt;
# Click on Grades in the course administration block&lt;br /&gt;
# Click the &#039;Categories and items&#039; &lt;br /&gt;
# Click the &#039;Edit settings&#039; and then &#039;Edit calculation&#039;. Note: if you don&#039;t see this, then it must be enabled in &#039;&#039;Site administration&amp;gt;Grades&amp;gt;Report settings&amp;gt;Grader report&#039;&#039;&lt;br /&gt;
# Start with an equal sign (=)&lt;br /&gt;
# Type an expression using numbers, arithmetic opertors, mathematical functions and ID numbers; for example &amp;lt;nowiki&amp;gt;=average()&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Plug in your ID numbers (see below) enclosed in double square brackets, for example &amp;lt;nowiki&amp;gt;=[[item1]]+[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Separate each ID number with a comma, for example &amp;lt;nowiki&amp;gt;=average([[item1]], [[item2]])+[[item3]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Click the &amp;quot;Save Changes&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
==Assigning ID numbers==&lt;br /&gt;
&lt;br /&gt;
You can include the values of other grade items by using their ID number as references in your formulas. The ID number is surrounded by double square brackets, for example if you have a grade item with Quiz.3 as ID number, you will refer to this item as &amp;lt;nowiki&amp;gt;[[Quiz.3]]&amp;lt;/nowiki&amp;gt; in your calculation.&lt;br /&gt;
&lt;br /&gt;
Below the calculation field is a list of your course with its grade categories and grade items. Next to each item or category&#039;s total is displayed the ID number you can use in your calculation (already surrounded with double square brackets). However, since the ID number is optional, some items may not yet have one. These items without an ID number have instead a form field which lets you enter an ID number directly.&lt;br /&gt;
&lt;br /&gt;
As soon as you have assigned the ID numbers you need, you can click the &amp;quot;Add ID numbers&amp;quot; button, and the page will reload and show you the same list with the ID numbers you have just assigned. Now you can use them in your formulas.&lt;br /&gt;
&lt;br /&gt;
==Calculation functions==&lt;br /&gt;
&lt;br /&gt;
Every calculation must start with an equal sign (=). Following is an expression using operators and  functions supported by the system. The comma (,) character is used to separate arguments within function (round) brackets. (The separator character could be a semicolon (;) in other [[Language|languages]], see below).&lt;br /&gt;
&lt;br /&gt;
* average&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the average of the values in a list of arguments&lt;br /&gt;
* max&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the maximum value in a list of arguments&lt;br /&gt;
* min&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...):&amp;lt;/nowiki&amp;gt; Returns the minimum value in a list of arguments&lt;br /&gt;
* mod(dividend, divisor): Calculates the remainder of a division&lt;br /&gt;
* pi(): Returns the value of the number Pi&lt;br /&gt;
* power(base, power): Raises a number to the power of another&lt;br /&gt;
* round(number, count): Rounds number to count decimal digits&lt;br /&gt;
* floor(number): Maps a real number to the largest previous integer&lt;br /&gt;
* ceil(number): Maps a real number to the smallest following integer&lt;br /&gt;
* sum(&amp;lt;nowiki&amp;gt;[[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the sum of all arguments&lt;br /&gt;
* an asterisk (*) gives the product of two items: &amp;lt;nowiki&amp;gt;[[item1]]*[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Many mathematical functions are also supported:&lt;br /&gt;
&lt;br /&gt;
* sin()&lt;br /&gt;
* sinh()&lt;br /&gt;
* arcsin()&lt;br /&gt;
* asin()&lt;br /&gt;
* arcsinh()&lt;br /&gt;
* asinh()&lt;br /&gt;
* cos()&lt;br /&gt;
* cosh()&lt;br /&gt;
* arccos()&lt;br /&gt;
* acos()&lt;br /&gt;
* arccosh()&lt;br /&gt;
* acosh()&lt;br /&gt;
* tan()&lt;br /&gt;
* tanh()&lt;br /&gt;
* arctan()&lt;br /&gt;
* atan()&lt;br /&gt;
* arctanh()&lt;br /&gt;
* atanh()&lt;br /&gt;
* sqrt()&lt;br /&gt;
* abs()&lt;br /&gt;
* ln()&lt;br /&gt;
* log()&lt;br /&gt;
* exp()&lt;br /&gt;
&lt;br /&gt;
==Example calculations==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]])&amp;lt;/nowiki&amp;gt; - Returns the maximum value of Quiz.1, Quiz.4 and Assignment.1&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=average(max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]), min([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]))&amp;lt;/nowiki&amp;gt; - Returns the average of the maximum and the minimum values among Quiz.1, Quiz.4 and Assignment.1 (functions can be nested)&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=sum([[1]]*0.3, [[2]]*0.6, [[3]]*2)&amp;lt;/nowiki&amp;gt; - Returns a weighted grade calculations where item 1 is weighted 30%, item 2 is weighted at 60% and item 3 is weighted at 200%&lt;br /&gt;
&lt;br /&gt;
==Calculations when user language is not English==&lt;br /&gt;
&lt;br /&gt;
Calculation formulas use decimal and list separators as defined in the [https://docs.moodle.org/dev/Translation_langconfig langconfig.php] file of each [[Language packs|language pack]].&lt;br /&gt;
&lt;br /&gt;
The [[Decimal separator|decimal separator]] (a symbol used to mark the boundary between the integral and the fractional parts of a decimal number) is a point (.) in English. In other languages it may be a comma (,).&lt;br /&gt;
&lt;br /&gt;
The list separator (a symbol used to separate a list of ID numbers in square brackets) is a comma (,) in English. In other languages it may be a semicolon (;).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://www.youtube.com/watch?v=WKUGyzAXcyA Video on how to set up calculations in the gradebook (basic)]&lt;br /&gt;
*[http://www.youtube.com/watch?v=VBEj8mmu8lM Video on how to set up calculations in the gradebook (advanced)]&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/edit/tree/calculation]]&lt;br /&gt;
[[es:Cálculos de calificación]]&lt;br /&gt;
[[fr:Calcul de note]]&lt;br /&gt;
[[ru:Формулы и вычисления оценок]]&lt;br /&gt;
[[ja:評定計算]]&lt;br /&gt;
[[de:Bewertungen berechnen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125252</id>
		<title>Grade calculations</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125252"/>
		<updated>2016-09-10T10:23:38Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Calculation functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing grades}}&lt;br /&gt;
A grade calculation is a formula used to determine grades, based (optionally) on other grade items. Note that this is not the same as [[Calculated_question_type|Calculated question types]].&lt;br /&gt;
&lt;br /&gt;
Calculations for the gradebook follow the pattern of formulas/functions in popular spreadsheet programs. They start with an equal (=) sign, and use common mathematical operators and functions to produce a single numerical output. This output is then used as the computed value for the grade item you are editing.&lt;br /&gt;
&lt;br /&gt;
==Setting a grade calculation==&lt;br /&gt;
[[Image:neweditcalculation.png|thumb|Edit calculation setting]]&lt;br /&gt;
[[Image:newcalculationgrade.png|thumb|Example calculation]]&lt;br /&gt;
To set a grade calculation:&lt;br /&gt;
# Login as teacher or other user with permission to edit grades&lt;br /&gt;
# Click on Grades in the course administration block&lt;br /&gt;
# Click the &#039;Categories and items&#039; &lt;br /&gt;
# Click the &#039;Edit settings&#039; and then &#039;Edit calculation&#039;. Note: if you don&#039;t see this, then it must be enabled in &#039;&#039;Site administration&amp;gt;Grades&amp;gt;Report settings&amp;gt;Grader report&#039;&#039;&lt;br /&gt;
# Start with an equal sign (=)&lt;br /&gt;
# Type an expression using numbers, arithmetic opertors, mathematical functions and ID numbers; for example &amp;lt;nowiki&amp;gt;=average()&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Plug in your ID numbers (see below) enclosed in double square brackets, for example &amp;lt;nowiki&amp;gt;=[[item1]]+[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Separate each ID number with a comma, for example &amp;lt;nowiki&amp;gt;=average([[item1]], [[item2]])+[[item3]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Click the &amp;quot;Save Changes&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
==Assigning ID numbers==&lt;br /&gt;
&lt;br /&gt;
You can include the values of other grade items by using their ID number as references in your formulas. The ID number is surrounded by double square brackets, for example if you have a grade item with Quiz.3 as ID number, you will refer to this item as &amp;lt;nowiki&amp;gt;[[Quiz.3]]&amp;lt;/nowiki&amp;gt; in your calculation.&lt;br /&gt;
&lt;br /&gt;
Below the calculation field is a list of your course with its grade categories and grade items. Next to each item or category&#039;s total is displayed the ID number you can use in your calculation (already surrounded with double square brackets). However, since the ID number is optional, some items may not yet have one. These items without an ID number have instead a form field which lets you enter an ID number directly.&lt;br /&gt;
&lt;br /&gt;
As soon as you have assigned the ID numbers you need, you can click the &amp;quot;Add ID numbers&amp;quot; button, and the page will reload and show you the same list with the ID numbers you have just assigned. Now you can use them in your formulas.&lt;br /&gt;
&lt;br /&gt;
==Calculation functions==&lt;br /&gt;
&lt;br /&gt;
Every calculation must start with an equal sign (=). Following is an expression using operators and  functions supported by the system. The comma (,) character is used to separate arguments within function (round) brackets. (The separator character could be a semicolon (;) in other [[Language|languages]], see below).&lt;br /&gt;
&lt;br /&gt;
* average&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the average of the values in a list of arguments&lt;br /&gt;
* max&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the maximum value in a list of arguments&lt;br /&gt;
* min&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...):&amp;lt;/nowiki&amp;gt; Returns the minimum value in a list of arguments&lt;br /&gt;
* mod(dividend, divisor): Calculates the remainder of a division&lt;br /&gt;
* pi(): Returns the value of the number Pi&lt;br /&gt;
* power(base, power): Raises a number to the power of another&lt;br /&gt;
* round(number, count): Rounds number to count decimal digits&lt;br /&gt;
* floor(number): Maps a real number to the largest previous integer&lt;br /&gt;
* ceil(number): Maps a real number to the smallest following integer&lt;br /&gt;
* sum(&amp;lt;nowiki&amp;gt;[[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the sum of all arguments&lt;br /&gt;
* an asterisk (*) gives the product of two items: &amp;lt;nowiki&amp;gt;[[item1]]*[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Many mathematical functions are also supported:&lt;br /&gt;
&lt;br /&gt;
* sin()&lt;br /&gt;
* sinh()&lt;br /&gt;
* arcsin()&lt;br /&gt;
* asin()&lt;br /&gt;
* arcsinh()&lt;br /&gt;
* asinh()&lt;br /&gt;
* cos()&lt;br /&gt;
* cosh()&lt;br /&gt;
* arccos()&lt;br /&gt;
* acos()&lt;br /&gt;
* arccosh()&lt;br /&gt;
* acosh()&lt;br /&gt;
* tan()&lt;br /&gt;
* tanh()&lt;br /&gt;
* arctan()&lt;br /&gt;
* atan()&lt;br /&gt;
* arctanh()&lt;br /&gt;
* atanh()&lt;br /&gt;
* sqrt()&lt;br /&gt;
* abs()&lt;br /&gt;
* ln()&lt;br /&gt;
* log()&lt;br /&gt;
* exp()&lt;br /&gt;
&lt;br /&gt;
==Example calculations==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=average([[Quiz.1]], [[Quiz.4]], [[Assignment.1]])&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=average(max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]), min([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]))&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* Weighted grade calculations where item 1 is weighted 30%, item 2 is weighted at 60% and item 3 is weighted at 200%: &amp;lt;nowiki&amp;gt;=sum([[1]]*0.3,[[2]]*0.6,[[3]]*2)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Calculations when user language is not English==&lt;br /&gt;
&lt;br /&gt;
Calculation formulas use decimal and list separators as defined in the [https://docs.moodle.org/dev/Translation_langconfig langconfig.php] file of each [[Language packs|language pack]].&lt;br /&gt;
&lt;br /&gt;
The [[Decimal separator|decimal separator]] (a symbol used to mark the boundary between the integral and the fractional parts of a decimal number) is a point (.) in English. In other languages it may be a comma (,).&lt;br /&gt;
&lt;br /&gt;
The list separator (a symbol used to separate a list of ID numbers in square brackets) is a comma (,) in English. In other languages it may be a semicolon (;).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://www.youtube.com/watch?v=WKUGyzAXcyA Video on how to set up calculations in the gradebook (basic)]&lt;br /&gt;
*[http://www.youtube.com/watch?v=VBEj8mmu8lM Video on how to set up calculations in the gradebook (advanced)]&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/edit/tree/calculation]]&lt;br /&gt;
[[es:Cálculos de calificación]]&lt;br /&gt;
[[fr:Calcul de note]]&lt;br /&gt;
[[ru:Формулы и вычисления оценок]]&lt;br /&gt;
[[ja:評定計算]]&lt;br /&gt;
[[de:Bewertungen berechnen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125251</id>
		<title>Grade calculations</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125251"/>
		<updated>2016-09-10T10:13:30Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Assigning ID numbers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing grades}}&lt;br /&gt;
A grade calculation is a formula used to determine grades, based (optionally) on other grade items. Note that this is not the same as [[Calculated_question_type|Calculated question types]].&lt;br /&gt;
&lt;br /&gt;
Calculations for the gradebook follow the pattern of formulas/functions in popular spreadsheet programs. They start with an equal (=) sign, and use common mathematical operators and functions to produce a single numerical output. This output is then used as the computed value for the grade item you are editing.&lt;br /&gt;
&lt;br /&gt;
==Setting a grade calculation==&lt;br /&gt;
[[Image:neweditcalculation.png|thumb|Edit calculation setting]]&lt;br /&gt;
[[Image:newcalculationgrade.png|thumb|Example calculation]]&lt;br /&gt;
To set a grade calculation:&lt;br /&gt;
# Login as teacher or other user with permission to edit grades&lt;br /&gt;
# Click on Grades in the course administration block&lt;br /&gt;
# Click the &#039;Categories and items&#039; &lt;br /&gt;
# Click the &#039;Edit settings&#039; and then &#039;Edit calculation&#039;. Note: if you don&#039;t see this, then it must be enabled in &#039;&#039;Site administration&amp;gt;Grades&amp;gt;Report settings&amp;gt;Grader report&#039;&#039;&lt;br /&gt;
# Start with an equal sign (=)&lt;br /&gt;
# Type an expression using numbers, arithmetic opertors, mathematical functions and ID numbers; for example &amp;lt;nowiki&amp;gt;=average()&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Plug in your ID numbers (see below) enclosed in double square brackets, for example &amp;lt;nowiki&amp;gt;=[[item1]]+[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Separate each ID number with a comma, for example &amp;lt;nowiki&amp;gt;=average([[item1]], [[item2]])+[[item3]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Click the &amp;quot;Save Changes&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
==Assigning ID numbers==&lt;br /&gt;
&lt;br /&gt;
You can include the values of other grade items by using their ID number as references in your formulas. The ID number is surrounded by double square brackets, for example if you have a grade item with Quiz.3 as ID number, you will refer to this item as &amp;lt;nowiki&amp;gt;[[Quiz.3]]&amp;lt;/nowiki&amp;gt; in your calculation.&lt;br /&gt;
&lt;br /&gt;
Below the calculation field is a list of your course with its grade categories and grade items. Next to each item or category&#039;s total is displayed the ID number you can use in your calculation (already surrounded with double square brackets). However, since the ID number is optional, some items may not yet have one. These items without an ID number have instead a form field which lets you enter an ID number directly.&lt;br /&gt;
&lt;br /&gt;
As soon as you have assigned the ID numbers you need, you can click the &amp;quot;Add ID numbers&amp;quot; button, and the page will reload and show you the same list with the ID numbers you have just assigned. Now you can use them in your formulas.&lt;br /&gt;
&lt;br /&gt;
==Calculation functions==&lt;br /&gt;
&lt;br /&gt;
Every calculation must start with an equal sign (=). Following is a list of the functions supported by the calculation. The comma (,) character is used to separate arguments within function brackets. The comma can also be used to separate different functions. (The separator character could be a semicolon (;) in other [[Language|languages]], see below).&lt;br /&gt;
&lt;br /&gt;
* average&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the average of a sample&lt;br /&gt;
* max&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the maximum value in a list of arguments&lt;br /&gt;
* min&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...):&amp;lt;/nowiki&amp;gt; Returns the minimum value in a list of arguments&lt;br /&gt;
* mod(dividend, divisor): Calculates the remainder of a division&lt;br /&gt;
* pi(): Returns the value of the number Pi&lt;br /&gt;
* power(base, power): Raises a number to the power of another&lt;br /&gt;
* round(number, count): Rounds a number to a predefined accuracy&lt;br /&gt;
* floor(number): Maps a real number to the largest previous integer&lt;br /&gt;
* ceil(number): Maps a real number to the smallest following integer&lt;br /&gt;
* sum(&amp;lt;nowiki&amp;gt;[[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the sum of all arguments&lt;br /&gt;
* an asterisk (*) gives the product of two items: &amp;lt;nowiki&amp;gt;[[item1]]*[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A number of mathematical functions is also supported:&lt;br /&gt;
&lt;br /&gt;
* sin&lt;br /&gt;
* sinh&lt;br /&gt;
* arcsin&lt;br /&gt;
* asin&lt;br /&gt;
* arcsinh&lt;br /&gt;
* asinh&lt;br /&gt;
* cos&lt;br /&gt;
* cosh&lt;br /&gt;
* arccos&lt;br /&gt;
* acos&lt;br /&gt;
* arccosh&lt;br /&gt;
* acosh&lt;br /&gt;
* tan&lt;br /&gt;
* tanh&lt;br /&gt;
* arctan&lt;br /&gt;
* atan&lt;br /&gt;
* arctanh&lt;br /&gt;
* atanh&lt;br /&gt;
* sqrt&lt;br /&gt;
* abs&lt;br /&gt;
* ln&lt;br /&gt;
* log&lt;br /&gt;
* exp&lt;br /&gt;
&lt;br /&gt;
==Example calculations==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=average([[Quiz.1]], [[Quiz.4]], [[Assignment.1]])&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=average(max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]), min([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]))&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* Weighted grade calculations where item 1 is weighted 30%, item 2 is weighted at 60% and item 3 is weighted at 200%: &amp;lt;nowiki&amp;gt;=sum([[1]]*0.3,[[2]]*0.6,[[3]]*2)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Calculations when user language is not English==&lt;br /&gt;
&lt;br /&gt;
Calculation formulas use decimal and list separators as defined in the [https://docs.moodle.org/dev/Translation_langconfig langconfig.php] file of each [[Language packs|language pack]].&lt;br /&gt;
&lt;br /&gt;
The [[Decimal separator|decimal separator]] (a symbol used to mark the boundary between the integral and the fractional parts of a decimal number) is a point (.) in English. In other languages it may be a comma (,).&lt;br /&gt;
&lt;br /&gt;
The list separator (a symbol used to separate a list of ID numbers in square brackets) is a comma (,) in English. In other languages it may be a semicolon (;).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://www.youtube.com/watch?v=WKUGyzAXcyA Video on how to set up calculations in the gradebook (basic)]&lt;br /&gt;
*[http://www.youtube.com/watch?v=VBEj8mmu8lM Video on how to set up calculations in the gradebook (advanced)]&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/edit/tree/calculation]]&lt;br /&gt;
[[es:Cálculos de calificación]]&lt;br /&gt;
[[fr:Calcul de note]]&lt;br /&gt;
[[ru:Формулы и вычисления оценок]]&lt;br /&gt;
[[ja:評定計算]]&lt;br /&gt;
[[de:Bewertungen berechnen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125250</id>
		<title>Grade calculations</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125250"/>
		<updated>2016-09-10T10:11:01Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Setting a grade calculation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing grades}}&lt;br /&gt;
A grade calculation is a formula used to determine grades, based (optionally) on other grade items. Note that this is not the same as [[Calculated_question_type|Calculated question types]].&lt;br /&gt;
&lt;br /&gt;
Calculations for the gradebook follow the pattern of formulas/functions in popular spreadsheet programs. They start with an equal (=) sign, and use common mathematical operators and functions to produce a single numerical output. This output is then used as the computed value for the grade item you are editing.&lt;br /&gt;
&lt;br /&gt;
==Setting a grade calculation==&lt;br /&gt;
[[Image:neweditcalculation.png|thumb|Edit calculation setting]]&lt;br /&gt;
[[Image:newcalculationgrade.png|thumb|Example calculation]]&lt;br /&gt;
To set a grade calculation:&lt;br /&gt;
# Login as teacher or other user with permission to edit grades&lt;br /&gt;
# Click on Grades in the course administration block&lt;br /&gt;
# Click the &#039;Categories and items&#039; &lt;br /&gt;
# Click the &#039;Edit settings&#039; and then &#039;Edit calculation&#039;. Note: if you don&#039;t see this, then it must be enabled in &#039;&#039;Site administration&amp;gt;Grades&amp;gt;Report settings&amp;gt;Grader report&#039;&#039;&lt;br /&gt;
# Start with an equal sign (=)&lt;br /&gt;
# Type an expression using numbers, arithmetic opertors, mathematical functions and ID numbers; for example &amp;lt;nowiki&amp;gt;=average()&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Plug in your ID numbers (see below) enclosed in double square brackets, for example &amp;lt;nowiki&amp;gt;=[[item1]]+[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Separate each ID number with a comma, for example &amp;lt;nowiki&amp;gt;=average([[item1]], [[item2]])+[[item3]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Click the &amp;quot;Save Changes&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
==Assigning ID numbers==&lt;br /&gt;
&lt;br /&gt;
You can include the values of other grade items by using their ID number as references in your formulas. The ID number is surrounded by double square brackets, for example if you have a grade item with Quiz.3 as ID number, you will refer to this item as &amp;lt;nowiki&amp;gt;[[Quiz.3]]&amp;lt;/nowiki&amp;gt; in your calculation.&lt;br /&gt;
&lt;br /&gt;
Below the calculation field is a list of your course with its grade categories and grade items. Next to each item or category&#039;s total is displayed the ID number you can use in your calculation (already surrounded with double square brackets). However, since the ID number is optional, some items may not yet have one. These items without an ID number have instead a form field which lets you enter an ID number directly.&lt;br /&gt;
&lt;br /&gt;
As soon as you have assigned the ID numbers you need, you can click the &amp;quot;Add ID numbers&amp;quot; button, and the page will reload and show you the same list with the ID numbers you have just assigned.&lt;br /&gt;
&lt;br /&gt;
==Calculation functions==&lt;br /&gt;
&lt;br /&gt;
Every calculation must start with an equal sign (=). Following is a list of the functions supported by the calculation. The comma (,) character is used to separate arguments within function brackets. The comma can also be used to separate different functions. (The separator character could be a semicolon (;) in other [[Language|languages]], see below).&lt;br /&gt;
&lt;br /&gt;
* average&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the average of a sample&lt;br /&gt;
* max&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the maximum value in a list of arguments&lt;br /&gt;
* min&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...):&amp;lt;/nowiki&amp;gt; Returns the minimum value in a list of arguments&lt;br /&gt;
* mod(dividend, divisor): Calculates the remainder of a division&lt;br /&gt;
* pi(): Returns the value of the number Pi&lt;br /&gt;
* power(base, power): Raises a number to the power of another&lt;br /&gt;
* round(number, count): Rounds a number to a predefined accuracy&lt;br /&gt;
* floor(number): Maps a real number to the largest previous integer&lt;br /&gt;
* ceil(number): Maps a real number to the smallest following integer&lt;br /&gt;
* sum(&amp;lt;nowiki&amp;gt;[[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the sum of all arguments&lt;br /&gt;
* an asterisk (*) gives the product of two items: &amp;lt;nowiki&amp;gt;[[item1]]*[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A number of mathematical functions is also supported:&lt;br /&gt;
&lt;br /&gt;
* sin&lt;br /&gt;
* sinh&lt;br /&gt;
* arcsin&lt;br /&gt;
* asin&lt;br /&gt;
* arcsinh&lt;br /&gt;
* asinh&lt;br /&gt;
* cos&lt;br /&gt;
* cosh&lt;br /&gt;
* arccos&lt;br /&gt;
* acos&lt;br /&gt;
* arccosh&lt;br /&gt;
* acosh&lt;br /&gt;
* tan&lt;br /&gt;
* tanh&lt;br /&gt;
* arctan&lt;br /&gt;
* atan&lt;br /&gt;
* arctanh&lt;br /&gt;
* atanh&lt;br /&gt;
* sqrt&lt;br /&gt;
* abs&lt;br /&gt;
* ln&lt;br /&gt;
* log&lt;br /&gt;
* exp&lt;br /&gt;
&lt;br /&gt;
==Example calculations==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=average([[Quiz.1]], [[Quiz.4]], [[Assignment.1]])&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=average(max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]), min([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]))&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* Weighted grade calculations where item 1 is weighted 30%, item 2 is weighted at 60% and item 3 is weighted at 200%: &amp;lt;nowiki&amp;gt;=sum([[1]]*0.3,[[2]]*0.6,[[3]]*2)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Calculations when user language is not English==&lt;br /&gt;
&lt;br /&gt;
Calculation formulas use decimal and list separators as defined in the [https://docs.moodle.org/dev/Translation_langconfig langconfig.php] file of each [[Language packs|language pack]].&lt;br /&gt;
&lt;br /&gt;
The [[Decimal separator|decimal separator]] (a symbol used to mark the boundary between the integral and the fractional parts of a decimal number) is a point (.) in English. In other languages it may be a comma (,).&lt;br /&gt;
&lt;br /&gt;
The list separator (a symbol used to separate a list of ID numbers in square brackets) is a comma (,) in English. In other languages it may be a semicolon (;).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://www.youtube.com/watch?v=WKUGyzAXcyA Video on how to set up calculations in the gradebook (basic)]&lt;br /&gt;
*[http://www.youtube.com/watch?v=VBEj8mmu8lM Video on how to set up calculations in the gradebook (advanced)]&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/edit/tree/calculation]]&lt;br /&gt;
[[es:Cálculos de calificación]]&lt;br /&gt;
[[fr:Calcul de note]]&lt;br /&gt;
[[ru:Формулы и вычисления оценок]]&lt;br /&gt;
[[ja:評定計算]]&lt;br /&gt;
[[de:Bewertungen berechnen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125249</id>
		<title>Grade calculations</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_calculations&amp;diff=125249"/>
		<updated>2016-09-10T10:09:16Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Setting a grade calculation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing grades}}&lt;br /&gt;
A grade calculation is a formula used to determine grades, based (optionally) on other grade items. Note that this is not the same as [[Calculated_question_type|Calculated question types]].&lt;br /&gt;
&lt;br /&gt;
Calculations for the gradebook follow the pattern of formulas/functions in popular spreadsheet programs. They start with an equal (=) sign, and use common mathematical operators and functions to produce a single numerical output. This output is then used as the computed value for the grade item you are editing.&lt;br /&gt;
&lt;br /&gt;
==Setting a grade calculation==&lt;br /&gt;
[[Image:neweditcalculation.png|thumb|Edit calculation setting]]&lt;br /&gt;
[[Image:newcalculationgrade.png|thumb|Example calculation]]&lt;br /&gt;
To set a grade calculation:&lt;br /&gt;
# Login as teacher or other user with permission to edit grades&lt;br /&gt;
# Click on Grades in the course administration block&lt;br /&gt;
# Click the &#039;Categories and items&#039; &lt;br /&gt;
# Click the &#039;Edit settings&#039; and then &#039;Edit calculation&#039;. Note: if you don&#039;t see this, then it must be enabled in &#039;&#039;Site administration&amp;gt;Grades&amp;gt;Report settings&amp;gt;Grader report&#039;&#039;&lt;br /&gt;
# Start with an equal sign (=)&lt;br /&gt;
# Type an expression using numbers, arithmetic opertors, mathematical functions and ID numbers; for example &amp;lt;nowiki&amp;gt;=average()&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Plug in your ID numbers enclosed in double square brackets, for example &amp;lt;nowiki&amp;gt;=[[item1]]+[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Separate each ID number with a comma, for example &amp;lt;nowiki&amp;gt;=average([[item1]], [[item2]])+[[item3]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Click the &amp;quot;Save Changes&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
==Assigning ID numbers==&lt;br /&gt;
&lt;br /&gt;
You can include the values of other grade items by using their ID number as references in your formulas. The ID number is surrounded by double square brackets, for example if you have a grade item with Quiz.3 as ID number, you will refer to this item as &amp;lt;nowiki&amp;gt;[[Quiz.3]]&amp;lt;/nowiki&amp;gt; in your calculation.&lt;br /&gt;
&lt;br /&gt;
Below the calculation field is a list of your course with its grade categories and grade items. Next to each item or category&#039;s total is displayed the ID number you can use in your calculation (already surrounded with double square brackets). However, since the ID number is optional, some items may not yet have one. These items without an ID number have instead a form field which lets you enter an ID number directly.&lt;br /&gt;
&lt;br /&gt;
As soon as you have assigned the ID numbers you need, you can click the &amp;quot;Add ID numbers&amp;quot; button, and the page will reload and show you the same list with the ID numbers you have just assigned.&lt;br /&gt;
&lt;br /&gt;
==Calculation functions==&lt;br /&gt;
&lt;br /&gt;
Every calculation must start with an equal sign (=). Following is a list of the functions supported by the calculation. The comma (,) character is used to separate arguments within function brackets. The comma can also be used to separate different functions. (The separator character could be a semicolon (;) in other [[Language|languages]], see below).&lt;br /&gt;
&lt;br /&gt;
* average&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the average of a sample&lt;br /&gt;
* max&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the maximum value in a list of arguments&lt;br /&gt;
* min&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...):&amp;lt;/nowiki&amp;gt; Returns the minimum value in a list of arguments&lt;br /&gt;
* mod(dividend, divisor): Calculates the remainder of a division&lt;br /&gt;
* pi(): Returns the value of the number Pi&lt;br /&gt;
* power(base, power): Raises a number to the power of another&lt;br /&gt;
* round(number, count): Rounds a number to a predefined accuracy&lt;br /&gt;
* floor(number): Maps a real number to the largest previous integer&lt;br /&gt;
* ceil(number): Maps a real number to the smallest following integer&lt;br /&gt;
* sum(&amp;lt;nowiki&amp;gt;[[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the sum of all arguments&lt;br /&gt;
* an asterisk (*) gives the product of two items: &amp;lt;nowiki&amp;gt;[[item1]]*[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A number of mathematical functions is also supported:&lt;br /&gt;
&lt;br /&gt;
* sin&lt;br /&gt;
* sinh&lt;br /&gt;
* arcsin&lt;br /&gt;
* asin&lt;br /&gt;
* arcsinh&lt;br /&gt;
* asinh&lt;br /&gt;
* cos&lt;br /&gt;
* cosh&lt;br /&gt;
* arccos&lt;br /&gt;
* acos&lt;br /&gt;
* arccosh&lt;br /&gt;
* acosh&lt;br /&gt;
* tan&lt;br /&gt;
* tanh&lt;br /&gt;
* arctan&lt;br /&gt;
* atan&lt;br /&gt;
* arctanh&lt;br /&gt;
* atanh&lt;br /&gt;
* sqrt&lt;br /&gt;
* abs&lt;br /&gt;
* ln&lt;br /&gt;
* log&lt;br /&gt;
* exp&lt;br /&gt;
&lt;br /&gt;
==Example calculations==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=average([[Quiz.1]], [[Quiz.4]], [[Assignment.1]])&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=average(max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]), min([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]))&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* Weighted grade calculations where item 1 is weighted 30%, item 2 is weighted at 60% and item 3 is weighted at 200%: &amp;lt;nowiki&amp;gt;=sum([[1]]*0.3,[[2]]*0.6,[[3]]*2)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Calculations when user language is not English==&lt;br /&gt;
&lt;br /&gt;
Calculation formulas use decimal and list separators as defined in the [https://docs.moodle.org/dev/Translation_langconfig langconfig.php] file of each [[Language packs|language pack]].&lt;br /&gt;
&lt;br /&gt;
The [[Decimal separator|decimal separator]] (a symbol used to mark the boundary between the integral and the fractional parts of a decimal number) is a point (.) in English. In other languages it may be a comma (,).&lt;br /&gt;
&lt;br /&gt;
The list separator (a symbol used to separate a list of ID numbers in square brackets) is a comma (,) in English. In other languages it may be a semicolon (;).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://www.youtube.com/watch?v=WKUGyzAXcyA Video on how to set up calculations in the gradebook (basic)]&lt;br /&gt;
*[http://www.youtube.com/watch?v=VBEj8mmu8lM Video on how to set up calculations in the gradebook (advanced)]&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/edit/tree/calculation]]&lt;br /&gt;
[[es:Cálculos de calificación]]&lt;br /&gt;
[[fr:Calcul de note]]&lt;br /&gt;
[[ru:Формулы и вычисления оценок]]&lt;br /&gt;
[[ja:評定計算]]&lt;br /&gt;
[[de:Bewertungen berechnen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=125189</id>
		<title>Grade aggregation</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=125189"/>
		<updated>2016-09-03T23:17:31Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Highest grade */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}&lt;br /&gt;
The aggregation dropdown menu lets you choose the aggregation strategy that will be used to calculate each participant&#039;s overall grade for a [[Grade categories|grade category]]. The different options are explained below.&lt;br /&gt;
&lt;br /&gt;
The grades are first converted to percentage values (interval from 0 to 1), then aggregated using one of the strategies below and finally converted to the associated category item&#039;s range (between Minimum grade and Maximum grade).&lt;br /&gt;
&lt;br /&gt;
Important: An empty grade is simply a missing gradebook entry, and could mean different things. For example, it could be a participant who hasn&#039;t yet submitted an assignment, an assignment submission not yet graded by the teacher, or a grade that has been manually deleted by the gradebook administrator. Caution in interpreting these &amp;quot;empty grades&amp;quot; is thus advised.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Mean of grades ==&lt;br /&gt;
The sum of all grades divided by the total number of grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    (0.7 + 0.25 + 1.0)/3 = 0.65 --&amp;gt; 65/100&lt;br /&gt;
&lt;br /&gt;
== Weighted mean ==&lt;br /&gt;
Each grade item can be given a weight, which is then used in the arithmetic mean aggregation to influence the importance of each item in the overall mean. In simple terms, the category &amp;quot;total&amp;quot; will be equal to the sum of the scores in each grade item, these scores being multiplied by the grade items&#039; weights, and that sum being finally divided by the sum of the weights, as shown in this example.&lt;br /&gt;
    A1 70/100 weight 10, A2 20/80 weight 5, A3 10/10 weight 3, category max 100:&lt;br /&gt;
    (0.7*10 + 0.25*5 + 1.0*3)/18 = 0.625 --&amp;gt; 62.5/100&lt;br /&gt;
&lt;br /&gt;
== Simple weighted mean ==&lt;br /&gt;
The difference from Weighted mean is that weight is calculated as Maximum grade - Minimum grade for each item. 100 point assignment has weight 100, 10 point assignment has weight 10.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    (0.7*100 + 0.25*80 + 1.0*10)/190 = 0.526 --&amp;gt; 52.6/100&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Simple weighted mean&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. For example, if A3 is marked as extra credit in the above calculation:&lt;br /&gt;
    A1 70/100, A2 20/80, A3 (extra credit) 10/10, category max 100:&lt;br /&gt;
    (0.7*100 + 0.25*80 + 1.0*10)/180 = 0.556 --&amp;gt; 55.6/100&lt;br /&gt;
&lt;br /&gt;
== Mean of grades (with extra credits) ==&lt;br /&gt;
Arithmetic mean with a twist. An old, now unsupported aggregation strategy provided here only for backward compatibility with old activities.&lt;br /&gt;
&lt;br /&gt;
A value greater than 0 treats a grade item&#039;s grades as extra credit during aggregation. The number is a factor by which the grade value will be multiplied before it is added to the sum of all grades, but the item itself will not be counted in the division. For example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is set to 2&lt;br /&gt;
* Item 2 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0.0000&lt;br /&gt;
* Item 3 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0.0000&lt;br /&gt;
* All 3 items belong to Category 1, which has &amp;quot;Mean of grades (with extra credits)&amp;quot; as its aggregation strategy&lt;br /&gt;
* A student gets graded 20 on Item 1, 40 on Item 2 and 70 on Item 3&lt;br /&gt;
* The student&#039;s total for Category 1 will be 95/100 since 20*2 + (40 + 70)/2 = 95&lt;br /&gt;
&lt;br /&gt;
== Median of grades ==&lt;br /&gt;
The middle grade (or the mean of the two middle grades) when grades are arranged in order of size. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean).&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    median(0.7; 0.25; 1.0) --&amp;gt; 0.70 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Smallest grade ==&lt;br /&gt;
The result is the smallest grade after normalisation. It is usually used in combination with Aggregate only non-empty grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    min(0.7; 0.25; 1.0) = 0.25 --&amp;gt; 25/100&lt;br /&gt;
&lt;br /&gt;
== Highest grade ==&lt;br /&gt;
The result is the highest grade after normalisation.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    max(0.7; 0.25; 1.0) = 1.0 --&amp;gt; 100/100&lt;br /&gt;
&lt;br /&gt;
== Mode of grades ==&lt;br /&gt;
The mode is the grade that occurs the most frequently. It is more often used for non-numerical grades. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean). However it loses its meaning once there is more than one most frequently occurring grade (only one is kept), or when all the grades are different from each other.&lt;br /&gt;
    A1 70/100, A2 35/50, A3 20/80, A4 10/10, A5 7/10 category max 100:&lt;br /&gt;
    mode(0.7; 0.7; 0.25; 1.0; 0.7) = 0.7 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Natural ==&lt;br /&gt;
&lt;br /&gt;
This is the  sum of all grade values, scaled by weight. &lt;br /&gt;
&lt;br /&gt;
Scale grades are ignored. This is the only type that does not convert the grades to percentages internally. The Maximum grade of associated category item is calculated automatically as a sum of maximums from all aggregated items.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10:&lt;br /&gt;
    70 + 20 + 10 = 100/190&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Natural&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. Following is an example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100&lt;br /&gt;
* Item 2 is graded 0-75&lt;br /&gt;
* Item 1 has the &amp;quot;Act as extra credit&amp;quot; checkbox ticked, Item 2 doesn&#039;t.&lt;br /&gt;
* Both items belong to Category 1, which has &amp;quot;Natural&amp;quot; as its aggregation strategy&lt;br /&gt;
* Category 1&#039;s total will be graded 0-75&lt;br /&gt;
* A student gets graded 20 on Item 1 and 70 on Item 2&lt;br /&gt;
* The student&#039;s total for Category 1 will be 75/75 (20+70 = 90 but Item 1 only acts as extra credit, so it brings the total to its maximum)&lt;br /&gt;
&lt;br /&gt;
Natural aggregation functions as a sum of grades when the weight boxes are left alone. In this situation, the numbers in the weight boxes are informational and represent the effective weights in the sum. Natural aggregation can also function as a mean of grades, when the weight boxes are checked and then adjusted so that the weights are equal across a set of items in a category, or across a set of categories. Items can still be marked as &amp;quot;Extra credit&amp;quot; while using the weights to calculate a mean, and contribute to the total for the category.&lt;br /&gt;
&lt;br /&gt;
==Available aggregation types==&lt;br /&gt;
[[Image:availableaggregationtypes1.png|thumb|Available aggregation types setting]]&lt;br /&gt;
The default is &#039;Natural&#039; but the administrator can specify other types from  &#039;&#039; Site administration &amp;gt;administration &amp;gt; Grades &amp;gt; [[Grade category settings]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that reducing the number of aggregation types simply results in disabled aggregation types not appearing in the aggregation type dropdown menu. All existing grade category calculations remain the same, regardless of whether the aggregation type is later disabled by an administrator.&lt;br /&gt;
&lt;br /&gt;
[[ca:Agregació de les categories]]&lt;br /&gt;
[[fr:Tendance centrale de la catégorie]]&lt;br /&gt;
[[es:Agregación de categoría]]&lt;br /&gt;
[[de:Bewertungen zusammenfassen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=125188</id>
		<title>Grade aggregation</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=125188"/>
		<updated>2016-09-03T23:16:58Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Smallest grade */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}&lt;br /&gt;
The aggregation dropdown menu lets you choose the aggregation strategy that will be used to calculate each participant&#039;s overall grade for a [[Grade categories|grade category]]. The different options are explained below.&lt;br /&gt;
&lt;br /&gt;
The grades are first converted to percentage values (interval from 0 to 1), then aggregated using one of the strategies below and finally converted to the associated category item&#039;s range (between Minimum grade and Maximum grade).&lt;br /&gt;
&lt;br /&gt;
Important: An empty grade is simply a missing gradebook entry, and could mean different things. For example, it could be a participant who hasn&#039;t yet submitted an assignment, an assignment submission not yet graded by the teacher, or a grade that has been manually deleted by the gradebook administrator. Caution in interpreting these &amp;quot;empty grades&amp;quot; is thus advised.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Mean of grades ==&lt;br /&gt;
The sum of all grades divided by the total number of grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    (0.7 + 0.25 + 1.0)/3 = 0.65 --&amp;gt; 65/100&lt;br /&gt;
&lt;br /&gt;
== Weighted mean ==&lt;br /&gt;
Each grade item can be given a weight, which is then used in the arithmetic mean aggregation to influence the importance of each item in the overall mean. In simple terms, the category &amp;quot;total&amp;quot; will be equal to the sum of the scores in each grade item, these scores being multiplied by the grade items&#039; weights, and that sum being finally divided by the sum of the weights, as shown in this example.&lt;br /&gt;
    A1 70/100 weight 10, A2 20/80 weight 5, A3 10/10 weight 3, category max 100:&lt;br /&gt;
    (0.7*10 + 0.25*5 + 1.0*3)/18 = 0.625 --&amp;gt; 62.5/100&lt;br /&gt;
&lt;br /&gt;
== Simple weighted mean ==&lt;br /&gt;
The difference from Weighted mean is that weight is calculated as Maximum grade - Minimum grade for each item. 100 point assignment has weight 100, 10 point assignment has weight 10.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    (0.7*100 + 0.25*80 + 1.0*10)/190 = 0.526 --&amp;gt; 52.6/100&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Simple weighted mean&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. For example, if A3 is marked as extra credit in the above calculation:&lt;br /&gt;
    A1 70/100, A2 20/80, A3 (extra credit) 10/10, category max 100:&lt;br /&gt;
    (0.7*100 + 0.25*80 + 1.0*10)/180 = 0.556 --&amp;gt; 55.6/100&lt;br /&gt;
&lt;br /&gt;
== Mean of grades (with extra credits) ==&lt;br /&gt;
Arithmetic mean with a twist. An old, now unsupported aggregation strategy provided here only for backward compatibility with old activities.&lt;br /&gt;
&lt;br /&gt;
A value greater than 0 treats a grade item&#039;s grades as extra credit during aggregation. The number is a factor by which the grade value will be multiplied before it is added to the sum of all grades, but the item itself will not be counted in the division. For example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is set to 2&lt;br /&gt;
* Item 2 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0.0000&lt;br /&gt;
* Item 3 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0.0000&lt;br /&gt;
* All 3 items belong to Category 1, which has &amp;quot;Mean of grades (with extra credits)&amp;quot; as its aggregation strategy&lt;br /&gt;
* A student gets graded 20 on Item 1, 40 on Item 2 and 70 on Item 3&lt;br /&gt;
* The student&#039;s total for Category 1 will be 95/100 since 20*2 + (40 + 70)/2 = 95&lt;br /&gt;
&lt;br /&gt;
== Median of grades ==&lt;br /&gt;
The middle grade (or the mean of the two middle grades) when grades are arranged in order of size. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean).&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    median(0.7; 0.25; 1.0) --&amp;gt; 0.70 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Smallest grade ==&lt;br /&gt;
The result is the smallest grade after normalisation. It is usually used in combination with Aggregate only non-empty grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    min(0.7; 0.25; 1.0) = 0.25 --&amp;gt; 25/100&lt;br /&gt;
&lt;br /&gt;
== Highest grade ==&lt;br /&gt;
The result is the highest grade after normalisation.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    max(0.7 + 0.25 + 1.0) = 1.0 --&amp;gt; 100/100&lt;br /&gt;
&lt;br /&gt;
== Mode of grades ==&lt;br /&gt;
The mode is the grade that occurs the most frequently. It is more often used for non-numerical grades. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean). However it loses its meaning once there is more than one most frequently occurring grade (only one is kept), or when all the grades are different from each other.&lt;br /&gt;
    A1 70/100, A2 35/50, A3 20/80, A4 10/10, A5 7/10 category max 100:&lt;br /&gt;
    mode(0.7; 0.7; 0.25; 1.0; 0.7) = 0.7 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Natural ==&lt;br /&gt;
&lt;br /&gt;
This is the  sum of all grade values, scaled by weight. &lt;br /&gt;
&lt;br /&gt;
Scale grades are ignored. This is the only type that does not convert the grades to percentages internally. The Maximum grade of associated category item is calculated automatically as a sum of maximums from all aggregated items.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10:&lt;br /&gt;
    70 + 20 + 10 = 100/190&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Natural&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. Following is an example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100&lt;br /&gt;
* Item 2 is graded 0-75&lt;br /&gt;
* Item 1 has the &amp;quot;Act as extra credit&amp;quot; checkbox ticked, Item 2 doesn&#039;t.&lt;br /&gt;
* Both items belong to Category 1, which has &amp;quot;Natural&amp;quot; as its aggregation strategy&lt;br /&gt;
* Category 1&#039;s total will be graded 0-75&lt;br /&gt;
* A student gets graded 20 on Item 1 and 70 on Item 2&lt;br /&gt;
* The student&#039;s total for Category 1 will be 75/75 (20+70 = 90 but Item 1 only acts as extra credit, so it brings the total to its maximum)&lt;br /&gt;
&lt;br /&gt;
Natural aggregation functions as a sum of grades when the weight boxes are left alone. In this situation, the numbers in the weight boxes are informational and represent the effective weights in the sum. Natural aggregation can also function as a mean of grades, when the weight boxes are checked and then adjusted so that the weights are equal across a set of items in a category, or across a set of categories. Items can still be marked as &amp;quot;Extra credit&amp;quot; while using the weights to calculate a mean, and contribute to the total for the category.&lt;br /&gt;
&lt;br /&gt;
==Available aggregation types==&lt;br /&gt;
[[Image:availableaggregationtypes1.png|thumb|Available aggregation types setting]]&lt;br /&gt;
The default is &#039;Natural&#039; but the administrator can specify other types from  &#039;&#039; Site administration &amp;gt;administration &amp;gt; Grades &amp;gt; [[Grade category settings]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that reducing the number of aggregation types simply results in disabled aggregation types not appearing in the aggregation type dropdown menu. All existing grade category calculations remain the same, regardless of whether the aggregation type is later disabled by an administrator.&lt;br /&gt;
&lt;br /&gt;
[[ca:Agregació de les categories]]&lt;br /&gt;
[[fr:Tendance centrale de la catégorie]]&lt;br /&gt;
[[es:Agregación de categoría]]&lt;br /&gt;
[[de:Bewertungen zusammenfassen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=125187</id>
		<title>Grade aggregation</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Grade_aggregation&amp;diff=125187"/>
		<updated>2016-09-03T23:14:53Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Median of grades */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}&lt;br /&gt;
The aggregation dropdown menu lets you choose the aggregation strategy that will be used to calculate each participant&#039;s overall grade for a [[Grade categories|grade category]]. The different options are explained below.&lt;br /&gt;
&lt;br /&gt;
The grades are first converted to percentage values (interval from 0 to 1), then aggregated using one of the strategies below and finally converted to the associated category item&#039;s range (between Minimum grade and Maximum grade).&lt;br /&gt;
&lt;br /&gt;
Important: An empty grade is simply a missing gradebook entry, and could mean different things. For example, it could be a participant who hasn&#039;t yet submitted an assignment, an assignment submission not yet graded by the teacher, or a grade that has been manually deleted by the gradebook administrator. Caution in interpreting these &amp;quot;empty grades&amp;quot; is thus advised.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Mean of grades ==&lt;br /&gt;
The sum of all grades divided by the total number of grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    (0.7 + 0.25 + 1.0)/3 = 0.65 --&amp;gt; 65/100&lt;br /&gt;
&lt;br /&gt;
== Weighted mean ==&lt;br /&gt;
Each grade item can be given a weight, which is then used in the arithmetic mean aggregation to influence the importance of each item in the overall mean. In simple terms, the category &amp;quot;total&amp;quot; will be equal to the sum of the scores in each grade item, these scores being multiplied by the grade items&#039; weights, and that sum being finally divided by the sum of the weights, as shown in this example.&lt;br /&gt;
    A1 70/100 weight 10, A2 20/80 weight 5, A3 10/10 weight 3, category max 100:&lt;br /&gt;
    (0.7*10 + 0.25*5 + 1.0*3)/18 = 0.625 --&amp;gt; 62.5/100&lt;br /&gt;
&lt;br /&gt;
== Simple weighted mean ==&lt;br /&gt;
The difference from Weighted mean is that weight is calculated as Maximum grade - Minimum grade for each item. 100 point assignment has weight 100, 10 point assignment has weight 10.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    (0.7*100 + 0.25*80 + 1.0*10)/190 = 0.526 --&amp;gt; 52.6/100&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Simple weighted mean&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. For example, if A3 is marked as extra credit in the above calculation:&lt;br /&gt;
    A1 70/100, A2 20/80, A3 (extra credit) 10/10, category max 100:&lt;br /&gt;
    (0.7*100 + 0.25*80 + 1.0*10)/180 = 0.556 --&amp;gt; 55.6/100&lt;br /&gt;
&lt;br /&gt;
== Mean of grades (with extra credits) ==&lt;br /&gt;
Arithmetic mean with a twist. An old, now unsupported aggregation strategy provided here only for backward compatibility with old activities.&lt;br /&gt;
&lt;br /&gt;
A value greater than 0 treats a grade item&#039;s grades as extra credit during aggregation. The number is a factor by which the grade value will be multiplied before it is added to the sum of all grades, but the item itself will not be counted in the division. For example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is set to 2&lt;br /&gt;
* Item 2 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0.0000&lt;br /&gt;
* Item 3 is graded 0-100 and its &amp;quot;Extra credit&amp;quot; value is left at 0.0000&lt;br /&gt;
* All 3 items belong to Category 1, which has &amp;quot;Mean of grades (with extra credits)&amp;quot; as its aggregation strategy&lt;br /&gt;
* A student gets graded 20 on Item 1, 40 on Item 2 and 70 on Item 3&lt;br /&gt;
* The student&#039;s total for Category 1 will be 95/100 since 20*2 + (40 + 70)/2 = 95&lt;br /&gt;
&lt;br /&gt;
== Median of grades ==&lt;br /&gt;
The middle grade (or the mean of the two middle grades) when grades are arranged in order of size. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean).&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    median(0.7; 0.25; 1.0) --&amp;gt; 0.70 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Smallest grade ==&lt;br /&gt;
The result is the smallest grade after normalisation. It is usually used in combination with Aggregate only non-empty grades.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    min(0.7 + 0.25 + 1.0) = 0.25 --&amp;gt; 25/100&lt;br /&gt;
&lt;br /&gt;
== Highest grade ==&lt;br /&gt;
The result is the highest grade after normalisation.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10, category max 100:&lt;br /&gt;
    max(0.7 + 0.25 + 1.0) = 1.0 --&amp;gt; 100/100&lt;br /&gt;
&lt;br /&gt;
== Mode of grades ==&lt;br /&gt;
The mode is the grade that occurs the most frequently. It is more often used for non-numerical grades. The advantage over the mean is that it is not affected by outliers (grades which are uncommonly far from the mean). However it loses its meaning once there is more than one most frequently occurring grade (only one is kept), or when all the grades are different from each other.&lt;br /&gt;
    A1 70/100, A2 35/50, A3 20/80, A4 10/10, A5 7/10 category max 100:&lt;br /&gt;
    mode(0.7; 0.7; 0.25; 1.0; 0.7) = 0.7 --&amp;gt; 70/100&lt;br /&gt;
&lt;br /&gt;
== Natural ==&lt;br /&gt;
&lt;br /&gt;
This is the  sum of all grade values, scaled by weight. &lt;br /&gt;
&lt;br /&gt;
Scale grades are ignored. This is the only type that does not convert the grades to percentages internally. The Maximum grade of associated category item is calculated automatically as a sum of maximums from all aggregated items.&lt;br /&gt;
    A1 70/100, A2 20/80, A3 10/10:&lt;br /&gt;
    70 + 20 + 10 = 100/190&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;Natural&amp;quot; aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item&#039;s maximum grade will not be added to the category total&#039;s maximum grade, but the item&#039;s grade will. Following is an example:&lt;br /&gt;
&lt;br /&gt;
* Item 1 is graded 0-100&lt;br /&gt;
* Item 2 is graded 0-75&lt;br /&gt;
* Item 1 has the &amp;quot;Act as extra credit&amp;quot; checkbox ticked, Item 2 doesn&#039;t.&lt;br /&gt;
* Both items belong to Category 1, which has &amp;quot;Natural&amp;quot; as its aggregation strategy&lt;br /&gt;
* Category 1&#039;s total will be graded 0-75&lt;br /&gt;
* A student gets graded 20 on Item 1 and 70 on Item 2&lt;br /&gt;
* The student&#039;s total for Category 1 will be 75/75 (20+70 = 90 but Item 1 only acts as extra credit, so it brings the total to its maximum)&lt;br /&gt;
&lt;br /&gt;
Natural aggregation functions as a sum of grades when the weight boxes are left alone. In this situation, the numbers in the weight boxes are informational and represent the effective weights in the sum. Natural aggregation can also function as a mean of grades, when the weight boxes are checked and then adjusted so that the weights are equal across a set of items in a category, or across a set of categories. Items can still be marked as &amp;quot;Extra credit&amp;quot; while using the weights to calculate a mean, and contribute to the total for the category.&lt;br /&gt;
&lt;br /&gt;
==Available aggregation types==&lt;br /&gt;
[[Image:availableaggregationtypes1.png|thumb|Available aggregation types setting]]&lt;br /&gt;
The default is &#039;Natural&#039; but the administrator can specify other types from  &#039;&#039; Site administration &amp;gt;administration &amp;gt; Grades &amp;gt; [[Grade category settings]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that reducing the number of aggregation types simply results in disabled aggregation types not appearing in the aggregation type dropdown menu. All existing grade category calculations remain the same, regardless of whether the aggregation type is later disabled by an administrator.&lt;br /&gt;
&lt;br /&gt;
[[ca:Agregació de les categories]]&lt;br /&gt;
[[fr:Tendance centrale de la catégorie]]&lt;br /&gt;
[[es:Agregación de categoría]]&lt;br /&gt;
[[de:Bewertungen zusammenfassen]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=DragMath_equation_editor&amp;diff=106847</id>
		<title>DragMath equation editor</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=DragMath_equation_editor&amp;diff=106847"/>
		<updated>2013-10-12T10:31:49Z</updated>

		<summary type="html">&lt;p&gt;Fiorent: /* Setting up another display mechanism */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&#039;&#039;&#039;WARNING:&#039;&#039;&#039; As of Moodle 2.x DragMath is now in Moodle core (you need not install the code if you are running Moodle 2.x.) To use DragMath, you are &amp;quot;required&amp;quot; to activate the TeX filter on the server side because the core developers decided so (they were well advised that this would annoy countless users.....) However,  there is a hack to sever the connection between DragMath and TeX included below for your convenience. You will also need to have a recent version of a Java Runtime Environment installed on the end-user&#039;s machine which is properly configured.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may also want to look in the Math Forum for the latest discussion of SEE (Super Equation Editor, an initial nickname for this effort though the product has far outgrown just an equation editor). SEE is a comprehensive set of Math Plugins Mauno Korpelainen has been developing which are discussed here [[Advanced Maths Tools]] (this is only an &amp;quot;alpha&amp;quot; version of docs for installation and use.) If these tools are to your liking, they will largely eliminate your need to wrestle with TeX (unless you wish so to do.) And, if you want a full distro of TeX, consider doing a local install of TexLive and cobbling your code to eliminate the need for the convert binary.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
To quote the W3C [http://www.w3.org/Math/Software/mathml_software_cat_editors.html]:&lt;br /&gt;
 This is an open-source drag and drop equation editor written in Java.&lt;br /&gt;
 Once an expression is created the user can convert it into a variety &lt;br /&gt;
 of different linear syntax for mathematics, including MathML, LaTeX,&lt;br /&gt;
 Maple, Maxima or any user defined style.&lt;br /&gt;
Created by Christoper Sangwin and Alexander Billingsley at the University of Birmingham as part of the [http://www.stack.bham.ac.uk STACK project],  DragMath allows students to build mathematical expressions using a graphical drag-and-drop interface similar in appearance to that available in a number of office productivity suites. &lt;br /&gt;
&lt;br /&gt;
John Isner initially created and maintained several files that allowed for integration of DragMath with HTMLArea, Moodle&#039;s editor in 2007.  DragMath was then maintained by Marc Grober until it was integrated into core Moodle with the release of Moodle 2.0. An outgrowth of the development to integrate DragMath into tinyMCE has been the development of SEE by Mauno Korpelainen (a link to those plugins can be found below.) &lt;br /&gt;
&lt;br /&gt;
To use DragMath, users must have the Java Runtime Environment (JRE) version 1.5 or higher installed on their desktop computers.  Most systems come with the JRE as standard equipment, so you may not have to do anything. If you need to install the JRE manually, you can download it from [http://java.com/en/download/index.jsp here].  Note that the JRE is variously known as Java software for your computer, Java Runtime Environment, the Java Runtime, Runtime Environment, Runtime, Java Virtual Machine, Virtual Machine, Java VM, JVM, VM, or Java download.  &lt;br /&gt;
 &lt;br /&gt;
You can see a demo of the DragMath editor [http://www.dragmath.bham.ac.uk/ here].  The DragMath interface is highly intuitive and anyone can be using it productively after a few minutes of trial-and-error.  If you have questions about the editor, there is a short manual [http://www.dragmath.bham.ac.uk/doc/index.html here]  which also discusses the various configuration options, some of which are mentioned briefly below.&lt;br /&gt;
&lt;br /&gt;
==Using DragMath==&lt;br /&gt;
DragMath is based on the simple idea that the User who does not know a lot of TeX (pronounced Tech) can still create mathematical formula for publishing. In this case, Moodle is the dispaly agent so the TeX formulae are then rendered to a Moodle screen. This essentially means that with little experience, any Junior High Maths teacher can generate all the formulae they need for most aspects of Maths in Moodle.&lt;br /&gt;
&lt;br /&gt;
===Creating simple expressions===&lt;br /&gt;
&lt;br /&gt;
To begin, click on the DragMath insertion button. This opens The DragMath interface. &lt;br /&gt;
&lt;br /&gt;
[[Image:dragmath02.png|thumb|200px|center|Opening Dragmath]] &lt;br /&gt;
&lt;br /&gt;
The toolbar is different than you may expect, we are used to nice neat rows of buttons, but Dragmath has to use tabs. Each tab is tab is a collection of &amp;quot;templates&amp;quot;, that is each symbol is a &amp;quot;template&amp;quot; and can be dragged and dropped onto the work space.&lt;br /&gt;
&lt;br /&gt;
[[Image:dragmath01.png|thumb|200px|center|The DragMath Interface]] &lt;br /&gt;
&lt;br /&gt;
To end editing and insert the script into the Moodle page, click the Insert button. This simple, but not simplistic, interface is a strength of DragMath. It make it easy for even novices to create complex formulae.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
| colspan=&amp;quot;4&amp;quot;|&#039;&#039;&#039;A sequence for DragMath - click an image to enlarge&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|[[Image:dragmath04f.png|thumb|150px|Select the Tab with the symbols required]]&lt;br /&gt;
|[[Image:dragmath03.png|thumb|150px|Click, hold then drag&#039;n&#039;drop a symbol]]&lt;br /&gt;
|[[Image:dragmath04.png|thumb|150px|Enter the values, select an operation symbol]]&lt;br /&gt;
|[[Image:dragmath04a.png|thumb|150px|Select another symbol and drag&#039;n&#039;drop]]&lt;br /&gt;
|-&lt;br /&gt;
|[[Image:dragmath04b.png|thumb|150px|Add an equal (or other) sign]]&lt;br /&gt;
|[[Image:dragmath04c.png|thumb|150px|Add in a variable, (chi in this case) ]]&lt;br /&gt;
|[[Image:dragmath04d.png|thumb|150px|Click Insert]]&lt;br /&gt;
|[[Image:dragmath04e.png|thumb|150px|See the encoded result in the editing dialog.]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This same sequence of operations apply equally for all formulae, all insertions, no matter how complex they become. &lt;br /&gt;
&lt;br /&gt;
You can insert a template from the toolbar by drag and drop or by a click on the template in the tab, then clicking in the workspace.&lt;br /&gt;
&lt;br /&gt;
===Creating more complex expressions===&lt;br /&gt;
&lt;br /&gt;
More complex expressions are pretty much more of the same as above. Creating a simple multiplication table matrix, for example, seems complex,but in DragNath, it is actually simple:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
| colspan=&amp;quot;4&amp;quot;|&#039;&#039;&#039;A sequence for a simple Multiplication Matrice in DragMath - click an image to enlarge&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|[[Image:dragmath05.png|thumb|150px|Select the Tab and add in the multiplier]]&lt;br /&gt;
|[[Image:dragmath05a.png|thumb|150px|Click, hold then drag&#039;n&#039;drop the Matrix symbol]]&lt;br /&gt;
|[[Image:dragmath05b.png|thumb|150px|Enter the values, select a equal symbol]]&lt;br /&gt;
|[[Image:dragmath05c.png|thumb|150px|Add in the rows required]]&lt;br /&gt;
|-&lt;br /&gt;
|[[Image:dragmath05d.png|thumb|150px|Add in the columns required]]&lt;br /&gt;
|[[Image:dragmath05e.png|thumb|150px|Edit the Matrice ]]&lt;br /&gt;
|[[Image:dragmath05f.png|thumb|150px|Add the equal symbol]]&lt;br /&gt;
|[[Image:dragmath05g.png|thumb|150px|Add and edit in the second Matrice.]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Locally saving and restoring a DragMath expression===&lt;br /&gt;
When you press the Insert button, DragMath inserts the export string into your text and the DragMath window closes. &#039;&#039;The exported string can no longer be manipulated using DragMath.&#039;&#039;  If you decide to change the string, you have two options:&lt;br /&gt;
*delete the string (including the dollar signs or other token) and completely recreate it using DragMath&lt;br /&gt;
*edit the expression by hand&lt;br /&gt;
You can not tell DragMath to re-read the expression and show it again in two dimensions.  This is a theoretical limitation, not a limitation of DragMath.&lt;br /&gt;
&lt;br /&gt;
But suppose the expression is very complicated.  It would be impractical to start over just to make a simple change.  Before you Insert the expression, you can save a copy of the expression (a .drgm file) to your local disk using the Save button (see screenshot).  Later, if you need to make a change, you open the saved .drgm file.&lt;br /&gt;
&lt;br /&gt;
[[Image:Dragmath_save_and_restore.png|DragMath instructions]]&lt;br /&gt;
&lt;br /&gt;
A .drgm file contains three-dimensional representation of your mathematical expression.  It is a binary file that can only be opened by DragMath.&lt;br /&gt;
===Additional Editing===&lt;br /&gt;
&lt;br /&gt;
There are times when &#039;&#039;&#039;DragMath&#039;&#039;&#039; is not going to have a symbol or something you might want. Or perhaps you left something out of the DragMath constuctor, so you want to include it manually. Most likely, for something like the matrix created earlier, I want to go to 15, which means I have to change the structure of the matrix, and edit in some numbers. This is easily done with a little forethought. Copy and paste and delete or edit what you want and do not want.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
| colspan=&amp;quot;4&amp;quot;|&#039;&#039;&#039;Manually editing a DragMath construction  - click an image to enlarge&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|[[Image:dragmath06a.png|thumb|150px|Select, copy and paste the original matrix]]&lt;br /&gt;
|[[Image:dragmath06b.png|thumb|150px|Edit to what is actually required]]&lt;br /&gt;
|[[Image:dragmath06c.png|thumb|150px|Delete the original matrix]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Sometimes however, you just want to include something you forgot, or rather, add something that was not there in the first place. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
| colspan=&amp;quot;4&amp;quot;|&#039;&#039;&#039;Accurately editing a DragMath construction manually  - click an image to enlarge&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|[[Image:dragmath06d.png|thumb|150px|Construct the original equation]]&lt;br /&gt;
|[[Image:dragmath06e.png|thumb|150px|Copy, then edit to what is actually required]]&lt;br /&gt;
|[[Image:dragmath06f.png|thumb|150px|Return to the edited page]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==What DragMath Does and How It Does It==&lt;br /&gt;
===Configuration files===&lt;br /&gt;
DragMath allows you to create your own configuration files.  That means it can be used to parse and display what you tell it to parse and display.  By way of example, DragMath comes with a number of configuration files,  one of which has been specifically designed to place doubledollar tokens before and after inserted text. We have seen a number of people change the TeX tokens in Modle using MathJax, and then become nonplussed that DragMath stops working.  No DragMath still works,  but it is likely inserting tokens that MathJax is not parsing. This can get confusing if you have more than one display technology in place.  DragMath allows you to alter the tokens it inserts, so you can quite easily, for example, have DragMath insert startmath or endmath if that is what you want to use for tokens.&lt;br /&gt;
===Language Files===&lt;br /&gt;
DragMath can also use quite a few languages.&lt;br /&gt;
==So! You want to use DragMath but don&#039;t want to use the TeX filter?==&lt;br /&gt;
===What?===&lt;br /&gt;
Yes.  Moodle devs decided that you should not use DragMath unless you used the Moodle TeX filter (yes, over objections from lots of folk.)  Does that mean that the TeX filter is the best way to go? Hardly.  The TeX filter is rather long in the tooth, desperately in need of revision, and essentially only provides a fallback to a mimetex binary if you have not installed a TeX distribution. There are lots of other options for Math display in Moodle,  may of them much easier to configure and use!&lt;br /&gt;
===Procedure===&lt;br /&gt;
====Decoupling DragMath from the Tex Filter====&lt;br /&gt;
Since default configuration of tinymce (the default editor) requires that TeX filter is enabled before Dragmath plugin can be used we need to edit file lib/editor/tinymce/lib.php&lt;br /&gt;
&lt;br /&gt;
First, make a copy of that file to make sure that you can revert back to the original. &lt;br /&gt;
&lt;br /&gt;
Second, open the file for editing (with an appropriate editor that will not do unseen things to the contents of your file)&lt;br /&gt;
&lt;br /&gt;
Third, locate lines 107-111:&lt;br /&gt;
&lt;br /&gt;
 if (array_key_exists(&#039;filter/tex&#039;, $filters)) {&lt;br /&gt;
 $xdragmath = &#039;dragmath,&#039;;&lt;br /&gt;
 } else {&lt;br /&gt;
 $xdragmath = &#039;&#039;;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Fourth, replace all those lines with this one line:&lt;br /&gt;
&lt;br /&gt;
 $xdragmath = &#039;dragmath,&#039;;&lt;br /&gt;
&lt;br /&gt;
removing the if statement that makes DragMath visible only if the TeX filter is turned on.&lt;br /&gt;
&lt;br /&gt;
Fifth, save the file.&lt;br /&gt;
&lt;br /&gt;
Sixth, replace the original file lib/editor/tinymce/lib.php with this modified version.&lt;br /&gt;
&lt;br /&gt;
====Setting up another display mechanism====&lt;br /&gt;
Now DragMath will show up in your editor,  but you have no way of displaying the TeX or other code that you might insert with DragMath. You can explore the docs and the Math forum and you will find quite a few other ways to display Math in Moodle.  One very popular way is to use MathJax. Under Moodle 2.x the AdditionalHtml field can be used to add the reference to MathJax and even do some configuration. &lt;br /&gt;
To accomplish this, as an administrator of your site go to: Site administration -&amp;gt; Appearance -&amp;gt; Additional HTML -&amp;gt; Within HEAD &lt;br /&gt;
Now, add &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text/css&amp;quot; href=&amp;quot;http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css&amp;quot; media=&amp;quot;screen&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
 &amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;http://jsxgraph.uni-bayreuth.de/distrib/GeonextReader.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
 &amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&amp;quot;&amp;gt;&lt;br /&gt;
 MathJax.Hub.Config({&lt;br /&gt;
    tex2jax: {&lt;br /&gt;
      inlineMath: [ [&#039;$$&#039;,&#039;$$&#039;], [&amp;quot;\\(&amp;quot;,&amp;quot;\\)&amp;quot;], [&#039;@i&#039;,&#039;@i&#039;] ], &lt;br /&gt;
      displayMath:[ [&amp;quot;\\[&amp;quot;,&amp;quot;\\[&amp;quot;], [&#039;@d&#039;,&#039;@d&#039;] ],&lt;br /&gt;
      processEscapes: true&lt;br /&gt;
    }&lt;br /&gt;
  });&lt;br /&gt;
 &amp;lt;/script&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Save changes.&lt;br /&gt;
&lt;br /&gt;
Make sure that Tex filter and Algebra filter are disabled in Site administration &amp;gt; Plugins &amp;gt; Filters &amp;gt; Manage filters&lt;br /&gt;
&lt;br /&gt;
Your moodle 2 is now using MathJax from a cloud server in cdn.mathjax.org with given delimiters (in this example double dollars and @i  for inlineMath and @d for displayMath). You can choose to use other delimiters in configuration if you want or swap hat are there, BUT you may not use delimiters Moodle employs for other purposes and you need to be very careful of the syntax. You do not need to have the same token for beginning and end (for example,  one could use startmath and endmath as tokens. See http://mathjax.org for additional information on these and other parameters.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Wait!&amp;quot;, you say. &amp;quot;What about the first three lines I added to AdditionalHtml?&amp;quot; We thought you would never ask.  These lines add access to jsxgraph and GeoNextReader which you can find discussed in these forums and at the jsxgraph site, http://jsxgraph.uni-bayreuth.de/wp/ Consider this temporary, as you shoulod update the jsxgraph reference to use its cloud source. See a discussion here: http://jsxgraph.uni-bayreuth.de/wp/download/&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[Advanced Maths Tools]] For an explanation of the SEE tools&lt;br /&gt;
* [[Using TeX Notation]] Some ideas and syntax&lt;br /&gt;
* [[TeX notation filter]] Turning TeX on&lt;br /&gt;
* [http://www.youtube.com/watch?v=mfc7umQ2xLA| A simple YouTube video] Constructing a simple equation. &lt;br /&gt;
&lt;br /&gt;
*[http://www.youtube.com/watch?feature=endscreen&amp;amp;NR=1&amp;amp;v=8wfjwJTa784|  Dragmath tutorial 1]  &lt;br /&gt;
*[http://www.youtube.com/watch?v=XIuMNrvsVN8|  Dragmath tutorial 2]  &lt;br /&gt;
*[http://www.youtube.com/watch?v=g98o0fpmosQ&amp;amp;feature=relmfu|  Dragmath tutorial 3]  &lt;br /&gt;
*[http://www.youtube.com/watch?v=88KN2Y-pJw0&amp;amp;feature=relmfu|  Dragmath tutorial 4]  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Discussion of the transition of DragMath to Moodle core: http://moodle.org/mod/forum/discuss.php?d=125977&amp;amp;parent=551794&lt;br /&gt;
&lt;br /&gt;
[[ca:DragMath_editor_d%27equacions]]&lt;/div&gt;</summary>
		<author><name>Fiorent</name></author>
	</entry>
</feed>