Giter Club home page Giter Club logo

mechacar-statistical-analysis's Introduction

MechaCar-Statistical-Analysis

Linear regression to Predict MPG

Below is a screenshot of the output of the linear regression as well as the summary stats:

linear regression for mpg

summary stats

  1. Which variables/coefficients provided a non-random amount of variance to the mpg values in the dataset?
  • The Spoiler Angle and AWD variables were non-random.
  1. Is the slope of the linear model considered to be zero? Why or why not?
  • It is not for any of the variables tested in the mulitple regression model. Therefore, the slope cannot be considered zero for this model.
  1. Does this linear model predict mpg of MechaCar prototypes effectively? Why or why not?
  • It does because it returns an adjusted R-squared value of .6825.
    • This means there is a good probability there is a relationship between response variable (mpg) and the other predictor variables in the dataset.

Summary Statistics

In summary, the summary statistics from the dataset: Suspension_Coil.csv's 'PSI' column looks like this:

total_summary

And the same dataset grouped by Manufacturing Lot:

lot_summary

  • Based on these statistics, it looks like only Manufacturing Lot 3 does not the specs requirements for PSI. Its PSI variance stat is well over 100 at โ‰ˆ 170.
  • The total variance for PSI looks good at โ‰ˆ 62 PSI, while the individual lots 1 and 2 are well below 100 at under 10 PSI respectively.

T-Tests on Suspension Coils

Here is a picture of the t-test output on the Suspension coil dataframe:

t-test on dataframe

And here are two pictures showing the same test filtered for each Manufacturing Lot:

lot 1

lots 2 + 3

According to these outputs, we can safely conclude, based on the respective p-values of for each Manufacturing Lot, that only for the 3rd lot we can safely reject the null hypothesis. For the other ones we must certainly fail to reject the null hypothesis because their p-values are 100% and over 50% respectively.

The third lot's p-value is below 5%.

Study Design: MechaCar vs Competition

Using these variables:

  • Vehicle weight
  • fuel efficiency
  • horsepower

We can conduct a mulitple linear regression test to find out if both vehicle weight and horsepower effect fuel efficiency across manufacturers.

We would conduct this test because:

  • There are two independent variables that are both continuous tyopes.
  • There is one continuous dependent metric.

The data we would need is located in both the MechaCar_dataframe and the Suspension Coil dataframe already:

  1. the horsepower for each car across manufacturers
  2. the fuel efficiency in miles/km per gallon/liter for every car
  3. the horsepower in a floating point value.

mechacar-statistical-analysis's People

Contributors

milestsue93 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.