8 Teb. R code rau cov ncej no yog nyob rau ntawm github. Trimmed txhais tau tias yog tus kwv yees muaj zog ntawm lub hauv paus nyiam. Txhawm rau xam qhov kev txiav txiav, peb tshem tawm qhov kev soj ntsuam ua ntej ntawm txhua sab ntawm kev faib tawm, thiab nruab nrab qhov kev soj ntsuam ntxiv.
Lim ua dab tsi hauv kev ua haujlwm hauv R?
tus lej vector yuav tsum tau muab txiav. luas. cov feem (0 mus rau 0.5) ntawm kev soj ntsuam yuav tsum tau txiav los ntawm txhua kawg ntawm x. Qhov tseem ceeb ntawm trim sab nraum qhov ntau yam (thiab 1 nws tau txhais raws li tus naj npawb ntawm cov ntsiab lus yuav raug txiav tawm ntawm txhua tus Tsov tus tw ntawm x.
5% trimmed txhais li cas?
Ib qho txhais tau tias yog ib qho kev xaiv hauv kev piav qhia cov txheeb cais hauv ntau lub khoos phis tawj. … Piv txwv li, nrog 5% trimmed txhais tau tias, qis tshaj 5% thiab siab tshaj 5% ntawm cov ntaub ntawv tsis suav nrog. Qhov nruab nrab yog xam los ntawm qhov seem 90% ntawm cov ntaub ntawv cov ntsiab lus.
qauv txiav txiav txhais li cas?
Ib qho txhais tau hais tias yog txhais tau hais tias txiav los ntawm x%, qhov twg x yog qhov suav ntawm feem pua ntawm kev soj ntsuam tshem tawm ntawm ob sab sauv thiab sab qis. … Piv txwv li, ib qho trimmed txhais tau tias ntawm 3% yuav tshem tawm qhov qis tshaj thiab siab tshaj 3% ntawm qhov tseem ceeb, tawm hauv qhov txhais tau tias yuav suav los ntawm 94% ntawm cov ntaub ntawv seem.
Koj pom 15% txhais tau li cas?
Hauv qhov piv txwv saum toj no, yog tias peb xav tau 15% trimmed txhais tau tias, ��=0.15, n=10, k=n��=1.5. Kev suav yield k muaj ib feem 1, thiab ib feem 0.5. R=n-2k=10-21.5=10-3=7.