Fake Assignment For Class Demo
Jenna G. Tichon, 7617016
Setup
1. Replace 1111111 with your student id in the code below in order to generate the dataset you will use
for this assignment. This part is not worth marks but you will receive a 0 on your assignment if it
is not completed correctly.
This will create a vector x that contains the data you will use for this
assignment and perform your functions on.
set.seed(
7617016
)
p
<-
runif(
1
,
0
,
20
)
p
## [1] 11.92492
set.seed(
7617016
)
q
<-
runif(
1
,
0
,
10
)
q
## [1] 5.96246
set.seed(
7617016
)
x
<-
rbeta(
1000
, p, q)
2. Calculate the max of the distribution.
max(x)
## [1] 0.9048366
Max: 0.9048366
3. Make a normal quantile plot of the distribution. Title it “Plot for Fake Assignment”. Comment on
whether the data appears to follow a normal distribution.
qqnorm(x,
main =
"Plot for Fake Assignment"
)
qqline(x)
1