Error
There was an error loading the page.
The student must write R code to generate samples and calculate CDFs of some common distributions.
Metadata
Taxonomy: mathcentre
Taxonomy: Kind of activity
Taxonomy: Context
Contributors
Feedback
From users who are members of R programming :
![]() |
said | Ready to use | 2 years, 7 months ago |
History
Christian Lawson-Perfect 1 year, 10 months ago
Published this.Aamir Khan 2 years, 7 months ago
Gave some feedback: Ready to use
Aamir Khan commented 2 years, 7 months ago
Expected answers now show the literal numbers.
Variables are not being passed anymore so things like rnorm(n,mu,sigma) won't be marked as correct.
Christian Lawson-Perfect 2 years, 7 months ago
Saved a checkpoint:
Since you define the variables n, mu and sigma in R, the student can write rnorm(n,mu,sigma) and it's marked correct.
I think you should either not pass them through as variables, but sub into the preamble, or pass them through under hard-to-guess names.
The expected answer should certainly use the literal numbers, rather than the names.
Aamir Khan 2 years, 7 months ago
Gave some feedback: Needs to be tested
Aamir Khan 2 years, 7 months ago
Created this.There is only one version of this question that you have access to.
There are 2 other versions that do you not have access to.
Name | Type | Generated Value |
---|
mu | integer |
2
|
||||
sigma | number |
0.5
|
||||
n | integer |
13
|
||||
x | integer |
3
|
||||
p | number |
0.4
|
||||
lambda | integer |
6
|
||||
y | integer |
10
|
||||
alpha | number |
3.6
|
Name | Type | Generated Value |
---|
Generated value: integer
Use this tab to check that this question works as expected.
Part | Test | Passed? |
---|---|---|
Code | ||
Hasn't run yet | ||
Code | ||
Hasn't run yet | ||
Code | ||
Hasn't run yet | ||
Code | ||
Hasn't run yet | ||
Code | ||
Hasn't run yet | ||
Code | ||
Hasn't run yet |
This question is used in the following exams: