Question: null hypothesis test : statistic

Dear all;

I need a help to get a simple code about the null hypothesis test.

A drug is administrad to a population X of size 50 while a  placebo is given to a population Y of size 25.

Observed results of good bad and no effects are given in the following vectors for both population.

X=[ 20,11,19];

Y=[4,4,17];

test the null hypothesis H0: population independent of treatment versus the one tailed alternative that they are dependent by computing the theoretical contingency table with entries T[i,j] where i=1,2

for the two rows and j=1,2,3 for the three columns. At what p-value can we reject H0.

Many thanks

Please Wait...