- Information
- AI Chat
Was this document helpful?
Subjective Questions
Course: computer networks (cs 401)
93 Documents
Students shared 93 documents in this course
University: Graphic Era Deemed to be University
Was this document helpful?
Assignment-based Subjective Questions
1. From your analysis of the categorical variables from the dataset, what could you infer about their effect on the
dependent variable?
Ans: From the analysis of the categorical variables from the dataset it could be inferred the bike rental rates are
likely to be higher in summer and the fall season, are more prominent in the months of September and October,
more so in the days of Sat, Wed and Thurs and in the year of 2019. Additionally we could discern that bike rental
are higher on holidays.
2. Why is it important to use drop_first=True during dummy variable creation?
Ans: drop_first=True helps in reducing the extra column created during the dummy variable creation and hence
avoid redundancy of any kind.
3. Looking at the pair-plot among the numerical variables, which one has the highest correlation with the target
variable?
Ans: The temp variable has the highest correlation with the target variable.
4. How did you validate the assumptions of Linear Regression after building the model on the training set?
Ans: Validated the assumptions of linear regression by checking the VIF, error distribution of residuals and linear
relationship between the dependent variable and a feature variable.
5. Based on the final model, which are the top 3 features contributing significantly towards explaining the demand
of the shared bikes?
Ans: The top 3 features contributing significantly towards the demand of the shared bikes are the temperature,
the year and the holiday variables.
General Subjective Questions
1. Explain the linear regression algorithm in detail.
Ans: Linear Regression is an ML algorithm used for supervised learning. It helps in predicting a dependent
variable(target) based on the given independent variable(s). The regression technique tends to establish a linear
relationship between a dependent variable and the other given independent variables. There are two types of
linear regression- simple linear regression and multiple linear regression. Simple linear regression is used when a
single independent variable is used to predict the value of the target variable. Multiple Linear Regression is when
multiple independent variables are used to predict the numerical value of the target variable. A linear line showing
the relationship between the dependent and independent variables is called a regression line. A positive linear
relationship is when the dependent variable on the Y-axis along with the independent variable in the X-axis.
However, if dependent variables value decreases with increase in independent variable value increase in X-axis, it
is a negative linear relationship.
Students also viewed
Related documents
- (www.entrance-exam.net)-TCS Placement Sample Paper 8
- (www.entrance-exam.net)-TCS Placement Sample Paper 5
- (www.entrance-exam.net)-TCS Placement Sample Paper 3
- (www.entrance-exam.net)-TCS Placement Sample Paper 2
- (www.entrance-exam.net)-TCS Placement Sample Paper 1
- (www.entrance-exam.net)-(www.entrance-exam.net)-TCS Paper OF 2011