וב х RStudio File Edit Code View Plots Session Build Debug Profile Tools Help + OR HH Go to file/function 89 - Addins -

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

וב х RStudio File Edit Code View Plots Session Build Debug Profile Tools Help + OR HH Go to file/function 89 - Addins -

Post by answerhappygod »

 1
1 (168.97 KiB) Viewed 12 times
1. Title of Database: Wine recognition data
Updated Sept 21, 1998 by C.Blake : Added attribute
information
2. Sources:
(a) Forina, M. et al, PARVUS - An Extendible Package for Data
Exploration, Classification and Correlation. Institute of
Pharmaceutical
and Food Analysis and Technologies, Via Brigata Salerno,
16147 Genoa, Italy.
(b) Stefan Aeberhard, email: [email protected]
(c) July 1991
3. Past Usage:
(1)
S. Aeberhard, D. Coomans and O. de Vel,
Comparison of Classifiers in High Dimensional Settings,
Tech. Rep. no. 92-02, (1992), Dept. of Computer Science and Dept.
of
Mathematics and Statistics, James Cook University of North
Queensland.
(Also submitted to Technometrics).
The data was used with many others for comparing various
classifiers. The classes are separable, though only RDA
has achieved 100% correct classification.
(RDA : 100%, QDA 99.4%, LDA 98.9%, 1NN 96.1% (z-transformed
data))
(All results using the leave-one-out technique)
In a classification context, this is a well posed problem
with "well behaved" class structures. A good data set
for first testing of a new classifier, but not very
challenging.
(2)
S. Aeberhard, D. Coomans and O. de Vel,
"THE CLASSIFICATION PERFORMANCE OF RDA"
Tech. Rep. no. 92-01, (1992), Dept. of Computer Science and Dept.
of
Mathematics and Statistics, James Cook University of North
Queensland.
(Also submitted to Journal of Chemometrics).
Here, the data was used to illustrate the superior performance
of
the use of a new appreciation function with RDA.
4. Relevant Information:
-- These data are the results of a chemical analysis of
wines grown in the same region in Italy but derived from
three
different cultivars.
The analysis determined the quantities of 13 constituents
found in each of the three types of wines.
-- I think that the initial data set had around 30 variables,
but
for some reason I only have the 13 dimensional version.
I had a list of what the 30 or so variables were, but a.)
I lost it, and b.), I would not know which 13 variables
are included in the set.
-- The attributes are (dontated by Riccardo Leardi,
[email protected] )
1) Alcohol
2) Malic acid
3) Ash
4) Alcalinity of ash
5) Magnesium
6) Total phenols
7) Flavanoids
8) Nonflavanoid phenols
9) Proanthocyanins
10)Color intensity
11)Hue
12)OD280/OD315 of diluted wines
13)Proline
5. Number of Instances
class 1 59
class 2 71
class 3 48
6. Number of Attributes

13
7. For Each Attribute:
All attributes are continuous

No statistics available, but suggest to
standardise
variables for certain uses (e.g. for us with
classifiers
which are NOT scale invariant)
NOTE: 1st attribute is class identifier (1-3)
8. Missing Attribute Values:
None
9. Class Distribution: number of instances per class
 2
2 (87.28 KiB) Viewed 12 times
we are using the wine dataset.
can someone help me to write a code on Rstudio using QDA portion
or method with comments and explanation please?
וב х RStudio File Edit Code View Plots Session Build Debug Profile Tools Help + OR HH Go to file/function 89 - Addins - Project: (None) wine (1). names ( Index (2) >> ABC 5 B 9 . CV_K21_Baterdene part 2.R X Ⓡ ® Homework 4 (TASK 2 CSE 5160-60 Bate... X L wine (1).data** Lab LDA QDAR X JA 1 1.14.23,1.71,2.43, 15.6, 127,2.8,3.06, .28,2.29,5.64,1.04,3.92, 1065 2 1,13.2.1.78,2.14,11.2,100,2.65,2.76,.26,1.28,4.38,1.05,3.4, 1050 3 1,13.16,2.36,2.67, 18.6, 101,2.8,3.24,.3,2.81,5.68,1.03,3.17, 1185 4 1,14.37,1.95,2.5,16.8, 113,3.85,3.49,.24,2.18,7.8,.86,3.45, 1480 5 1,13.24,2.59,2.87,21,118,2.8,2.69,.39,1.82,4.32,1.04,2.93,735 6 1,14.2,1.76,2.45,15.2, 112,3.27,3.39, .34,1.97,6.75,1.05,2.85, 1450 7 1,14.39,1.87,2.45, 14.6,96,2.5,2.52,.3,1.98,5.25, 1.02,3.58, 1290 8 1,14.06,2.15,2.61, 17.6, 121,2.6,2.51,.31, 1.25,5.05,1.06,3.58, 1295 9 1,14.83,1.64,2.17, 14,97,2.8, 2.98, 29,1.98,5.2,1.08,2.85, 1045 10 1,13.86,1.35,2.27,16,98,2.98, 3.15, .22,1.85,7.22,1.01,3.55, 1045 11 1,14.1,2.16,2.3, 18, 105,2.95,3.32, .22,2.38,5.75,1.25,3.17, 1510 12 1,14.12,1.48,2.32,16.8,95, 2.2,2.43,.26,1.57,5,1.17, 2.82,1280 13 1,13.75, 1.73,2.41,16,89,2.6,2.76,.29,1.81,5.6,1.15, 2.9,1320 14 1,14.75, 1.73,2.39,11.4,91,3.1,3.69,.43,2.81,5.4,1.25,2.73, 1150 15 1, 14.38,1.87,2.38, 12, 102,3.3, 3.64,.29,2.96,7.5,1.2,3,1547 16 1,13.63,1.81,2.7, 17.2,112,2.85,2.91,.3,1.46,7.3,1.28,2.88, 1310 17 1,14.3,1.92,2.72,20, 120,2.8,3.14, .33,1.97,6.2,1.07,2.65, 1280 18 1,13.83,1.57,2.62,20,115,2.95,3.4,.4,1.72,6.6,1.13,2.57, 1130 19 1,14.19,1.59,2.48,16.5, 108,3.3, 3.93,-32,1.86,8.7,1.23,2.82,1680 20 1,13.64,3.1,2.56,15.2,116,2.7,3.03, .17,1.66,5.1,.96,3.36,84 21 1,14.06,1.63,2.28,16,126,3,3.17,.24,2.1,5.65,1.09,3.71,780 20:60 . Text file Console I Type here to search O R ? 66°F A ENG 8:31 PM 5/17/2022 15
RStudio File Edit Code View Plots Session Build Debug Profile Tools Help + OR AA Go to file/function 89 - Addins - Project: (None) - wine (1),names Index (2) >> CV_K21_Baterdene part 2.R X ® Homework 4 (TASK 2 CSE 5160-60 Bate... X wine (1).data* * Lab LDA QDAR X A A ABC 20 1,13.64,3.1,2.56,15.2,116,2.7,3.03, .17,1.66,5.1,.96,3.36,84 21 1,14.06,1.63,2.28,16,126,3, 3.17,.24,2.1,5.65,1.09,3.71, 780 22 1,12.93,3.8,2.65, 18.6,102,2.41,2.41, .25,1.98,4.5,1.03,3.52,770 23 1,13.71,1.86,2.36, 16.6, 101,2.61,2.88, .27,1.69,3.8,1.11,4,1035 24 1,12.85, 1.6,2.52,17.8,95,2.48,2.37,.26,1.46,3.93,1.09,3.63, 1015 25 1,13.5,1.81,2.61,20,96,2.53,2.61, .28,1.66,3.52,1.12,3.82,845 26 1,13.05,2.05,3.22,25, 124,2.63,2.68,.47,1.92,3.58,1.13,3.2,830 27 1,13.39,1.77,2.62,16.1,93,2.85,2.94,.34,1.45,4.8,.92,3.22, 1195 28 1,13.3,1.72,2.14,17,94,2.4,2.19,.27,1.35,3.95,1.02,2.77, 1285 29 1,13.87,1.9,2.8,19.4,107,2.95,2.97,.37,1.76,4.5,1.25,3.4,915 30 1,14.02,1.68,2.21, 16,96,2.65,2.33, .26,1.98,4.7,1.04,3.59,1035 31 1,13.73,1.5,2.7,22.5, 101,3,3.25, .29,2.38,5.7,1.19,2.71, 1285 32 1,13.58,1.66,2.36,19.1, 106,2.86,3.19, .22,1.95,6.9,1.09,2.88,1515 33 1,13.68,1.83,2.36,17.2,104,2.42,2.69,.42,1.97,3.84,1.23,2.87,990 34 1,13.76,1.53,2.7, 19.5,132,2.95,2.74,.5,1.35,5.4,1.25,3,1235 35 1,13.51,1.8, 2.65,19, 110,2.35,2.53,.29,1.54,4.2,1.1,2.87, 1095 36 1,13.48,1.81, 2.41,20.5, 100, 2.7,2.98,.26,1.86,5.1,1.04,3.47,920 37 1,13.28,1.64,2.84,15.5, 110,2.6,2.68, -34,1.36,4.6,1.09,2.78,880 38 1,13.05,1.65,2.55, 18,98,2.45,2.43, .29,1.44,4.25,1.12,2.51, 1105 39 1,13.07,1.5, 2.1,15.5,98,2.4,2.64, .28,1.37,3.7.1.18,2.69, 1020 40 1,14.22,3.99,2.51,13.2, 128,3,3.04,.2,2.08,5.1,.89,3.53,760 20:60 Text file Console I Type here to search O R ? 66°F A ENG 8:32 PM 5/17/2022
וב х RStudio File Edit Code View Plots Session Build Debug Profile Tools Help + - OR HA Go to file/function 99 - Addins - Project: (None) - wine (1) names , Index (2) X >> 5 B . CV_K21_Baterdene part 2.R X Ⓡ ® Homework 4 (TASK 2 CSE 5160-60 Bate... X Lwine (1).data* Lab LDA QDAR X a A ABCQ АВС +, I.V,1.V), L., 10, 20,-.TU,L.TU,.,1.1,7.,.L,L., IV 391,13.07,1.5,2.1,15.5,98,2.4,2.64, .28,1.37,3.7,1.18,2.69,1020 40 1,14.22,3.99,2.51,13.2, 128,3,3.04,.2,2.08,5.1, .89,3.53, 760 41 1,13.56,1.71,2.31,16.2, 117,3.15, 3.29,.34,2.34,6.13,.95, 3.38,795 42 1,13.41,3.84,2.12, 18.8, 90,2.45,2.68,.27,1.48,4.28,.91,3,1035 43 1,13.88,1.89,2.59,15,101,3.25,3.56,.17,1.7,5.43,.88,3.56, 1095 44 1,13.24,3.98,2.29, 17.5, 103,2.64,2.63,.32,1.66,4.36,.82,3,680 45 1,13.05,1.77,2.1, 17, 107,3,3,.28,2.03,5.04,.88,3.35,885 46 1.14.21,4.04,2.44, 18.9, 111, 2.85,2.65,.3,1.25,5.24,.87,3.33, 1080 47 1,14.38,3.59,2.28,16,102,3.25,3.17, .27,2.19,4.9,1.04,3.44, 1065 48 1,13.9,1.68,2.12,16,101,3.1, 3.39,.21,2.14,6.1, .91,3.33,985 49 1,14.1, 2.02,2.4,18.8, 103,2.75,2.92,.32,2.38,6.2,1.07,2.75, 1060 50 1,13.94,1.73, 2.27,17.4,108,2.88,3.54,.32,2.08,8.90,1.12,3.1, 1260 51 1,13.05,1.73,2.04, 12.4,92,2.72,3.27, .17,2.91,7.2,1.12,2.91,1150 52 1,13.83, 1.65,2.6, 17.2,94,2.45,2.99, .22,2.29,5.6,1.24,3.37, 1265 53 1,13.82,1.75,2.42,14,111,3.88,3.74,.32,1.87,7.05, 1.01,3.26, 1190 54 1,13.77,1.9,2.68, 17.1,115,3,2.79.39,1.68,6.3,1.13,2.93, 1375 55 1,13.74,1.67,2.25,16.4,118,2.6,2.9,.21,1.62,5.85,.92,3.2, 1060 56 1,13.56,1.73,2.46,20.5,116,2.96,2.78,.2,2.45,6.25,.98,3.03, 1120 57 1,14.22,1.7,2.3,16.3, 118,3.2,3,.26,2.03,6.38,.94,3.31,970 58 1,13.29,1.97,2.68, 16.8, 102,3,3.23,.31,1.66,6,1.07,2.84, 1270 59 1.13.72.1.43.2.5.16.7.108.3.4.3.67..19.2.04.6.8..89.2.87.1285 20:60 1 Text file Console I Type here to search O V2 R ? 66°F A ENG 8:32 PM 5/17/2022 15
וב х RStudio File Edit Code View Plots Session Build Debug Profile Tools Help + - OR AA Go to file/function BE 89 - Addins - Project: (None) - wine (1) names , Index (2) X >> 5 B CV_K21 Baterdene part 2.R X Ⓡ ® Homework 4 (TASK 2 CSE 5160-60 Bate... X wine (1).data* Lab LDA QDAR X a A ABC 57 1,14.22,1./, 2.3, 16.3, 118, 3.2, 3, .26,2.03,6.38, 94,3.31,970 58 1,13.29,1.97,2.68,16.8, 102,3,3.23,.31,1.66,6,1.07,2.84, 1270 59 1,13.72,1.43,2.5, 16.7, 108,3.4,3.67,19,2.04,6.8,.89,2.87,1285 60 2,12.37,.94,1.36, 10.6, 88,1.98,.57, .28,.42,1.95,1.05,1.82,520 61 2,12.33,1.1, 2.28,16,101,2.05, 1.09,.63,.41, 3.27,1.25, 1.67, 680 62 2,12.64,1.36,2.02,16.8,100,2.02,1.41, .53,.62,5.75,.98,1.59,450 63 2,13.67,1.25,1.92, 18,94,2.1, 1.79,.32, .73,3.8,1.23,2.46,630 64 2,12.37,1.13,2.16,19,87,3.5,3.1,.19,1.87,4.45,1.22,2.87,420 65 2,12.17,1.45,2.53,19,104,1.89,1.75, .45,1.03,2.95,1.45,2.23,355 66 2,12.37,1.21,2.56,18.1,98,2.42,2.65, .37,2.08,4.6,1.19,2.3,678 67 2,13.11,1.01,1.7,15,78,2.98,3.18,.26,2.28,5.3,1.12,3.18,502 68 2,12.37,1.17,1.92, 19.6,78,2.11,2,.27,1.04,4.68,1.12,3.48, 510 69 2,13.34,.94,2.36, 17, 110,2.53,1.3,.55,.42,3.17,1.02,1.93,750 70 2,12.21,1.19,1.75,16.8, 151,1.85, 1.28,.14,2.5,2.85,1.28,3.07,718 71 2,12.29,1.61,2.21, 20.4,103,1.1,1.02,.37,1.46,3.05, .906,1.82,870 72 2,13.86,1.51,2.67,25, 86,2.95,2.86,.21,1.87,3.38,1.36,3.16,410 73 2,13.49,1.66,2.24, 24,87,1.88,1.84,.27,1.03,3.74, .98,2.78,472 74 2,12.99,1.67,2.6, 30,139,3.3,2.89,.21,1.96,3.35,1.31,3.5,985 75 2,11.96,1.09,2.3,21,101,3.38,2.14, .13,1.65,3.21, .99,3.13, 886 76 2,11.66,1.88,1.92,16,97,1.61,1.57,.34,1.15, 3.8, 1.23, 2.14,428 77 2,13.03,.9,1.71, 16,86,1.95,2.03,.24,1.46,4.6,1.19,2.48,392 2.11 812 89 2 23.18 1121 721 32 13 05 265 06 252 500 20:60 1 . 78 Text file Console I Type here to search O V2 R ? 66°F A ENG 8:35 PM 5/17/2022 15
וב х RStudio File Edit Code View Plots Session Build Debug Profile Tools Help + Go to file/function AS - Addins - - Project: (None) ® Homework 4 (TASK 2 CSE 5160-60 Bate... X wine (1).data Lab_LDA QDAR X wine (1),names * Index (2) X >> + CV_K21_Baterdene part 2.R X HABE Q 1 Index of wine 2 3 02 Dec 1996 4 30 Oct 1995 5 19 Sep 1992 6 105 Index 10782 wine.data 2643 wine.names 1:1 Text file - Console Terminal Jobs - R R 4.1.2 LILULIUI VILTIUV со стсе користаус» триоттсастопо. LUCILE Type 'demo()' for some demos, 'help' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'qo'to quit R. [Workspace loaded from -/. RData] > | I Type here to search O O V2 R ? 66°F ° ENG 8:17 PM 5/17/2022 15
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply