
R Functions for Random Sampling
Interactive Video
•
Mathematics, Computers, Instructional Technology
•
9th - 10th Grade
•
Hard
Patricia Brown
FREE Resource
Read more
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function in R is used to generate a random number within a specified range?
rpois
rbinom
rnorm
runif
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What distribution does the 'runif' function in R use to generate random numbers?
Binomial distribution
Uniform distribution
Poisson distribution
Normal distribution
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you generate multiple random numbers between 5 and 10 using 'runif'?
By using the 'sample' function
By specifying the number of random numbers needed
By using a loop
By calling the function multiple times
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function in R is used to generate random integers?
runif
sample
rpois
rnorm
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does setting 'replace' to TRUE in the 'sample' function allow?
Only unique values in the output
Duplicate values in the output
Sorting of the output
Filtering of the output
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when 'replace' is set to FALSE in the 'sample' function?
The output is filtered
The output is sorted
Only unique values are selected
Duplicates are allowed
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can the 'sample' function be used in non-numerical contexts?
By generating random numbers
By selecting random elements from a list
By sorting a list
By filtering a list
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Mathematics
12 questions
Graphing Inequalities on a Number Line
Quiz
•
9th Grade
20 questions
Translations, Reflections & Rotations
Quiz
•
8th - 10th Grade
15 questions
Two Step Equations
Quiz
•
9th Grade
20 questions
Parallel and Perpendicular lines
Quiz
•
9th Grade
10 questions
Types of Slope
Quiz
•
6th - 9th Grade
20 questions
Triangle Congruence Theorems
Quiz
•
9th Grade
14 questions
Model and Solve Linear Equations
Quiz
•
9th - 12th Grade
20 questions
Slope from Two Points
Quiz
•
9th Grade