We consider a regression problem for predicting the demand of

 

We consider a regression problem for predicting the demand of bike-sharing services in Washington D.C.1 The prediction task is to predict the demand for the bikes (column cnt) given the other features: ignore the columns instant and dteday. Use the day.csv file from the data folder. (a) Write a Python file to load day.csv.2 Compute the correlation coefficient of each feature with the response (i.e., cnt). Include a table with the correlation coefficient of each feature with the response. Which features are positively correlated (i.e., have positive corre- lation coefficient) with the response? Which feature has the highest positive correlation with the response? (b) Were you able to find any features with a negative correlation coefficient with the response? If not, can you think of a feature that is not provided in the dataset but may have a negative correlation coefficient with the response? (c) Now, divide the data into training and test sets with the training set having about 70 percent of the data. Import train_test_split from sklearn to perform this operation. Use an existing package to train a multiple linear regression model on the training set using all the features (except the ones excluded above). Report the coefficients of the linear regression models and the following metrics on the training data: (1) RMSE metric; (2) R2 metric. [Hint: You may find the libraries sklearn.linear_model.LinearRegression useful.] (d)  Next, use the test set that was generated in the earlier step. Evaluate the trained model in step (c) on the testing set. Report the RMSE and R2 metrics on the testing set. (e)  Interpret the results in your own words. Which features contribute mostly to the linear regression model? Is the model fitting the data well? How large is the model error? 

 1https://www.kaggle.com/datasets/marklvl/bike-sharing-dataset?search=bike+demand+Washington& select=Readme.txt. You can also find a Readme.txt file that explains all the features in the dataset. 2Refer to https://docs.python.org/3/library/csv.html on how to load a csv file in Python. 

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

of 1EOL Project Exploration (Lab) I’ve been following the EOL project since prior to 2012, as it was first developing. In November of 2018, its website had had a big overhaul. Several positive changes Nursing Assignment Help

of 1EOL Project Exploration (Lab)I’ve been following the EOL project since prior to 2012, as it was first developing. In November of 2018, its website hadhad a big overhaul. Several positive changes were made, at that time. However, I regret that some of the old informationabout ELO (that was available

Assignment Details Comparison charts are graphic visual representations of information,

Assignment Details Comparison charts are graphic visual representations of information, knowledge, or data to present information concisely and clearly. The intent of graphics is to assist the audience with understanding the data presented. Create a comparison chart identifying 3–5 development theories and how each theory impacts team development. Provide a

SARS Nursing Assignment Help

 The following public health emergencies to analyze: severe acute respiratory syndrome (SARS) In a report format of 700 words, address the following: Describe the chain of command and the method of public health response that was conducted in this situation. Determine the important public health issues related to medical care

Research Process and Methods Questions Nursing Assignment Help

Research the common steps to the research process used in health care research. Review steps covered in Understanding and Conducting Research in the Health Sciences this week, other readings, and resources, including the Methods Map Visual Search Tool from the University Library.  Complete the Research Process and Methods worksheet. Cite

The project is an exercise of fundamental analysis of a

The project is an exercise of fundamental analysis of a firm using ratios. You are expected to calculate a number of ratios for a firm and analyze its financial condition. As the main outcomes of the project, upload 2 files on Canvas: Project Report (word/pdf) and Calculation (excel). Pick a

What are social determinants of health? Explain how social determinants

  What are social determinants of health?  Explain how social determinants of health contribute to the development of disease.  Describe the fundamental idea that the communicable disease chain model is designed to represent. Give an example of the steps a nurse can take to break the link within the communicable

Assignment 2 This assignment covers chapter three, Internal Analysis: Distinctive

Assignment 2 This assignment covers chapter three, Internal Analysis: Distinctive Competencies, Competitive Advantage, and Profitability, and chapter four, Building Competitive Advantage through Functional-Level Strategy. Chapter 3 Questions: Define value creation for customers and the components that can be used to determine value creation per unit. How value creation is related

Our literature this week provided information on implicit bias and

  Our literature this week provided information on implicit bias and how it may lead to discriminatory thoughts and actions towards others. Have you witnessed actions related to implicit bias in your community? Have you been the subject of implicit bias whereby you faced oppression or harsh treatment? What strategies

Review “RTI Case Study: Laney.” Based on the information provided,

Review “RTI Case Study: Laney.” Based on the information provided, begin the process of drafting a 250-500 word summary of Laney’s current educational performance that could later be incorporated into the PLAAFP section of an IEP. Your summary should include the following student information: Academic strengths Results from evaluations Performance

it consists of two parts (maximum 2,500 words): Part 1

it consists of two parts (maximum 2,500 words):Part 1 – Mental Experiment of Fast-forwarding your life and Part 2 – Creating Personal Vision. Assignment Instructions Part 1: Mental Experiment of Fast-forwarding your life To define one’s purpose in life is not an easy or simple task. When asked to do

Explain the procedures your department or a department near you

Explain the procedures your department or a department near you would follow when investigating a high-dollar-loss fire or a fire resulting in an injury or fatality. Do you feel your department is prepared for these types of investigations? Why, or why not? What can be done better? In your response

The Affordable Care Act was signed into law by President Barack Obama in March 2010. Many of the provisions of the law directly affect health care providers. Review the following topic materials:Key F Nursing Assignment Help

The Affordable Care Act was signed into law by President Barack Obama in March 2010. Many of the provisions of the law directly affect health care providers. Review the following topic materials: Key Features of the Affordable Care Act Health Care Transformation: the Affordable Care Act and More What are

Assignment Details Smartphones, the Internet, and rapid advancement of technology

Assignment Details Smartphones, the Internet, and rapid advancement of technology have come to influence all aspects of people’s daily lives. However, as with any advancement in technology, there are always those who will misuse this technology for their own purposes—criminal and abusive. In fact, the developer of the ILOVEYOU worm,

Social media has been a game changer for brand awareness

  Social media has been a game changer for brand awareness building, customer relations, and customer satisfaction. Shoppers are increasingly turning to social media for help with buying decisions. With this shift in advertising, consumers are paving a new purchase path for retailers to follow. Many businesses adopt social media

Please respond to the following: Put yourself in the position

Please respond to the following: Put yourself in the position of a purchasing agency contract officer. When accepting bid submissions or responses to a request for quote that you have issued, what would you look for in the responses that would be factors for issuing a contract award? Select a

Case Link – https://niti.gov.in/planningcommission.gov.in/docs/reports/sereport/ser/stdy_ict/4_e-choupal%20.pdf Answer the Following questions 1) Develop

Case Link –  https://niti.gov.in/planningcommission.gov.in/docs/reports/sereport/ser/stdy_ict/4_e-choupal%20.pdf   Answer the Following questions 1) Develop an outline of the implementation strategy for the business model stated in the case study. ? 2) What are the strengths and opportunities of this model  ? 3) Identify the constraints and the critical success factors for this implementation.?

1.Use the Internet to look up three articles that refer

  1.Use the Internet to look up three articles that refer to an instance of abuse of power in a corporate, government, religious, or other organizational environment (For example: Enron).  Using the articles as a reference and the terms from this chapter, describe what you believe happened in this abuse