Vous êtes sur la page 1sur 3

clear,clc

disp(' Estudiante: Giosett Alejandro Villegas Huarcaya')


disp(' Codigo : 14160198')
fprintf(' \n')
disp(' _____________________')
disp(' GRAFICOS ESTADISTICOS')
disp(' _____________________')
fprintf(' \n')

DIAMETRO=xlsread('PARAMETROS.xlsx','hoja1','E4:E93');

S_B=xlsread('PARAMETROS.xlsx','hoja1','F4:F93');

H_B=xlsread('PARAMETROS.xlsx','hoja1','G4:G93');

B_D=xlsread('PARAMETROS.xlsx','hoja1','H4:H93');

T_B=xlsread('PARAMETROS.xlsx','hoja1','I4:I93');

PF=xlsread('PARAMETROS.xlsx','hoja1','J4:J93');

XB=xlsread('PARAMETROS.xlsx','hoja1','K4:K93');

E=xlsread('PARAMETROS.xlsx','hoja1','L4:L93');

X50=xlsread('PARAMETROS.xlsx','hoja1','M4:M93');

RESUMEN=table(DIAMETRO,S_B,H_B,B_D,T_B,PF,XB,E,X50);
display(RESUMEN)
G=[S_B H_B B_D T_B PF XB E X50];
%G=[DIAMETRO S_B H_B B_D T_B PF XB E X50];
%display(G)
disp(' ')
fprintf(' \n')
disp(' _______________________________')
disp(' MATRIZ DE VARIANZA Y COVARIANZA')
disp(' _______________________________')
fprintf(' \n')
disp('Covarianza poblacional')
S1 = cov(G,1)
fprintf(' \n')
disp('Covarianza muestral')
S=cov(G)
disp(' ')
fprintf(' \n')
disp(' _________________')
disp(' MATRIZ DE PEARSON')
disp(' _________________')
Corr = corrcoef(G)

disp(' ________')
disp(' LA MEDIA')
disp(' ________')
media = mean(G)
% ANOVA
figure(1)

p = anova1(G)

% BOX PLOT 1

figure(2)
boxplot([G],'notch','on','labels',{'S_B','H_B','B_D','T_B','Pf','XB','E',
'X50'}) %Tratamiento de (j)

hold on
A = G ;

plot( median(A) )
hold on
plot(mean(A))

title('Boxplot')
legend('1 median','2 mean')

mediana1=(median(A));
media1=(mean(A));

% BOX PLOT 2

figure(3)

boxplot([G],'labels',{'S_B','H_B','B_D','T_B','Pf','XB','E','X50'});
%%tratamientos (j)

A1 = G ;
hold on
plot(median(A1))

hold on
plot(mean(A1))

mediana2 = median(A1);
media2 = mean(A1);
title('Boxplot')
legend('1 median','2 mean')

Datos = [G] ;
Grupo = cell(90,1) ;

for i=1:20
Grupo{i,1} = 'G1';
end
for i=21:60
Grupo{i,1} = 'G2';
end
for i=61:90
Grupo{i,1} = 'G3';
end

Variables = cell(8,1);
Variables{1,1}='S/B';
Variables{2,1}='H/B';
Variables{3,1}='B/D';
Variables{4,1}='T/B';
Variables{5,1}='Pf';
Variables{6,1}='XB';
Variables{7,1}='E1';
Variables{8,1}='X50';

gplotmatrix(Datos,Datos,Grupo,...
'rbk','*o.',[],'on','',Variables(:,1),Variables(:,1))

Alfa_de_Cronbach = 0.7562;
fprintf('Alfa_de_Cronbach = %3.4f \n',Alfa_de_Cronbach)

Vous aimerez peut-être aussi