Question 1 Write your own R function or loop to find all the integers that are s
ID: 3041215 • Letter: Q
Question
Question 1 Write your own R function or loop to find all the integers that are smaller than N = 45053 and can be divided by a calculate the sum of square roots of them For example, for N = 7, a = 2, b = 3, you need to calculate V2 + V3 + 4 + 6 89 or b = 103 and ype your answer here Question 2 What is the shape of the normal Q-Q plot of the t1ratio in Lab 4? Choose all that are correct A. curve bends upwards (above qqline) at the upper end B. curve bends upwards (above qqline) at the lower end C. close to a straight line D. curve bends downwards (below qqline) at the upper end E. curve bends at upper end but is otherwise close to a straight line F curve bends at lower end but is otherwise close to a straight line G. curve bends at both ends H. curve bends downwards (below qqline) at the lower end I. None of the above Question 3 For the simulation in Lab 4, produce a normal Q-Q plot for the residuals variance (sigmahat 2 in Lab 4 material). What is the shape of the plot? Choose all that are correct. A. curve bends upwards (above qqline) at the upper end B. curve bends downwards (below qqline) at the lower end C. curve bends at lower end but is otherwise close to a straight line D. curve bends upwards (above qqline) at the lower end E. close to a straight line F curve bends at upper end but is otherwise close to a straight line G. curve bends at both ends H. curve bends downwards (below qqline) at the upper end I. None of the aboveExplanation / Answer
Will only answer the first independent question,
Q1 : The required R fucntion is
Q1 = function (N,a,b){
x_a = which ((1:N %% a) == 0)
x_b = which ((1:N %% b) == 0)
x = sort(union(x_a, x_b))
s = sum (sqrt (x))
return (s)
}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.