• Nie Znaleziono Wyników

content/uploads/2020/11

N/A
N/A
Protected

Academic year: 2021

Share "content/uploads/2020/11"

Copied!
3
0
0

Pełen tekst

(1)

Analysis of wines parameters

Executive Summary

This document presents an analysis of data concerning wines parameters and their types. The analysis is based on 6497 observations of wines, each containing specific characteristics of a wine. Document contains data summary and descriptive statistics. After exploring the data, a predictive model to classify wines into two categories: white (marked by 0) and red (marked by 1).

Initial data exploration

Individual Feature Statistics

fixed acidity volatile acidity citric acid residual sugar

chlorides free sulfur dioxide mean 7.21530 7 0.33966 6 0.31863 3 5.44323 5 0.056034 30.52532 std 1.29643 4 0.16463 6 0.14531 8 4.75780 4 0.035034 17.7494 min 3.8 0.08 0 0.6 0.009 1 25% 6.4 0.23 0.25 1.8 0.038 17 50% 7 0.29 0.31 3 0.047 29 75% 7.7 0.4 0.39 8.1 0.065 41 max 15.9 1.58 1.66 65.8 0.611 289 total sulfur dioxide

density pH sulphates alcohol quality mean 115.744 6 0.99469 7 3.21850 1 0.531268 10.4918 5.81837 8 std 56.5218 5 0.00299 9 0.16078 7 0.148806 1.19271 2 0.87325 5 min 6 0.98711 2.72 0.22 8 3 25% 77 0.99234 3.11 0.43 9.5 5 50% 118 0.99489 3.21 0.51 10.3 6 75% 156 0.99699 3.32 0.6 11.3 6 max 440 1.03898 4.01 2 14.9 9

Correlation and Apparent Relationships

After exploring the individual features, an attempt was made to identify relationships between features in the data – in particular, between wine class and the other features.

Numeric Relationships

The following plot was generated initially to compare numeric features with target (wine class). The key features in this matrix are shown here:

(2)

The correlation between the numeric columns was then calculated with the following results shown in plot below:

Before started predictive analysis I shown that wines can be separate into whites and reds using available features. The graph below shows all wines with its parameters decomposed into two principal components.

(3)

Classification of wines

To build classification model I used decision tree classifier. By using numbers of techniques from the field of statistics and machine learning I was able to build high quality predictive model with quality parameters:

· Gini score: 0.983. · Recall score: 0.962.

It means that model is able to correctly recognize over 96% of red wines.

While many factors can help indicate kind of a wine, significant features found in this analysis were: Feature name Importance level (higher – more important

feature)

chlorides 0.625643

total sulfur dioxide 0.288745

density 0.041088

fixed acidity 0.029272

alcohol 0.015252

Summary

This analysis has shown that type of wine can be confidently predicted from its characteristics. In particular, level of chlorides, total sulfur dioxide, density, fixed acidity, and alcohol have a significant effect on the wine type.

Cytaty

Powiązane dokumenty

If one shareholder is represented by more than one mandataries, i.e., the local government as sole shareholder is represented by several local councilors, there must be admitted

W ramach realizacji tego uprawnienia gmina w naturalny sposób zobo- wi¹zana jest do kierowania siê interesem publicznym oraz odpowiednim jego wywa¿eniem w odniesieniu do

Do instrumentów tych zalicza siê nastê- puj¹ce prawa: do swobodnego przemieszczania siê i przebywania obywa- teli na terytorium pañstw cz³onkowskich; do korzystania na

97 Traktatu o EAUG, zarówno pracownik, cz³onek rodziny pracownika, jak i pracodaw- ca maj¹ prawo korzystaæ ze swobody przep³ywu na terytorium wszyst- kich piêciu pañstw

Zapo- wiedzi upolitycznienia Trybuna³u Konstytucyjnego, skoncentrowanie pra- cy resortu sprawiedliwoœci na dzia³aniach zmierzaj¹cych w kierunku ograniczenia samorz¹dnoœci

Przekona³ siê o tym dwór, kiedy w okresie otwartych ju¿ konfliktów szlachty z królem, szczególnie za wczesnych rz¹dów króla Zygmunta III, szlachta, nie bacz¹c na

Intelektualny potencja³ rewolucyjnych konserwatystów czyni³ z nich niepoœledni czynnik kszta³towania siê nie tylko antyliberalnych koncep- cji ustrojowych, ale tak¿e

Podczas posiedzenia egzekutywy brudzeñskiego KG PZPR, które odby³o siê 13 maja 1982 r., omawiano „przebieg uroczystoœci na terenie gminy zwi¹zanych ze Œwiêtem Pracy”