13.07.2015 Views

Simulation and Statistical Exploration of Data \(Let's Make a Deal ...

Simulation and Statistical Exploration of Data \(Let's Make a Deal ...

Simulation and Statistical Exploration of Data \(Let's Make a Deal ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

( 2-abs( list1[ x] – 2) ) × r<strong>and</strong>(0,1) + intg( ( 5 - list1[ x] ) / 2 ) ⇒ list3[ x]IfEndNext10 × list7 + list3 ⇒ list8DispListEditorPausePrint “ ”Print “Player’s strategy:”Print sPrint “Player’s final choice”Print “in list4”If s=1Then6 – list2 – list3 ⇒ list4Elselist2 ⇒ list4IfEnd10 × list8 + list4 ⇒ list9DispListEditorPausePrint “ ”Print “Summary <strong>of</strong> all plays”Print “in list5”Print “1 for player’s success”Print “0 for player’s loss”For 1 ⇒ x To nIf list4[ x] = list1[ x]Then1 ⇒ list5[ x]Else0 ⇒ list5[ x]IfEndNextDispListEditorPausePrint “ ”Print “Sum <strong>of</strong> win-plays”Print “in list6”Cuml( list5 ) ⇒ list6DispListEditorPausePrint “ ”Print “ Summary”Print “ ”Print “Number <strong>of</strong> plays”Print nPrint “ ”Print “Player’s strategy”Print sPrint “ ”Print “Number <strong>of</strong> win-plays”Print list6[n]Print “ ”Print “Number <strong>of</strong> loss-plays”Print n-list6[n]Stop

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

Saved successfully!

Ooh no, something went wrong!