Attachment 'sheet09.m'

Download

   1 function sheet09
   2 
   3 fprintf('p-Wert für k = 3, n = 1000, pi0 = 99.9%% = %f\n', ...
   4         one_sided_binominal(3, 1000, 0.999));
   5 
   6 X = [1.311, 1.136, 1.81, 0.827, -0.173, 0.351, -1.949, 0.973, ...
   7      0.617, -0.091, -0.155, -0.581, 0.452, 0.879, 0.17];
   8 
   9 fprintf('Exakter p-Wert für Daten (1) = %f\n', ...
  10         one_sided_gaussian(X));
  11 
  12 fprintf('Boostrapped p-Wert für Daten (1), N = 9999 = %f\n', ...
  13         one_sided_gaussian_bootstrap(X, 9999));
  14 
  15 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  16 % Your solutions below
  17 
  18 % 1. Compute the p-value for a one-sided bionminal test.
  19 %
  20 % Input:
  21 %   k: observed incidents
  22 %   n: total number of samples
  23 %   pi0: probability under H_0
  24 %
  25 % Note: you may use "binopdf" or "binocdf", but no built in test
  26 % functions.
  27 function P = one_sided_binominal(k, n, pi0)
  28 % ...
  29 
  30 % 2. Compute the exact one-sided Gaussian test for
  31 %    mean 0 and variance 0.
  32 %
  33 % Input:
  34 %   X: sample realizations
  35 %
  36 % Note: you may use "normcdf", but no built in test functions.
  37 function P = one_sided_gaussian(X)
  38 % ...
  39 
  40 % 3. Compute a bootstrap estimate as in "Resamplingschema 2.1"
  41 %
  42 % Input:
  43 %    X: sample realizations
  44 %    B: number of boostrap samples
  45 function P = one_sided_gaussian_bootstrap(X, B)
  46 % ...

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2010-02-04 11:33:18, 583.4 KB) [[attachment:EM-algo_slides.pdf]]
  • [get | view] (2009-11-20 09:49:15, 73.5 KB) [[attachment:FDA_and_LSR.pdf]]
  • [get | view] (2010-01-28 15:25:54, 129.5 KB) [[attachment:bayes_net_slides.pdf]]
  • [get | view] (2010-01-27 14:33:46, 54.2 KB) [[attachment:blatt14.pdf]]
  • [get | view] (2010-02-04 09:40:59, 66.6 KB) [[attachment:blatt15.pdf]]
  • [get | view] (2010-02-04 11:32:30, 1407.4 KB) [[attachment:clustering_slides.pdf]]
  • [get | view] (2009-10-19 10:30:57, 61.5 KB) [[attachment:full_sheet01.pdf]]
  • [get | view] (2009-10-22 09:45:29, 56.1 KB) [[attachment:full_sheet02.pdf]]
  • [get | view] (2009-10-23 20:39:28, 61.4 KB) [[attachment:full_sheet03.pdf]]
  • [get | view] (2009-11-05 10:38:47, 88.7 KB) [[attachment:full_sheet04.pdf]]
  • [get | view] (2009-11-12 11:38:12, 97.3 KB) [[attachment:full_sheet05.pdf]]
  • [get | view] (2009-11-22 14:02:25, 78.4 KB) [[attachment:full_sheet06.pdf]]
  • [get | view] (2009-11-25 14:30:20, 77.3 KB) [[attachment:full_sheet07.pdf]]
  • [get | view] (2009-12-03 13:44:22, 83.1 KB) [[attachment:full_sheet08.pdf]]
  • [get | view] (2009-12-10 20:31:09, 82.6 KB) [[attachment:full_sheet09.pdf]]
  • [get | view] (2009-12-18 15:19:15, 63.2 KB) [[attachment:full_sheet10.pdf]]
  • [get | view] (2010-01-07 10:31:31, 73.3 KB) [[attachment:full_sheet11.pdf]]
  • [get | view] (2010-01-18 11:45:00, 68.1 KB) [[attachment:full_sheet12.pdf]]
  • [get | view] (2010-01-21 14:25:29, 60.4 KB) [[attachment:full_sheet13.pdf]]
  • [get | view] (2009-12-18 15:04:55, 1221.6 KB) [[attachment:lect_kernelmethods.pdf]]
  • [get | view] (2009-12-10 20:35:27, 100.3 KB) [[attachment:p-values.pdf]]
  • [get | view] (2009-11-05 10:38:53, 0.8 KB) [[attachment:sheet04.m]]
  • [get | view] (2009-11-12 10:52:42, 1.4 KB) [[attachment:sheet05.m]]
  • [get | view] (2009-11-22 14:00:59, 1.1 KB) [[attachment:sheet06.m]]
  • [get | view] (2009-11-25 14:30:27, 1.9 KB) [[attachment:sheet07.m]]
  • [get | view] (2009-12-03 13:44:29, 2.7 KB) [[attachment:sheet08.m]]
  • [get | view] (2009-12-10 20:31:16, 1.2 KB) [[attachment:sheet09.m]]
  • [get | view] (2010-01-07 10:32:46, 1.6 KB) [[attachment:sheet11.m]]
  • [get | view] (2010-01-07 10:31:38, 4.8 KB) [[attachment:sheet11_data.m]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.