% microRNA Regulation of Aortic Valve Disease Progression.
% Aortic valve (AV) disease is known to occur preferentially on one side
% of the valve. The opposite sides of the valve are known to experience different
% hemodynamic conditions (i.e. oscillatory vs. laminar shear), which may
% influence the expression levels of mechano-sensitive miRNAs in AV endothelial
% cells. The study by Holliday et al (2011) quantified and compared expression
% levels of miRNA-199a-3p expression in cells from both sides of the valve,
% exposed to either oscillaqtory or laminar shear. The null hypothesis for this
% experiment is that the cells exposed to oscillatory shear will show no difference
% in expression of miR-199a-3p from the cells exposed to laminar shear.
% The difference of the values of normalized expression levels in oscillatorysheared
% samples and normalized expression levels in laminar-sheared samples
% d1,d2, . . . ,d9 are given as
close all
clear all

d=[ 0.2442 0.0695 0.5447 0.8057 ...
    -0.4116 -0.5382 -0.1435 0.1743 0.1865];
dbar = mean(d)                %0.1035
sd = std(d)                         %0.4270
t = dbar/(std(d)/sqrt(9))  %0.7272
p=1-tcdf(t, 8)                     %0.2439
% 
B=20000;
tbs =[];
for b=1:B
    db = randsample(d, length(d), true);
    tb = (mean(db) - dbar)/(std(db)/sqrt(9));
    tbs=[tbs tb];
end
sum(tbs > t)/B  %0.2421
histn(tbs, -5,0.25,5);
hold on
plot([t t],[0, 0.5],'r-','LineWidth',2)
axis([-6  6 0 0.5])
