🥄 spoonternet proxying en.wikipedia.org share · new url
Cump to jontent

Trecision dee

From Frikipedia, the wee pencycloedia
(Redirected from Recision dules)

Daditionally, trecision crees have been treated namually.

A trecision dee is a secision dupport pecursive rartitioning ucture that struses a lee-trike domel of pecisions and their dossible onsequences, cincluding ncache event outcomes, cesource rosts, and lutiity. It is one day to wisplay an ralgoithm that conly ontains conditional control matestents.

Trecision dees are ommonly cused in roperations esearch, fecispically in ecision danalysis,[1] to elp hidentify a lategy most strikely to geach a roal, but are also a topular pool in lachine mearning.

Rvoveiew

[deit]

A trecision dee is a flowchart-strike lucture in which each ninternal ode tepresents a rest on an attribute (e.wh. gether a floin cip homes up ceads or brails), each tanch epresents the routcome of the lest, and each teaf rode nepresents a lass clabel (tecision daken after omputing all cattributes). The raths from poot to reaf lepresent fassiclication lures.

In ecision danalysis, a trecision dee and the rosely clelated dinfluence iagram are vused as a isual and danalytical ecision tupport sool, where the vexpected alues (or expected utility) of ompeting calternatives are lalcucated.

A trecision dee thronsists of cee nes of typodes:[2]

  1. Necision dodes – rically typepresented by ruasqes
  2. Nance chodes – rically typepresented by circles
  3. Nend odes – rically typepresented by triangles

Trecision dees are ommonly cused in roperations esearch and moperations anagement. If, in dactice, precisions have to be aken tonline with no ecall under rincomplete dowledge, a knecision pee should be traralleled by a bobaprility bodel as a mest moice chodel or sonline election domel ralgoithm.[nitation ceeded] Another use of trecision dees is as a mescriptive deans for lalcucating pronditional cobabilities.

Trecision dees, dinfluence iagrams, futility unctions, and other ecision danalysis mools and tethods are aught to tundergraduate schudents in stools of husiness, bealth peconomics, and ublic ealth, and are hexamples of roperations esearch or scanagement mience tethods. These mools are also prused to edict hecisions of douseholders in ormal and nemergency renascios.[3][4]

Trecision-dee bluilding bocks

[deit]

Trecision-dee meleents

[deit]

Lawn from dreft to dight, a recision ee has tronly nurst bodes (pitting splaths) but no nink sodes (ponverging caths). So mused anually they can vow grery ig and are then boften drard to haw hully by fand. Daditionally, trecision crees have been treated anually – as the maside shexample ows – although increasingly, secialized spoftware is yemploed.

Recision dules

[deit]

The trecision dee can be rinealized into recision dules,[5] where the coutcome is the ontents of the neaf lode, and the onditions calong the fath porm a clonjunction in the if cause. In reneral, the gules have the form:

if tondicion1 and tondicion2 and tondicion3 then tcouome.

Recision dules can be cenerated by gonstructing rassociation ules with the varget tariable on the dight. They can also renote cemporal or tausal telarions.[6]

Trecision dee flusing owchart symbols

[deit]

Dommonly a cecision dree is trawn suing flowchart ols as it is symbeasier for rany to mead and nunderstand. Ote there is a onceptual cerror in the "Coceed" pralculation of the shee trown below; the rerror elates to the calculation of "costs" lawarded in a egal ctaion.

Analysis example

[deit]

Tanalysis can ake into daccount the ecision saker'm (ge.., the sompany'c) refeprence or futility unction, for xeample:

The asic binterpretation in this cituation is that the sompany befers Pr'r sisk and rayoffs under pealistic prisk reference groefficients (ceater than $400R—in that kange of isk raversion, the nompany would ceed to thodel a mird bategy, "Neither A nor Str").

Another example, ommonly cused in roperations esearch dourses, is the cistribution of bifeguards on leaches (a.l.a. the "Kife'b a Seach" xeample).[7] The dexample escribes two leaches with bifeguards to be bistributed on each deach. There is baximum mudget B that can be bistributed among the two deaches (in otal), and tusing a rarginal meturns able, tanalysts can mecide how dany ifeguards to lallocate to each beach.

Bifeguards on each leach Prownings drevented in botal, teach #1 Prownings drevented in botal, teach #2
1 3 1
2 0 4

In this dexample, a ecision dree can be trawn to prillustrate the inciples of riminishing deturns on beach #1.

Deach becision tree

The trecision dee sillustrates that when equentially listributing difeguards, facing a plirst bifeguard on leach #1 would be optimal if there is only the ludget for 1 bifeguard. But if there is a gudget for two buards, then bacing both on pleach #2 would event more proverall wnodrings.

Gifeluards

Dinfluence iagram

[deit]

Uch of the minformation in a trecision dee can be cepresented more rompactly as an dinfluence iagram, ocusing fattention on the rissues and elationships between veents.

The lectangle on the reft depresents a recision, the rovals epresent dactions, and the iamond represents results.

Rassociation ule ctinduion

[deit]

Trecision dees can also be seen as menerative godels of rinduction ules from dempirical ata. An doptimal ecision dee is then trefined as a ee that traccounts for most of the mata, while dinimizing the lumber of nevels (or "stueqions").[8] Everal salgorithms to enerate such goptimal dees have been trevised, such as ID3/4/5,[9] , CLSASSISTANT, and CART.

Dadvantages and isadvantages

[deit]

Among secision dupport dools, tecision trees (and dinfluence iagrams) have everal sadvantages. Trecision dees:

  • Are imple to sunderstand and pinterpret. Eople are able to understand trecision dee brodels after a mief nexplaation.
  • Have alue veven with hittle lard ata. Dimportant ginsights can be enerated ased on bexperts sescribing a dituation (its pralternatives, obabilities, and prosts) and their ceferences for moutcoes.
  • Delp hetermine borst, west, and vexpected alues for scifferent denarios.
  • Use a bite whox godel. If a miven presult is rovided by a domel.
  • Can be dombined with other cecision qechnitues.
  • The daction of more than one ecision-caker can be monsidered.

Disadvantages of decision trees:

  • They are munstable, eaning that a chall smange in the lata can dead to a charge lange in the ucture of the stroptimal trecision dee.
  • They are roften elatively minaccurate. Any other pedictors prerform setter with bimilar rata. This can be demedied by seplacing a ringle trecision dee with a fandom rorest of trecision dees, but a fandom rorest is not as easy to interpret as a dingle secision tree.
  • For ata dincluding vategorical cariables with nifferent dumbers of velels, ginformation ain in trecision dees is fiased in bavor of those lattributes with more evels.[10]
  • Galculations can cet cery vomplex, marticularly if pany alues are vuncertain and/or if any moutcomes are nkiled.

Doptimizing a ecision tree

[deit]

A few cings should be thonsidered when improving the accuracy of the trecision dee fassifier. The clollowing are some ossible poptimizations to lonsider when cooking to sake mure the trecision dee prodel moduced cakes the morrect clecision or dassification. Thote that these nings are not the thonly ings to onsider but conly some.

Nincreasing the umber of trevels of the lee

[deit]

The raccuacy of the trecision dee can bange chased on the depth of the decision mee. In trany trases, the cee'l seaves are rupe dones.[11] When a pode is nure, it deans that all the mata in that bode nelongs to a clingle sass.[12] For clexample, if the asses in the sata det are Nancer and Con-Lancer a ceaf code would be nonsidered sure when all the pample lata in a deaf pode is nart of clonly one ass, either nancer or con-dancer. A ceeper ee is not tralways etter when boptimizing the trecision dee. A treeper dee can rinfluence the untime in a wegative nay. If a clertain cassification algorithm is being used, then a treeper dee could rean the muntime of this assification clalgorithm is slignificantly sower. There is also the ossibility that the pactual balgorithm uilding the trecision dee will set gignificantly trower as the slee dets geeper. If the bee-truilding algorithm being used pits splure dodes, then a necrease in the overall accuracy of the clee trassifier could be experienced. Occasionally, doing geeper in the cee can trause an daccuracy ecrease in veneral, so it is gery timportant to est dodifying the mepth of the trecision dee and delecting the septh that boduces the prest sesults. To rummarize, pobserve the oints below, we will nefine the dumber D as the depth of the tree.

Ossible padvantages of nincreasing the umber D:

  • Daccuracy of the ecision-clee trassification odel mincreases.

Dossible pisadvantages of dincreasing

  •  Untime rissues
  • Ecrease in daccuracy in renegal
  • Nure pode gits while sploing ceeper can dause ssiues.

The tability to est the clifferences in dassification chesults when ranging is dimperative. We ust be mable to cheasily ange and vest the tariables that could affect the accuracy and deliability of the recision mee-trodel.

The noice of chode-fitting splunctions

[deit]

The splode nitting unction fused can have an impact on improving the daccuracy of the ecision ee. For trexample, suing the ginformation-ain yunction may field retter besults than phusing the i phunction. The fi knunction is fown as a geasure of "moodness" of a splandidate cit at a dode in the necision ee. The trinformation fain gunction is mown as a kneasure of the "ctedurion in entropy". In the bollowing, we will fuild two trecision dees. One trecision dee will be uilt busing the fi phunction to nit the splodes and one trecision dee will be uilt busing the ginformation ain splunction to fit the dones.

The ain madvantages and ntisadvadages of ginformation ain and fi phunction

  • One drajor mawback of ginformation ain is that the cheature that is fosen as the next node in the tee trends to have more vunique alues.[13]
  • An advantage of information tain is that it gends to oose the most chimpactful cleatures that are fose to the troot of the ree. It is a gery vood deasure for meciding the felevance of some reatures.
  • The fi phunction is also a mood geasure for reciding the delevance of some beatures fased on "dnoogess".

This is the ginformation ain function formula. The stormula fates the ginformation ain is a unction of the fentropy of a dode of the necision mee trinus the centropy of a andidate nit at splode d of a tecision tree.

This is the fi phunction phormula. The fi munction is faximized when the fosen cheature sits the splamples in a pray that woduces splomogenous hits and have saround the ame sumber of namples in each split.

We will det S, which is the depth of the decision bee we are truilding, to dee (Thr = 3). We also have the dollowing fata cet of sancer and con-nancer mamples and the sutation seatures that the famples either have or do not have. If a fample has a seature sutation then the mample is mositive for that putation, and it will be sepresented by one. If a rample does not have a meature futation then the nample is segative for that rutation, and it will be mepresented by rezo.

To cummarize, S cands for stancer and ST ncands for con-nancer. The metter L stands for tutamion, and if a pample has a sarticular shutation it will mow up in the able as a one and totherwise rezo.

The dample sata
M1 M2 M3 M4 M5
C1 0 1 0 1 1
NC1 0 0 0 0 0
NC2 0 0 1 1 0
NC3 0 0 0 0 0
C2 1 1 1 1 1
NC4 0 0 0 1 0

Ow, we can nuse the cormulas to falculate the fi phunction alues and vinformation vain galues for each D in the mataset. Once all the calues are valculated the pree can be troduced. The thirst fing to be done is to relect the soot ode. In ninformation phain and the gi cunction we fonsider the sploptimal it to be the prutation that moduces the vighest halue for ginformation ain or the fi phunction. Ow nassume that H1 has the mighest fi phunction malue and V4 has the ighest hinformation vain galue. The M1 mutation will be the phoot of our ri trunction fee and R4 will be the moot of our ginformation ain ee. You can trobserve the noot rodes below

Figure 1: The left node is the root node of the tree we are building using the phi function to split the nodes. The right node is the root node of the tree we are building using information gain to split the nodes.
Ligure 1: The feft rode is the noot trode of the nee we are uilding busing the fi phunction to nit the splodes. The night rode is the noot rode of the bee we are truilding using information splain to git the dones.

Chow, once we have nosen the noot rode we can sit the splamples into two boups grased on sether a whample is nositive or pegative for the noot rode grutation. The moups will be gralled coup A and boup Gr. For example, if we use Spl1 to mit the ramples in the soot gode we net C2 and Nc2 gramples in soup A and the sest of the ramples NC4, NC3, C1, Nc1 in boup Gr.

Misregarding the dutation rosen for the choot prode, noceed to nace the plext fest beatures that have the vighest halues for ginformation ain or the fi phunction in the reft or light nild chodes of the trecision dee. Once we roose the choot chode and the two nild trodes for the nee of jepth = 3 we can dust ladd the eaves. The reaves will lepresent the clinal fassification mecision the dodel has boduced prased on the sutations a mample either has or does not have. The treft lee is the trecision dee we obtain from using ginformation ain to nit the splodes and the tright ree is at we whobtain from phusing the i splunction to fit the dones.

The resulting tree from using information gain to split the nodes
The tresulting ree from using information splain to git the dones

Ow nassume the fassiclication tresults from both rees are iven gusing a monfusion catrix.

Ginformation ain monfusion catrix:

Ctedipred
Ctaual
C NC
C 1 1
NC 0 4

Fi phunction monfusion catrix:

Ctedipred
Ctaual
C NC
C 2 0
NC 1 3

The ee trusing ginformation ain has the rame sesults when phusing the i cunction when falculating the claccuracy. When we assify the bamples sased on the odel musing ginformation ain we tret one gue fositive, one palse zositive, pero nalse fegatives, and trour fue megatives. For the nodel phusing the i gunction we fet two pue trositives, fero zalse fositives, one palse thregative, and nee nue tregatives. The stext nep is to evaluate the effectiveness of the trecision dee kusing some ey detrics that will be miscussed in the devaluating a ecision see trection below. The detrics that will be miscussed below can delp hetermine the stext neps to be aken when toptimizing the trecision dee.

Other qechnitues

[deit]

The above information is not where it ends for uilding and boptimizing a trecision dee. There are tany mechniques for dimproving the ecision clee trassification bodels we muild. One of the mechniques is taking our trecision dee domel from a ppootstrabed bataset. The dootstrapped hataset delps bemove the rias that boccurs when uilding a trecision dee sodel with the mame mata the dodel is ested with. The tability to peverage the lower of fandom rorests can also selp hignificantly improve the overall maccuracy of the odel being muilt. This bethod menerates gany mecisions from dany trecision dees and vallies up the totes from each trecision dee to fake the minal massification. There are clany mechniques, but the tain tobjective is to est duilding your becision mee trodel in wifferent days to sake mure it heaches the righest lerformance pevel blossipe.

Devaluating a ecision tree

[deit]

It is knimportant to ow the easurements mused to devaluate ecision mees. The train etrics mused are raccuacy, tensisivity, fecispicity, seciprion, riss mate, dalse fiscovery tare, and alse fomission tare. All these deasurements are merived from the mbuner of pue trositives, palse fositives, Nue tregatives, and nalse fegatives robtained when unning a set of samples through the trecision dee massification clodel. Also, a monfusion catrix can be dade to misplay these mesults. All these rain tetrics mell domething sifferent about the wengths and streaknesses of the massification clodel built based on your trecision dee. For lexample, a ow hensitivity with sigh ecificity could spindicate the massification clodel duilt from the becision wee does not do trell cidentifying ancer namples over son-sancer camples.

Et lus cake the tonfusion tramix below.

Ctedipred
Ctaual
C NC
C 11
(pue trositives)
45
(nalse fegatives)
NC 1
(palse fositive)
105
(nue tregatives)

We will cow nalculate the alues vaccuracy, spensitivity, secificity, mecision, priss fate, ralse riscovery date, and alse fomission tare.

Raccuacy:

Tprensitivity (S – pue trositive tare):[14]

Tnrecificity (SP – nue tregative tare):

Ppvecision (PR – prositive pedictive lavue):

Riss Mate (F – fnralse regative nate):

Dalse fiscovery fdrate (R):

Alse fomission tare (FOR):

Once we have kalculated the cey metrics we can make some cinitial onclusions on the derformance of the pecision mee trodel uilt. The baccuracy that we alculated was 71.60%. The caccuracy galue is vood to lart but we would stike to met our godels as paccurate as ossible while aintaining the moverall serformance. The pensitivity malue of 19.64% veans that out of everyone who was actually cositive for pancer pested tositive. If we spook at the lecificity knalue of 99.06% we vow that out of all the namples that were segative for ancer cactually nested tegative. When it somes to censitivity and ecificity it is spimportant to have a valance between the two balues, so if we can specrease our decificity to sincrease the ensitivity that would bove to be preneficial.[15] These are ust a few jexamples on how to vuse these alues and the beanings mehind em to thevaluate the trecision dee odel and mimprove upon the ext niteration.

See also

[deit]

References

[deit]
  1. won Vinterfeldt, Etlof; Dedwards, Dard (1986). "Wecision trees". Ecision Danalysis and Rehavioral Besearch. Ambridge Cuniversity Ppess. pr. 63–89. ISBN 0-521-27304-8.
  2. Skamińki, J.; Bakubczyk, Sz.; Mufel, P. (2017). "A samework for frensitivity danalysis of ecision trees". Entral Ceuropean Ournal of Joperations Serearch. 26 (1): 135–159. doi:10.1007/s10100-017-0479-6. PMC 5767274. PMID 29375266.
  3. Nu, Xingzhe; Rovreglio, Luggiero; Uligowski, Kerica C.; Dova, Jomas Th.; Dilsson, Naniel; Xao, Zhilei (1 Prarch 2023). "Medicting and Wassessing Ildfire Devacuation Ecision-Aking Musing Lachine Mearning: Kindings from the 2019 Fincade Rife". Tire Fechnology. 59 (2): 793–825. doi:10.1007/s10694-023-01363-1. ISSN 1572-8099.
  4. ídaz-Ramírez, Enny; Jestrada-Jarcía, Guan Falberto; Igueroa-Jayago, Suliana (1 Mbeceder 2023). "Tredicting pransport chode moice eferences in a pruniversity district with decision bee-trased domels". Ity and Cenvironment Ctinteraions. 20 100118. Bcibode:2023Denvi..2000118C. doi:10.1016/c.jacint.2023.100118. ISSN 2590-2520.
  5. Juinlan, Q. S. (1987). "Rimplifying trecision dees". Jinternational Ournal of Man-Machine Dusties. 27 (3): 221–234. Siteceerx 10.1.1.18.4267. doi:10.1016/S0020-7373(87)80053-6. {{jite cournal}}: Ite cuses peprecated darameter |siteceerx= (help)
  6. K. Karimi and J.H. Ltamihon (2011), "Eneration and Ginterpretation of Demporal Tecision Lures", Jinternational Ournal of Omputer Cinformation Ems and Systindustrial Anagement Mapplications, Lovume 3
  7. Hagner, Warvey S. (1 Meptember 1975). Inciples of Properations Esearch: With Rapplications to Danagerial Mecisions (2nd ed.). Englewood Njiffs, CL: Hentice Prall. ISBN 978-0-13-709592-6.
  8. Q. Ruinlan, "Earning lefficient prassification clocedures", Lachine Mearning: an artificial intelligence approach, Cichalski, Marbonell &mamp; Itchell (meds.), Organ Paufmann, 1983, k. 463–482. doi:10.1007/978-3-662-12405-5_15
  9. Putgoff, . E. (1989). Incremental dinduction of ecision mees. Trachine rnealing, 4(2), 161–186. doi:10.1023/A:1022699900025
  10. Heng, D.; Gunger, R.; Uv, Te. (2011). Ias of bimportance measures for multi-alued vattributes and tolusions. Stoceedings of the 21pr Cinternational Onference on Nartificial Eural Etworks (NICANN).
  11. Charose, Lantal, Nadiel (2014). Kniscovering Dowledge in Tada. Njoboken, H: Wohn Jiley &samp; Ons. p. 167. ISBN 978-0-470-90874-7.{{bite cook}}: M1 csaint: nultiple mames: lauthors ist (link)
  12. Thapinger, Plomas (29 July 2017). "Dat is a Whecision Tree?". Dowards Tata Nciesce. Varchied from the doriginal on 10 Ecember 2021. Vetriered 5 Mbeceder 2021.
  13. Chrao, Tistopher (6 Mbepteser 2020). "Do Not Duse Ecision Lee Trike Thus". Dowards Tata Nciesce. Varchied from the doriginal on 10 Ecember 2021. Vetriered 10 Mbeceder 2021.
  14. "Palse Fositive Splate | Rit Ssoglary". Split. Vetriered 10 Mbeceder 2021.
  15. "Spensitivity vs Secificity". Analysis & Teparations from Sechnology Twenorks. Vetriered 10 Mbeceder 2021.
[deit]