 # Add statistical functionality to datasets for calculated and calculated simple question types

XMLWordPrintable

#### Details

• Type: Improvement
• Status: Open
• Priority: Minor
• Resolution: Unresolved
• Affects Version/s: 3.5.1
• Fix Version/s: None
• Component/s:
• Labels:
None
• Affected Branches:
MOODLE_35_STABLE

# Suggested Improvements

• Add normal distribution as an option for random items in a dataset
• Add probabilistic functions to the available functions
• Permutation with and without repetition
• Variation without repetition
• Combination with and without repetition

# Testing

## Normal distribution

1. Add a new question - question type 'calculated'
2. Question text = '{x}'
3. Answer formula = '{x}'
4. Save changes
5. Next Page
6. Range of values: select '1' for µ and '0.5' for sigma
7. Add 30 new items
8. Display all 30 new items
9. Make sure the created data sets follow a normal distribution

## Add factorial function to the available arithmetic operators

### Permutation without repetition

1. Create a new question - question type 'calculated'
2. Question text = '3! = {x}'
3. Answer formula = 'factorial({x})'
4. Save changes
5. Next Page
6. Item to add:
• Wild card = '3'
• Range of Values Minimum = '3'
• Range of Values Maximum = '3'
• Decimal places = '0'
• Distribution = 'Uniform'
7. Add 1 Item
8. Make sure that Set 1 Wild card {x} = '3' and Correct answer = '6'
9. Repeat all steps with question type 'calculated simple'

### Permutation with repetition

1. Create a new question - question type 'calculated'
2. Question text = 'permutation(7 2 3 2) = (7!) / (2!*3!*2!)'
3. Answer formula = 'permutation({a}{b}{c}{d})'
4. Save changes
5. Next Page
6. Item to add:
• Wild card {a} = '7'
• Range of Values Minimum = '7'
• Range of Values Maximum = '7'
• Decimal places = '0'
• Distribution = 'Uniform'
• Wild card {b} = '2'
• Range of Values Minimum = '2'
• Range of Values Maximum = '2'
• Decimal places = '0'
• Distribution = 'Uniform'
• Wild card {c} = '3'
• Range of Values Minimum = '3'
• Range of Values Maximum = '3'
• Decimal places = '0'
• Distribution = 'Uniform'
• Wild card {a} = '2'
• Range of Values Minimum = '2'
• Range of Values Maximum = '2'
• Decimal places = '0'
• Distribution = 'Uniform'
7. Add 1 Item
8. Make sure that Correct answer = '210'
9. Repeat all steps with question type 'calculated simple'

### Variation without repetition

1. Create a new question - question type 'calculated'
2. Question text = 'variation(5 2) = 5! / 2!
3. Answer formula = 'variation({a}{b})'
4. Save changes
5. Next Page
6. Item to add:
• Wild card {a} = '5'
• Range of Values Minimum = '5'
• Range of Values Maximum = '5'
• Decimal places = '0'
• Distribution = 'Uniform'
• Wild card {b} = '2'
• Range of Values Minimum = '2'
• Range of Values Maximum = '2'
• Decimal places = '0'
• Distribution = 'Uniform'
7. Add 1 Item
8. Make sure that Correct answer = '60'
9. Repeat all steps with question type 'calculated simple'

### Combination without repetition

1. Create a new question - question type 'calculated'
2. Question text = 'bincoeff(4 2)'
3. Answer formula = 'bincoeff({a}{b})'
4. Save changes
5. Next Page
6. Item to add:
• Wild card {a} = '4'
• Range of Values Minimum = '4'
• Range of Values Maximum = '4'
• Decimal places = '0'
• Distribution = 'Uniform'
• Wild card {b} = '2'
• Range of Values Minimum = '2'
• Range of Values Maximum = '2'
• Decimal places = '0'
• Distribution = 'Uniform'
7. Add 1 Item
8. Make sure that Correct answer = '6'
9. Repeat all steps with question type 'calculated simple'

### Combination with repetition

1. Create a new question - question type 'calculated'
2. Question text = 'combination(4 2)'
3. Answer formula = 'combination({a}{b})'
4. Save changes
5. Next Page
6. Item to add:
• Wild card {a} = '4'
• Range of Values Minimum = '4'
• Range of Values Maximum = '4'
• Decimal places = '0'
• Distribution = 'Uniform'
• Wild card {b} = '2'
• Range of Values Minimum = '2'
• Range of Values Maximum = '2'
• Decimal places = '0'
• Distribution = 'Uniform'
7. Add 1 Item
8. Make sure that Correct answer = '10'
9. Repeat all steps with question type 'calculated simple'

#### People

• Assignee: Unassigned
Reporter: Stefan Weber
Participants:
Component watchers:
Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
• Votes:
0 Vote for this issue
Watchers:
3 Start watching this issue

#### Dates

• Created:
Updated: