Giter VIP home page Giter VIP logo

exploratory-data-analysis-eda-'s Introduction

Exploratory Data Analysis (EDA) is a crucial step in the data analysis process. The first step in performing EDA is to import necessary libraries, such as pandas and matplotlib. Then, the dataset is loaded into a pandas DataFrame to allow for efficient manipulation of the data. The structure of the data is analyzed to gain insight into the number of rows, columns, and data types present in the data. The data is described using various statistical methods to obtain the central tendencies, dispersions, and distributions of the features. In order to ensure the validity of the results, it is important to check for duplicates in the data set and to drop any duplicates that may be present. After checking for missing values and handling them appropriately, the unique data in the data set is visualized using various graphical methods such as histograms and scatter plots.

For modeling, the Linear Regression class from the sklearn.linear_model library is imported. In this particular scenario, age is used as the X values and the charges are used as the Y values. A scatter plot of these values is generated to visualize the relationship between the two. The model is trained using the training data and is used to make predictions on the test data. The performance of the model is evaluated using the mean absolute error (MAE), root mean squared error (RMSE), and mean squared error (MSE). These evaluation metrics provide an insight into the accuracy of the model's predictions.

exploratory-data-analysis-eda-'s People

Contributors

antonygn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.