OLS Autograder (Q1 to Q7)

Score: 0%

Student Name

Enter your full name.

Q1. Coin flip game (cost 30¢)

NOT YET

Answer all parts, then click “Check Q1”.


    

Q2. Unfair coin break-even probability

NOT YET

It still costs 30¢ to play, but the coin is not fair. Enter the probability of heads that makes the expected value exactly 30¢.


    

Q3. Expected value and variance

NOT YET

Let X take on values 0 through 4 with equal probability. Enter the expected value and the variance.


    

Q4. Sample estimates using sum() and length()

NOT YET

The sample is x <- c(1,1,1,2,2,2,2,3,3,3). Enter your estimates for E[X] and Var(X). Also paste the R code you used. Your code should use sum() and length().


    

Q5. Line slope and y-intercept

NOT YET

Take the line y = 3x + 5.


    

Q6. OLS slope and intercept from cov() and var()

NOT YET

Enter your values for b1 and b0, then paste the R code you used. Your code should use cov(), var(), and mean().


    

Q7. Fit OLS in one pipeline

NOT YET

First paste the R code you used to fit the model. Then fill in the two interpretation blanks.


    

Completion PDF

READY

Download a completion PDF that includes your name, a timestamp, and your score.