Skip to content

Linear regression, summary statistics and t-tests to analyze manufacturing specs and decide if adjustment is needed.

Notifications You must be signed in to change notification settings

Deving789/MechaCar_Statistical_Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

MechaCar_Statistical_Analysis

Linear Regression to Predict MPG

  • Which variables/coefficients provided a non-random amount of variance to the mpg values in the dataset?

    Vehicle weight, spoiler_angle & AWD provided a non-random amount of variance. The two variables that had the most amount of random variance are ground_clearance and vehicle_length.

  • Is the slope of the linear model considered to be zero? Why or why not?

    Our slope is not zero just be looking at the p-value, which is less than 0.05.

  • Does this linear model predict mpg of MechaCar prototypes effectively? Why or why not?

    Our R-squared value is 71%, which means roughly ~71% of the time the model will predict mpg values correctly. There are probably other factors that were not captured in the datasaet that contribute to the mpg variability of the MechaCar prototypes.

Summary Statistics on Suspension Coils,

  • The design specifications for the MechaCar suspension coils dictate that the variance of the suspension coils must not exceed 100 pounds per square inch. Does the current manufacturing data meet this design specification for all manufacturing lots in total and each lot individually? Why or why not?

    Lot 1 and Lot 2 are both within design specifications and have hnearly the same exact mean and median. Lot 3 shows the most variance and exceeds the manufacturers specs.

T-Tests on Suspension Coils

  • Lot 1 and Lot 3 the PSI values are not different from the population mean. However lot 2 the p-value is .347 which means there is evidence that the suspension coil is different from the population mean. All t-tests can be seen below:

Across all lots:

mean

## Lot 1:

lot1

## Lot 2:

lot2

## Lot 3:

lot3

Study Design: MechaCar vs Competition

  • One feature that people are interested in when buying a car is how much horsepower the car has. I think horsepower, mpg and how large the engine is are 3 factors that go into consumer decision making. We can use our tests to see if our MechaCar is much different from the competiton. We can make a null hypothesis stating that it is not different from the competition and our Alternative would be the opposite. To do this we will need to use our t-test after collecting data from different types of competitor vehicles. Our t-test will be comparing the population of all types of competitor vehicles.

About

Linear regression, summary statistics and t-tests to analyze manufacturing specs and decide if adjustment is needed.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages