12.07.2015 Views

Inferenza e test statistici - Dipartimento di Economia e Statistica

Inferenza e test statistici - Dipartimento di Economia e Statistica

Inferenza e test statistici - Dipartimento di Economia e Statistica

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

EsempioDue campioni <strong>di</strong> misurazioni del tempo precedente la prima<strong>di</strong>sfunzione in due <strong>di</strong>versi macchinari hanno dato luogo alla tabellaTempi C_1 C_2 C_2/risc (f1i-f'2i) 2 /f'2i0 - 20 29 56 32.78 0.43620 - 40 27 41 24.00 0.37540 - 60 14 32 18.73 1.19560 - 70 11 19 11.12 0.00170 - 80 8 13 7.61 0.020>80 7 3 1.76 15.65996 164 96.00 17.686'Le “teoriche” sono ottenute come: n 2i= n 1 f 2iLa statistica <strong>test</strong> è " 2 =17.686 con 6-1=5 gra<strong>di</strong> <strong>di</strong> libertàEsercizioNumero <strong>di</strong> incidenti automobilistici lungo una strada a scorrimentoveloce. Frequenza per lato <strong>di</strong> percorrenzaVerso Sud Settimane Verso Nord Settimane0 39 0 821 28 1 602 19 2 403 13 3 274 8 4 185 4 5 8>5 2 >5 4113 239DISTRIB.CHI(17.686;5)=0.00336 (p-Value)Determinate il p-value dell’ipotesi <strong>di</strong> omogeneità dei due campioniL’ipotesi si deve rifiutare al<strong>di</strong>là <strong>di</strong> ogni ragionevole dubbioTest sull'in<strong>di</strong>pendenzaUn problema ricorrente in statistica riguarda l'in<strong>di</strong>pendenza o meno <strong>di</strong> duecategorie <strong>di</strong> classificazioneEsempioUno stu<strong>di</strong>o su <strong>di</strong> un campione <strong>di</strong> mariti ha prodotto i seguenti risultatiL’ipotesi da sottoporre a verifica èH 0: " ij= " i." . jper ogni "i e j"H 1: " ij# " i." . jper almeno un "i e j"La moglie lavoraLa moglie lavoraFull-time Part-Time Casalinga Totale Full-time Part-Time Casalinga TotaleAccetto che lavori 148 51 49 248 Accetto che lavori 95.5055 68.3867 84.1078 248Non mi importa 34 16 7 57 Non mi importa 21.9509 15.7179 19.3312 57Non so/Non risponde 36 26 32 94 Non so/Non risponde 36.1997 25.9208 31.8796 94Non voglio che lavori 25 81 126 232 Non voglio che lavori 89.3439 63.9746 78.6815 232243 174 214 631 243 174 214 631Si adopera la seguente statistica <strong>test</strong>:&" 2 c= n(('!f ij# $ ijk( ) 2%i=1$ ij) n+ (+ = n ij# n$ ij ) 2&% = (n$* i=1 ij 'n%n ij2i=1n$ ij)+ # n*La moglie lavoraFull-time Part-Time Casalinga p-value= 1.2E-29Accetto che lavori 28.8535 4.4204 14.6545Non mi importa 6.6139 0.0051 7.8660Non so/Non risponde 0.0011 0.0002 0.0005Non voglio che lavori 46.3393 4.5309 28.457181.8079 8.9566 50.9780 141.7C’è fortissima evidenza CONTRO l’ipotesi <strong>di</strong> in<strong>di</strong>pendenza come del resto erafacile da immaginare quardando la tabella!

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!