Git Product home page Git Product logo

mechacar_statistical_analysis's Introduction

MechaCar_Statistical_Analysis

Purpose

The goal of this challenge was to use R to discover which variables predict the MPG for vehicle prototypes, collect summary statistics on the PSI of suspension coils, determine if manufacturing lots are statistically different from the mean population, and finally design a study to compare the MechaCar performance against vehicles from other manufacturers.

Linear Regression to Predict MPG

Deliverable1
-The variables in our dataset that show a non-random effect on the MPG of the MechaCar are the Vehicle Length and the Ground Clearance. A linear regression model run on these variables against figures for MPG, resulted in p-values of 2.6x10-12 and 5.21x10-8, respectively. In addition, the intercept was also statistically significant.
-The slope of the linear model can not be considered zero as the p-value of 5.35x10-11 is lower than even an extreme level of significance. Because of this, the null hypothesis must be rejected. This means that the relationship between our variables and the miles per gallon is subject to more than random chance.
-Although there are other factors, this model does predict the mpg of the MechaCar prototype with relative effectiveness. The r-squared value of 0.7149 indicates that the model is 71% accurate.

Summary Statistics on Suspension Coils

total_summary
lot_summary
While the overall variance is under 100 psi and meets specifications, the variance for lot 3 is well over the threshold at 170.28.

T-Test Results

coil_T_test
A review of the results of the T-test for the suspension coils across all manufacturing lots shows that they are not statistically different from the population mean, and the p-value is not low enough (0.0603) for us to reject the null hypothesis.
T_tests
-The results of the T-test for the suspension coils for Lot 1 shows that they are not statistically different from the population mean, and the p-value is not low enough (1) for us to reject the null hypothesis.
-The results of the T-test for the suspension coils for Lot 2 shows that they are not statistically different from the population mean, and the p-value is not low enough (0.6072) for us to reject the null hypothesis.
-The results of the T-test for the suspension coils for Lot 3 shows that they are slightly statistically different from the population mean, and the p-value is low enough (0.0417) for us to reject the null hypothesis. This lot may be need to be evaluated.

Study Design: Mechacar vs Competition

Metrics

I would design a study that analyzes the safety rating of Mechacar vehicles against their competition. While factors such as fuel efficiency and horse power matter, safety is ultimately most important.

Null Hypothesis

MechaCar vehicles do not have statistically significant higher safety ratings than that of vehicles from other manufacturers.

Alternate Hypothesis

MechaCar vehicles do have statistically significant higher safety ratings than that of vehicles from other manufacturers.

Statistical Test

I would use a two-tailed T-test to perform this analysis. When using two-tailed T-tests, regardless of the direction of the relationship you hypothesize, you are testing for the possibility of the relationship in both directions.

Data

The data needed to run the statistical test is a table of MechaCar vehicles and their respective safety ratings, along with various other manufacturers and their safety ratings.

mechacar_statistical_analysis's People

Contributors

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