1-04-19から1日間の記事一覧

Risk/Return calculation

//risk and return calculation #include <stdio.h> #include <stdlib.h> #include <math.h> // number of games #define N 100 // return #define R 1.5 // win prob #define P 0.8 // log of binary distribution probability // log( nCm p^n (1-p)^m) double logBP(double p, int n,</math.h></stdlib.h></stdio.h>…