Enable contrast version

Tutor profile: Tomas C.

Inactive
Tomas C.
Tutoring since 2015
Tutor Satisfaction Guarantee

Questions

Subject: R Programming

TutorMe
Question:

What is the difference between `&` and `&&` in R?

Inactive
Tomas C.
Answer:

The functional `&` is a vectorized operation, meaning it can return a vector. For example: x <- 1:10 x %% 2 == 0 & x > 5 will return a vector [1] FALSE FALSE FALSE FALSE FALSE TRUE FALSE TRUE FALSE TRUE On the other hand, `&&` only evaluates the first element of each vector x <- 1:10 x %% 2 == 0 && x > 5 [1] FALSE

Subject: Statistics

TutorMe
Question:

What is a general method to estimate the variance of an estimator when it is not possible to derive its formula?

Inactive
Tomas C.
Answer:

Bootstrap is an excellent option. It takes samples with replacement from the sample obtained, calculates the estimate with each subsample as the original sample, and estimates the variability through the variability in the estimates of the subsamples. This method also allows to obtain the whole sampling distribution of an estimator, meaning we could estimate much more interesting things than just the variance.

Subject: Data Science

TutorMe
Question:

Can you include explanatory variables in a linear model when it is not related linearly with the response variable?

Inactive
Tomas C.
Answer:

Yes. The term linear model does not mean that each explanatory variable is linearly related to the outcome. It just means that each of the terms of the model is related to the outcome linearly. Then, the model $$y = \beta_0 + \beta_1x + \beta_2x^2 $$ is linear because each predictor, $$x$$ and $$x^2$$ is linearly related to $$y$$ through each $$\beta$$ coefficient. However, it does not mean that $$y$$ and $$x$$ are linearly related. The relationship shown there is quadratic, indeed.

Contact tutor

Send a message explaining your
needs and Tomas will reply soon.
Contact Tomas

Request lesson

Ready now? Request a lesson.
Start Lesson

FAQs

What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Lesson" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.