MGSC 291 Exam #2 - Farnoush

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/40

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 7:05 PM on 3/19/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

41 Terms

1
New cards

Taking transformations of variables to create new predictor variables in a regression is known as

feature engineering

2
New cards

In the following line of R code, what is/are the predictor variable(s)?

fit <- glm(y ~ .-x1, data = myData)

all columns in myData other than x1 and y

3
New cards

why is -x1 excluded from the predictor variables?

fit <- glm(y ~ .-x1, data = myData)

"-" means to exclude

4
New cards

In the following line of R code, what is/are the response variable(s)?

fit <- glm(y ~ .-x1, data = myData)

y

5
New cards

In the following model, how is the coefficient on x interpreted?

fit <- glm ( log(y) ~ log(x), data = myData )

the percent change in y for each 1% increase in x (because a log-log model)

6
New cards

Logistical regression must...

have "family = binomial" to be logistical regression

7
New cards

Reference level for "make"?

R chooses the first make provided → in this case it was Acura

8
New cards

What does the coefficient mileage:year represent?

the interaction between mileage and year

9
New cards

Using the first model, what is the expected impact on the price for a car with the Wagon body style?

NEGATIVE number so a DECREASE compared to reference/baseline body style

10
New cards

What are the model degrees of freedom for the second model?

Number returned when using the coef function

11
New cards

Which assumption for linear regression is obviously violated for model 1?

constant variance = crazier dot group

12
New cards

Regardless of the model, there are 2 points on each plot that are far away from the other points. What do these indicate?

these cars are selling for a much higher amount than the model predicts

13
New cards

What is the value returned from the following line of code?

> predict(fit3,newdata,type="response")

the probability of defaulting on the loan

14
New cards

What is the value returned from the following line of code?

> predict(fit3,newdata)

1

0.066

the log(odds) or defaulting on the loan

15
New cards

The correlation of data with a lagged version of itself is called

Autocorrelation

16
New cards

Suppose you have a time series model and the lag1 coefficient is = 1.2. What type of series do you have?

Greater than 1 = diverging

17
New cards

In a time series, regular variation that is repeated within a year is called

seasonal variation

18
New cards

By making the response variable cnt>7000 , we are creating a model that will predict:

the probability of more than 7,000 rides in a day.

19
New cards

How does glm() know to run a logistic rather than a linear regression?

by specifying the family="binomial" argument

20
New cards

Which function will list all categories of weathersit?

levels()

21
New cards

Adding the lag variable to the model

accounts for the autocorrelation that is present

22
New cards

how did you determine the type of time series?

by looking at the value of the lag-1 coefficient in the glm() output

23
New cards

choose a log-log model when

variables move multiplicatively with each other

24
New cards

the predict() function in R takes the values to predict from

a data frame

25
New cards

What is the estimated value of sales for Dominick's Orange Juice priced at $2?

5728.8

<p>5728.8</p>
26
New cards

Interactions allow you to model

whether one variable changes the effect of another variable on the response

27
New cards

Interpret the meaning of R^2

the % of total variation in the response variable that is due to the variation in the predictor variables

28
New cards

a residual observation is defined to be

the observed value of the response--the predicted value for the response

29
New cards

in a linear regression with 5 inputs, how many model degrees of freedom are there?

6

30
New cards

logistic regression is appropriate when

the response is binary

31
New cards

in logsitic regression we predict...

predicted probability

32
New cards

which expression represents the odds in a logistic regression model

B

<p>B</p>
33
New cards

which expression gives the predicted probability in a logistic regression model?

C

<p>C</p>
34
New cards

B

<p>B</p>
35
New cards

What is the value returned from the following line of code?

the probability of being spam for observation #2

<p>the probability of being spam for observation #2</p>
36
New cards

log odd of success (y=1)

<p>log odd of success (y=1)</p>
37
New cards

In time series modeling how can we quantify trend?

include a time index variable as a predictor variable in the model

38
New cards

in time series modeling, how can we quantify seasonal patterns?

add seasonal factor effects as predictor variables to the model

39
New cards

if autocorrelation is present, there is a violation of the basic linear regression assumption of

independence of observations

40
New cards

the autocorrelation function tracks

correlation of values in a series at different lags

41
New cards

if you have a random walk, you should...

perform the "returns" transformation

Explore top notes

note
Silver-Russell syndrome
Updated 1137d ago
0.0(0)
note
Final
Updated 1043d ago
0.0(0)
note
Ch 2 - Origins of sociology
Updated 1085d ago
0.0(0)
note
Tennis Elbow
Updated 1137d ago
0.0(0)
note
Silver-Russell syndrome
Updated 1137d ago
0.0(0)
note
Final
Updated 1043d ago
0.0(0)
note
Ch 2 - Origins of sociology
Updated 1085d ago
0.0(0)
note
Tennis Elbow
Updated 1137d ago
0.0(0)

Explore top flashcards

flashcards
Exercise 2
22
Updated 552d ago
0.0(0)
flashcards
550 Digital SAT Vocab Terms
20
Updated 753d ago
0.0(0)
flashcards
Chemistry Polyatomic Ions
22
Updated 476d ago
0.0(0)
flashcards
La ciencia y la tecnología
34
Updated 432d ago
0.0(0)
flashcards
Exercise 2
22
Updated 552d ago
0.0(0)
flashcards
550 Digital SAT Vocab Terms
20
Updated 753d ago
0.0(0)
flashcards
Chemistry Polyatomic Ions
22
Updated 476d ago
0.0(0)
flashcards
La ciencia y la tecnología
34
Updated 432d ago
0.0(0)