Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

In a linear regression, the coefficients of the model are estimated by minimizing the sum of the squares of ________.

Answer»

In a linear REGRESSION, the coefficients of the MODEL are estimated by minimizing the sum of the squares of ________.
Choose the correct option from below list
(1)residuals
(2)y values
(3)x values
(4)x and y values

Answer:-(1)residuals

2.

Regression functions in statsmodels library, can just take a patsy formula as input as you compute the respective regression model.

Answer»

Regression functions in statsmodels library, can just take a patsy FORMULA as INPUT as you COMPUTE the respective regression model.
State if it is true or false?
Choose the correct OPTION from below list
(1)False
(2)True

Answer:-(2)True

3.

Which of the following function can used to download a dataset from R repository?

Answer»

Which of the FOLLOWING function can used to DOWNLOAD a dataset from R repository?
Choose the CORRECT option from below list
(1)read_data
(2)get_rdataset
(3)read_rdataset
(4)fetch_rdataset

Answer:-(2)get_rdataset

4.

Which of the following options correctly depict the relation between cumulative distribution function (cdf) and survival function (sf)?

Answer»

Which of the following options correctly DEPICT the relation between CUMULATIVE distribution function (cdf) and survival function (SF)?
Choose the correct option from below list
(1)sf = SQRT(cdf)
(2)cdf = sqrt(sf)
(3)cdf + sf = 1
(4)sf = cdf + pdf

Answer:-(3)cdf + sf = 1

5.

What is the cumulative probability of finding F-statistic higher than 1, for a F distribution with degrees of freedom 2 and 27?

Answer»

What is the cumulative probability of FINDING F statistic higher than 1, for a F distribution with DEGREES of freedom 2 and 27?
Choose the correct option from below list
(1)0.852
(2)0.456
(3)0.762
(4)0.381

Answer:-(4)0.381

6.

While performing anova on a regression model fitted with multiple variables, the alternative hypothesis is framed as:

Answer»

While performing ANOVA on a REGRESSION model fitted with MULTIPLE variables, the alternative hypothesis is framed as
Coefficients of all independent variables not equal to ZERO. State if it is

true or false?
Choose the correct option from below LIST
(1)False
(2)True

Answer:-(1)False

7.

Which of the following function of patsy module, is used to generate design matrices?

Answer»

Which of the following FUNCTION of patsy MODULE, is used to generate DESIGN matrices?
Choose the correct option from below LIST
(1)dmatrix
(2)design
(3)designmatrices
(4)dmatrices

Answer:-(4)dmatrices

8.

Which of the following libraries is used for generating design matrices automatically?

Answer»

Which of the FOLLOWING LIBRARIES is used for generating design matrices automatically?
Choose the CORRECT option from below list
(1)design
(2)matrix
(3)patsy
(4)dm

Answer:-(3)patsy

9.

Which of the following attribute can be used on a fitted model summary object to obtain fitted values?

Answer»

Which of the following attribute can be used on a fitted model summary object to obtain fitted values?
Choose the CORRECT option from below LIST
(1)fitted
(2)fitted_values
(3)fvalues
(4)fittedvalues

Answer:-(4)fittedvalues

10.

Which of the following function is used to test if categorical data occurs with given frequency?

Answer»

Which of the following function is USED to test if categorical DATA occurs with given FREQUENCY?
Choose the CORRECT option from below list
(1)stats.chis
(2)stats.chi
(3)stats.chi2
(4)stats.chisquare

Answer:-(4)stats.chisquare

11.

What is the cumulative probability of finding F-statistic lower than 1, for a F distribution with degrees of freedom 2 a

Answer»

What is the cumulative PROBABILITY of FINDING F statistic lower than 1, for a F distribution with degrees of freedom 2 and 27?
Choose the correct option from below list
(1)0.852
(2)0.992
(3)0.619
(4)0.762

Answer:-(3)0.619

12.

Which of the following function, available in statsmodels, is used to fit a linear regression model?

Answer»

Which of the following FUNCTION, available in statsmodels, is used to fit a linear REGRESSION model?
Choose the correct OPTION from below list
(1)OLS
(2)glm
(3)gee
(4)lm

Answer:-(1)ols

13.

Which of the following function is used to test goodness of fit of a continuous distribution to data?

Answer»

Which of the FOLLOWING function is used to test goodness of FIT of a continuous distribution to data?
Choose the CORRECT OPTION from below list
(1)stats.f
(2)stats.chi
(3)stats.levene
(4)stats.kstest

Answer:-(4)stats.kstest

14.

The critical value for a confidence interval for the slope of the least squares regression line for all pairs in the population does not depend on ___

Answer»

The critical value for a confidence interval for the slope of the least squares regression LINE for all pairs in the population does not DEPEND on ______.
Choose the correct option from below list
(1)the confidence level
(2)the sample size
(3)NONE
(4)the slope of the least squares regression line for the

sample

Answer:-(4)the slope of the least squares regression line for the

15.

Which of the following class doesn't suit discrete regression problems?

Answer»

Which of the following CLASS doesnt suit discrete regression PROBLEMS?
Choose the CORRECT OPTION from below list
(1)Poisson
(2)MNLogit
(3)OLS
(4)Logit

Answer:-(3)OLS

16.

Null hypothesis is accepted if p-value is lower than predetermined significance value.

Answer»

Null HYPOTHESIS is ACCEPTED if p VALUE is lower than predetermined significance value.
STATE if it is true or false?
Choose the correct OPTION from below list
(1)False
(2)True

Answer:-(1)False

17.

Which of the following method of numpy library is used to determine range of a data set?

Answer»

Which of the following method of NUMPY library is used to determine range of a DATA set?
CHOOSE the correct option from below LIST
(1)ptp
(2)diff
(3)range
(4)dev

Answer:-(1)ptp

18.

Which sign separates dependent variable from independent variables, in a patsy formula?

Answer»

Which sign SEPARATES DEPENDENT VARIABLE from independent variables, in a patsy formula?
Choose the correct option from below list
(1)~
(2)*
(3).
(4)-

Answer:-(1)~

19.

Which of the following patsy formula ignores the intercept?

Answer»

Which of the following patsy formula ignores the intercept?
Choose the CORRECT OPTION from below list
(1)y ~ X1 + x2
(2)y ~ x1 + x2 + x1*x2
(3)y ~ -1 + x1
(4)y ~ x1

Answer:-(3)y ~ -1 + x1

20.

The greater the value of the F ratio, ________________.

Answer»

The greater the value of the F ratio, ________________.
Choose the correct option from below list
(1)LARGER the total variance.
(2)less the sample DISTRIBUTIONS overlap.
(3)the more sample distributions overlap.
(4)smaller the total variance

Answer:-(2)less the sample distributions overlap.

21.

Which of the following function available in statsmodels is used to fit a Poisson regression model?

Answer»

Which of the FOLLOWING function AVAILABLE in statsmodels is used to fit a Poisson REGRESSION model?
Choose the CORRECT option from below LIST
(1)ps
(2)poi
(3)np
(4)poisson

Answer:-(4)poisson

22.

The F ratio is typically used to test differences between _____?

Answer»

The F ratio is TYPICALLY used to test differences between _____?
Choose the correct option from below LIST
(1)three or more means.
(2)a sample and a population mean.
(3)two INDEPENDENT means.
(4)two dependent means

Answer:-(1)three or more means.

23.

Which of the following expressions, correctly calculate variance of a sample, x, derived from a population?

Answer»

Which of the following expressions, CORRECTLY calculate variance of a sample, x, DERIVED from a POPULATION?
Choose the correct option from below LIST
(1)np.var(x, ddf=1)
(2)np.var(x, df=1)
(3)np.var(x)
(4)np.var(x, ddof=1)

Answer:-(4)np.var(x, ddof=1)

24.

An alternative hypothesis states there is no effect. State true or false.

Answer»

An alternative hypothesis STATES there is no effect. STATE true or FALSE.
Choose the correct option from below LIST
(1)True
(2)False

Answer:-(2)False

25.

While performing anova on a regression model fitted with a single variable, the null hypothesis is framed as:

Answer»

While performing anova on a REGRESSION model FITTED with a SINGLE variable, the null hypothesis is framed as
Coefficient of independent variable is zero. STATE if it is true or false?
Choose the CORRECT option from below list
(1)False
(2)True

Answer:-(2)True