Hi everybody
I’ve got several questions about the makeup exam, and I think it will be fair that I share the answers with all of you.
Question 1.1 has three parts
sizes and assign to an auxiliary variable, let’s call it sn=10000 or more, fixed probability prob and a single size savgThe function calc_average should return the vector avg. If done correctly, the vectors size and avg should have the same length. This can be done with a for loop or using sapply.
In Question 1.2, please remember to show only the coefficients of the linear model
In Question 1.3 we do four parts
probs and assign to an auxiliary variable, let’s call it pavg using calc_average(p, sizes)avg ~ sizes and evaluate its coefficientsall_avgIf done correctly, the vectors probs and all_avg should have the same length. This can be done with a for loop or using sapply.
Question 2 is more or less the same idea. Be careful with the details.
Question 3 is plain English. No need to write detailed plans. Just explain the resulting formula.
Please ask me any question you may have. Good luck. Take care. Enjoy.