GithubHelp home page GithubHelp logo

mod_4_project's Introduction

WineGression

We analyze various physicochemical properties of wines from the Vinho Verde region in Portugal, and how these factors can be used to predict a wine's alcohol content (an important factor in reviewers' quality score).

We find relationships between density, pH, and fixed acidtity (tartaric acid) as predictors for alcohol content based on samples from about 1,600 red wines.

With a lack of homoscedasticity in the extremes of our data, our linear regression model is not a useful tool for predicting alcohol content in wines whose predictor values are very high or very low.

Contributors

Marco Ayala-Sanchez (github)

Dave Bletsch (github)

Background

This is our third Flatiron School project (NYC Data Science), for module 4 - statistical modeling with linear regression.

See the presentation and conclusions on Google Slides or view the ppt file in our repository.

Data

We sourced our data from a complete data set via Kaggle.com based on a viticultural study from 2009.

Model

Ultimately, we used a linear regression model to predict alcohol content. Neither a Ridge or Lasso penalization improved the model's error, so the orignal OLS model was used.

Feature Engineering

A heatmap of our variables showed no unexpected multicollinearity.

heatmap

However, upon plotting grouped data, several clear variable interactions emerged. The relevance to our model only proved significant in 2 of these interactions (ph and fixed acidity, residual sugar and density).

OLS regression results

Application

This model might be useful in helping to determine when grapes reach their full potential. If we know when the grapes contain the ideal amount of measurable substances, this model can predict the alcohol content of the finished wine (again, a factor that seems to influence a taster's preference).

How to use this Repo

The main analysis is in mod_4_notebook.ipynb

You can find our presentation is labeled "Presentation.pptx"

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.