Cody

Problem 1260. RISK board game battle simulation

Solution 2127995

Submitted on 14 Feb 2020 by Sophia Nguyen
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
a = 3; d = 0; y_correct = 1.000; assert(abs(risk_prob(a, d) - y_correct) <= 0.01)

[Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob (line 49) In ScoringEngineTestPoint1 (line 4) In solutionTest (line 3)]

2   Pass
a = 1; d = 5; y_correct = 0.000; assert(abs(risk_prob(a, d) - y_correct) <= 0.01)

[Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob (line 49) In ScoringEngineTestPoint2 (line 4) In solutionTest (line 5)]

3   Pass
a = 5; d = 3; y_correct = 0.642; assert(abs(risk_prob(a, d) - y_correct) <= 0.02)

[Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob (line 49) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 73) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 73) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 73) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk...

4   Pass
a = 4; d = 6; y_correct = 0.134; assert(abs(risk_prob(a, d) - y_correct) <= 0.02)

[Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob (line 49) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 73) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 73) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 73) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_p...

5   Pass
a = 10; d = 10; y_correct = 0.480; assert(abs(risk_prob(a, d) - y_correct) <= 0.02)

[Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob (line 49) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In ri...

6   Pass
a = 7; d = 8; y_correct = 0.329; assert(abs(risk_prob(a, d) - y_correct) <= 0.02)

[Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob (line 49) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 73) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint6 (line 4) In solutionTes...

7   Pass
a = 8; d = 7; y_correct = 0.5355; assert(abs(risk_prob(a, d) - y_correct) <= 0.02)

[Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob (line 49) In ScoringEngineTestPoint7 (line 4) In solutionTest (line 15)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint7 (line 4) In solutionTest (line 15)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint7 (line 4) In solutionTest (line 15)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint7 (line 4) In solutionTest (line 15)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint7 (line 4) In solutionTest (line 15)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint7 (line 4) In solutionTest (line 15)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint7 (line 4) In solutionTest (line 15)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint7 (line 4) In solutionTest (line 15)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint7 (line 4) In solutionTest (line 15)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint7 (line 4) In solutionTest (line 15)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint7 (line 4) In solutionTest (line 15)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint7 (line 4) In solutionTest (line 15)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint7 (line 4) In solutionTest (line 15)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint7 (line 4) In solutionTest (line 15)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint7 (line 4) In solutionTest (line 15)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 73) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint7 (line 4) In solutionTest (line 15)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk...

8   Pass
a = 20; d = 10; y_correct = 0.965; assert(abs(risk_prob(a, d) - y_correct) <= 0.02)

[Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob (line 49) In ScoringEngineTestPoint8 (line 4) In solutionTest (line 17)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint8 (line 4) In solutionTest (line 17)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint8 (line 4) In solutionTest (line 17)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint8 (line 4) In solutionTest (line 17)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint8 (line 4) In solutionTest (line 17)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint8 (line 4) In solutionTest (line 17)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint8 (line 4) In solutionTest (line 17)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint8 (line 4) In solutionTest (line 17)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint8 (line 4) In solutionTest (line 17)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint8 (line 4) In solutionTest (line 17)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint8 (line 4) In solutionTest (line 17)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint8 (line 4) In solutionTest (line 17)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint8 (line 4) In solutionTest (line 17)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint8 (line 4) In solutionTest (line 17)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint8 (line 4) In solutionTest (line 17)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint8 (line 4) In solutionTest (line 17)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In ri...

9   Pass
a = 4; d = 2; y_correct = 0.656; assert(abs(risk_prob(a, d) - y_correct) <= 0.02)

[Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 73) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 73) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 75) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 76) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 75) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 76) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 73) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint9 (line 4) In solutionTest (line 19)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_pr...

10   Pass
a = 6; d = 4; y_correct = 0.638; assert(abs(risk_prob(a, d) - y_correct) <= 0.02)

[Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob (line 49) In ScoringEngineTestPoint10 (line 4) In solutionTest (line 21)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint10 (line 4) In solutionTest (line 21)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint10 (line 4) In solutionTest (line 21)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint10 (line 4) In solutionTest (line 21)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint10 (line 4) In solutionTest (line 21)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint10 (line 4) In solutionTest (line 21)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint10 (line 4) In solutionTest (line 21)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint10 (line 4) In solutionTest (line 21)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint10 (line 4) In solutionTest (line 21)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint10 (line 4) In solutionTest (line 21)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint10 (line 4) In solutionTest (line 21)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 73) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint10 (line 4) In solutionTest (line 21)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint10 (line 4) In solutionTest (line 21)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint10 (line 4) In solutionTest (line 21)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint10 (line 4) In solutionTest (line 21)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 73) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint10 (line 4) In solutionTest (line 21)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint10 (line 4) In solutionTest (line 21)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk...

11   Pass
a = 2; d = 1; y_correct = 0.417; assert(abs(risk_prob(a, d) - y_correct) <= 0.02)

[Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob (line 49) In ScoringEngineTestPoint11 (line 4) In solutionTest (line 23)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint11 (line 4) In solutionTest (line 23)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint11 (line 4) In solutionTest (line 23)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 73) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint11 (line 4) In solutionTest (line 23)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint11 (line 4) In solutionTest (line 23)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 75) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint11 (line 4) In solutionTest (line 23)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 76) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint11 (line 4) In solutionTest (line 23)]

12   Pass
a = 2; d = 2; y_correct = 0.104; assert(abs(risk_prob(a, d) - y_correct) <= 0.02)

[Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob (line 49) In ScoringEngineTestPoint12 (line 4) In solutionTest (line 25)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint12 (line 4) In solutionTest (line 25)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint12 (line 4) In solutionTest (line 25)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 73) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint12 (line 4) In solutionTest (line 25)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint12 (line 4) In solutionTest (line 25)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>risk_prob3 (line 71) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint12 (line 4) In solutionTest (line 25)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 72) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint12 (line 4) In solutionTest (line 25)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 73) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint12 (line 4) In solutionTest (line 25)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint12 (line 4) In solutionTest (line 25)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 75) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint12 (line 4) In solutionTest (line 25)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 76) In risk_prob>memothis (line 61) In risk_prob>risk_prob3 (line 74) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint12 (line 4) In solutionTest (line 25)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 75) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint12 (line 4) In solutionTest (line 25)] [Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable.] [> In risk_prob>memothis (line 53) In risk_prob>risk_prob3 (line 76) In risk_prob>memothis (line 61) In risk_prob (line 49) In ScoringEngineTestPoint12 (line 4) In solutionTest (line 25)]