close all
clear all

x= 0:0.002:15;
y = chi2pdf(x,6);
hold on
figure(1) %----------------------------------------------------------------
plot(x,y, 'k-','linewidth',3)
plot([0 5],[0 0],'k-')
axis([-0.5 15.5 -0.04 0.16])
xx = 1.5:0.002:12;
yy = chi2pdf(xx,6);
fill([1.5 xx 12], [0 yy 0], 'y')
plot(x,y, 'k-','linewidth',3)
set(gca,'XTick',[],'YTick',[])
box on
plot([0 15],[0 0],'k-')
%-----------------marker dots-----------------------------------------
% plot([0 0],[0 0.4],'k:','linewidth',2)
plot(1.5,0,'-mo', 'LineWidth',2,'MarkerEdgeColor','k',...
                'MarkerFaceColor',[.49 1 .63],'MarkerSize',10)
 plot(12,0,'-mo', 'LineWidth',2,'MarkerEdgeColor','k',...
                'MarkerFaceColor',[.49 1 .63],'MarkerSize',10)  
  plot(0,0,'-mo', 'LineWidth',2,'MarkerEdgeColor','k',...
                 'MarkerFaceColor',[.49 1 .63],'MarkerSize',10)       
%--------------------------------------------------------------------------
% text(0.05,0.03,'\fontsize{25} \mu')
% text(-1.05,0.02,'\fontsize{25} a')
% text(1.95,0.02,'\fontsize{25} b')
% 
% text('Interpreter','latex',...
% 	'String','$$\mu$$',...
% 	'Position',[0.15 .03],...
% 	'FontSize',25)
text('Interpreter','latex',...
	'String','$$0$$',...
	'Position',[-0.3   -.02],...
	'FontSize',23)
% 
%   xw = 0.36:0.02:0.65; yw = normpdf(xw); %whiten!
%   plot(xw, yw, 'w-', 'linewidth',4)%  
% xw = 0.36:0.02:0.65; yw = normpdf(xw); %whiten!
%   plot(xw, yw, 'w-', 'linewidth',4)


% 
text('Interpreter','latex',...
	'String','$$\chi^2_{n-1, \alpha/2}$$',...
	'Position',[1  -.02],...
	'FontSize',25)

text('Interpreter','latex',...
	'String','$$\chi^2_{n-1, 1-\alpha/2}$$',...
	'Position',[10  -.02],...
	'FontSize',25)

text('Interpreter','latex',...
	'String','$$1 - \alpha$$',...
	'Position',[3.5  0.045],...
	'FontSize',30)
% 
text('Interpreter','latex',...
	'String','$$\alpha/2$$',...
	'Position',[0.3  0.008],...
	'FontSize',20)
text('Interpreter','latex',...
	'String','$$\alpha/2$$',...
	'Position',[12.3  0.008],...
	'FontSize',20)

print -depsc 'C:\Springer\Estim\Estimeps\ci03.eps'

