Stats With Python
Stats With Python
Stats With Python
Which of the following method of scipy.stats module is used to determine inter quartile range a
distribution? iqr
Which of the following method of scipy.stats module is used to determine the skewness of a
distribution?skew
What is the output of the following expression? from scipy import stats print(stats.mode([8, 9, 8,
7, 9, 6, 7, 6])) ModeResult(mode=array([6]), count=array([2]))
Which of the following definition is used by default in kurtosis method of scipy.stats module?
fisher
Which of the following expressions, set a initial seed to random number generator?
np.random.seed(1)
All outcomes of a sample space are mutually exclusive. State if it is true or false? T
Which of the following method is used to generate random numbers for a defined distribution
available in scipy.stats module?rvs
Which of the following expressions, set a initial seed to random number generator?
np.random.seed(1)
Which of the following expression represents a normal distribution with mean 2.0 and variance
4.0? stats is imported from scipy.stats.norm(loc=2.0, scale=2.0)
Which of the following method from numpy.random module can be used to select few elements
randomly from a population?choice
This study source was downloaded by 100000797727937 from CourseHero.com on 04-01-2023 06:50:12 GMT -05:00
https://www.coursehero.com/file/63323169/Stats-with-Pythonrtf/
An alternative hypothesis states there is no effect. State true or false?F
Null hypothesis is accepted if p-value is lower than predetermined significance value. State if it is
true or false?F.
Which of the following function is used to test if categorical data occurs with given frequency?
stats.chisquare
Which of the following function is used to verify if the mean of population equals a given value?
scipy.ttest_1samp
Which of the following function is used to test non-correlation between two variables?
stats.pearsonr
Which of the following function is used to test goodness of fit of a continuous distribution to
data?stats.kstest
How many independent variables are considered in the patsy formula 'y ~ I(x1 + x2)'?1
Which of the following libraries is used for generating design matrices automatically?patsy
Which of the following function of patsy module, is used to generate design matrices?
dmatrixdmatrices
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?F
Which of the following function is used to treat a numeric variable as a categorical one?C
Which sign seperates dependent variable from independent variables, in a patsy formula?~
This study source was downloaded by 100000797727937 from CourseHero.com on 04-01-2023 06:50:12 GMT -05:00
https://www.coursehero.com/file/63323169/Stats-with-Pythonrtf/
Given slope of a linear regression line is 1.5, and when x is 10, y takes the value of 8. Determine
the intercept of the regression line -7
Given the equation of a regression line as y = 1.2x - 3.4. What is residual for point (12, 10)?-1
Which of the following function can used to download a dataset from R repository?get_rdataset
What are the inputs passed to OLS function from statsmodels.spi module?design matrices y and
X
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 the slope of the least squares regression line for the
sample
Which of the following attribute can be used on a fitted model summary object to obtain fitted
values?fittedvalues
Which of the following function, available in statsmodels, is used to fit a linear regression
model?ols
R-square value close to zero indicates a good fit. State if it is true or false?F
In a linear regression, the coefficients of the model are estimated by minimizing the sum of the
squares of residuals
Whether a student will pass or fail in the competitive exam based on hours of study can be
solved using logistic regression
Logistic regression error values are normally distributed. State if it is true or false?F
Which of the following function available in statsmodels is used to fit a poisson regression
model?poisson
When the observed outcome of dependent variable can have multiple possible types, the the
logistic regression is ...........?multinomial
This study source was downloaded by 100000797727937 from CourseHero.com on 04-01-2023 06:50:12 GMT -05:00
https://www.coursehero.com/file/63323169/Stats-with-Pythonrtf/
What is the cummulative probabilty of finding F-statistic higher than 1, for a F distribution with
degrees of freedom 2 and 27?.619
What is the cummulative probabilty of finding F-statistic lower than 1, for a F distribution with
degrees of freedom 2 and 10?.598
Which of the following options correctly depict the relation between cummulative distrubution
function (cdf) and survival function (sf)?cdf + sf = 1
The greater the value of the F ratio,less the sample distributions overlap.
The F ratio is typically used to test differences between _____?three or more means.
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?F
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?T
The F ratio is defined as the average within-groups variance divided by the average between-
groups variance. State if it is true or false?F.
Which of the following method is used to perform ANOVA test using statsmodels.stats.anova
module?anova_lm
This study source was downloaded by 100000797727937 from CourseHero.com on 04-01-2023 06:50:12 GMT -05:00
https://www.coursehero.com/file/63323169/Stats-with-Pythonrtf/
Powered by TCPDF (www.tcpdf.org)