Lines Matching refs:cout
37 using std::cout; using std::endl;
51 cout << "Binomial distribution example - guessing in a quiz." << endl; in main()
65 cout << "In a quiz with " << quiz.trials() in main()
72 cout << "Probability of getting none right is " << pdf(quiz, 0) << endl; // 0.010023 in main()
73 cout << "Probability of getting exactly one right is " << pdf(quiz, 1) << endl; in main()
74 cout << "Probability of getting exactly two right is " << pdf(quiz, 2) << endl; in main()
76 cout << "Probability of getting exactly " << pass_score << " answers right by chance is " in main()
78 cout << "Probability of getting all " << questions << " answers right by chance is " in main()
92 cout << "\n" "Guessed Probability" << right << endl; in main()
96 cout << setw(2) << successes << " " << probability << endl; in main()
98 cout << endl; in main()
122 cout << "Probability of getting none or one right is " << pdf(quiz, 0) + pdf(quiz, 1) << endl; in main()
131 cout << "Probability of getting none or one right is " << cdf(quiz, 1) << endl; in main()
138 cout << "Probability of getting <= 10 right (to fail) is " << cdf(quiz, 10) << endl; in main()
146 cout << "Probability of getting > 10 right (to pass) is " << 1 - cdf(quiz, 10) << endl; in main()
153 cout << "Probability of getting > 10 right (to pass) is " << cdf(complement(quiz, 10)) << endl; in main()
164 cout << "Probability of getting less than " << pass_score in main()
177 cout << "Probability of getting at least " << pass_score in main()
190 cout << "\n" "At most (<=)""\n""Guessed OK Probability" << right << endl; in main()
193 cout << setw(2) << score << " " << setprecision(10) in main()
196 cout << endl; in main()
220 cout << "\n" "At least (>)""\n""Guessed OK Probability" << right << endl; in main()
223 cout << setw(2) << score << " " << setprecision(10) in main()
260 cout.precision(4); in main()
261 cout << "Probability of getting between " in main()
270 …cout << "Probability of getting between " << low << " and " << high << " answers right by guessing… in main()
279 …cout << "Probability of getting between " << low << " and " << high << " answers right by guessing… in main()
282 …cout << "Probability of getting between " << low << " and " << high << " answers right by guessing… in main()
285 …cout << "Probability of getting between " << low << " and " << high << " answers right by guessing… in main()
297 …cout << "By guessing, on average, one can expect to get " << mean(quiz) << " correct answers." << … in main()
298 cout << "Standard deviation is " << standard_deviation(quiz) << endl; in main()
299 cout << "So about 2/3 will lie within 1 standard deviation and get between " in main()
302 cout << "Mode (the most frequent) is " << mode(quiz) << endl; in main()
303 cout << "Skewness is " << skewness(quiz) << endl; in main()
316 cout << "Quartiles " << quantile(quiz, 0.25) << " to " in main()
318 cout << "1 standard deviation " << quantile(quiz, 0.33) << " to " in main()
320 cout << "Deciles " << quantile(quiz, 0.1) << " to " in main()
322 cout << "5 to 95% " << quantile(quiz, 0.05) << " to " in main()
324 cout << "2.5 to 97.5% " << quantile(quiz, 0.025) << " to " in main()
326 cout << "2 to 98% " << quantile(quiz, 0.02) << " to " in main()
329 cout << "If guessing then percentiles 1 to 99% will get " << quantile(quiz, 0.01) in main()
380 cout << "Quartiles " << quantile(quiz, 0.25) << " to " in main()
382 cout << "1 standard deviation " << quantile(quiz_real, 0.33) << " to " in main()
384 cout << "Deciles " << quantile(quiz_real, 0.1) << " to " in main()
386 cout << "5 to 95% " << quantile(quiz_real, 0.05) << " to " in main()
388 cout << "2.5 to 97.5% " << quantile(quiz_real, 0.025) << " to " in main()
390 cout << "2 to 98% " << quantile(quiz_real, 0.02) << " to " in main()
393 cout << "If guessing, then percentiles 1 to 99% will get " << quantile(quiz_real, 0.01) in main()
416 std::cout << in main()