100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
MISY262 Final exam review 2024 $8.49   Add to cart

Exam (elaborations)

MISY262 Final exam review 2024

 0 view  0 purchase
  • Course
  • Institution

MISY262 Final exam review 2024 How would you sort the elements of list w in ascending order? ** Answ** w = sort(w) What is the code to calculate the correlation between lists a=c(1,2,3,4,5) and b=c(6,7,8,9,18)? ** Answ** cor(a,b)

Preview 2 out of 14  pages

  • August 23, 2024
  • 14
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
avatar-seller
MISY262 Final exam review 2024



How would you sort the elements of list w in ascending order? ** Answ** w=
sort(w)


What is the code to calculate the correlation between lists a=c(1,2,3,4,5) and
b=c(6,7,8,9,18)? ** Answ** cor(a,b)


What is the code to calculate covariance between the lists A=c(3,4,1,10,6) and
B=c(-8,4,70,2,1)? ** Answ** cov(A,B)


What does length(which(X==4)) return? ** Answ** The indices of the
elements that equal 4


Which of the following statements is an example of a Type II (2) error? **
Answ** A model does not categorize a picture as containing a bicycle, when it
does contain a bicycle.


What would be the null hypothesis in this scenario?
We want to determine if attendance has a significantly positive impact on final
grades for a college course. ** Answ** Students who attend every class do not
receive higher grades than those who do not.


What is the code to find the 6th and 7th elements of the list w? ** Answ**
w[6:7]

, To subtract the standard deviation of list v (created in question 3) from the mean of
list w (created in question 1), you would type:
>mean(w) - SD(V)
Is this correct? ** Answ** No, we need to be more careful as R is case
sensitive.


What does unique(w) return? ** Answ** A list containing all the elements of
w, without repeating them


What is the code to find the 81st percentile of list w (created in question 1). **
Answ** quantile(w, .81)


What is the correct code to get the total elements of w that are less than 10 using 1
line of code? ** Answ** the correct code is length(which(w<10))


What is the correct code to see how many total elements of w equal to 5 using 1
line of code? ** Answ** length(which(w==5))


We would like to know the average fare of taxi trips for different numbers of
passengers.
Which of these R commands will give us this information? ** Answ**
aggregate(Taxi$fare, by=list(Taxi$passengers), mean)


We want to determine if the number of drivers working affects the fuel cost. What
is the correct code to establish a linear regression model for these variables?
Assume the data frame is named "d". ** Answ**
fit1=lm(d$fuelcost~d$driversworking)

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller smartchoices. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $8.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

81298 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$8.49
  • (0)
  Add to cart