



Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!




Ingeniería de Telecomunicaciones Universidad Carlos III de Madrid Estadística
Práctica 1: Introducción a MATLAB y Estadística Descriptiva
Grupo Nombres y Apellidos Firmas
IMPORTANTE: Los profesores de esta asignatura aplican una política de tolerancia cero respecto a la falta de honestidad académica. Los alumnos que firman arriba se comprometen a entregar un trabajo inédito en su totalidad, el incumplimiento de este compromiso dará lugar a sanciones académicas.
Observaciones:
Resolver los ejercicios propuestos en el fichero Tarea1.pdf. Nota: Es recomendable consultar el manual de manejo básico de MATLAB/Octave disponible en la página web de la asignatura.
The area in which more students are concentrated is urban areas
-The proportion of boys and girls is given by the absolute frequency of the tabulated variable Gender. BAR
tableGender = tabulate(Gender)
tableGender =
1.0000 227.0000 47.
bar(tableGender(:,2)) title('Proportion of boys and girls')
pie(tableGender(:,2)) title('Proportion of boys and girls') legend(‘Boys’, Girls’)
tableGender_Area = crosstab(Gender,Area) tableGender_Area =
72 89 66 106 62 83
% 1 Column = Urban / 2 Column = Sub-urban / 3 Column = Rural bar(tableGender_Area(:,1)) title('Distribution of boys and girls in urban areas')
HISTOGRAM GOALS BY GRADE
histg(Grade,Goals)
%Rows are Gender(1=-boys,2=girls) and columns are %Goals(1=Notes,2=Popularity,3=Sports)
RELATIVE FREQUENCY
rel_freq = cumsum(table_gender_goals(:,3))
rel_freq =
60 90 ABSOLUTE FREQUENCY
abs_freq = cumsum(table_gender_goals(:,2))
abs_freq =
50 141
MARGINAL DISTRIBUTION
%Marginal distribution by columns sum(table_gender_goals,1)
ans =
247 141 90
%Marginal distribution by rows sum(table_gender_goals,2)
ans =
227 251
As 1 Mb = 1024 Kb, according to the linear transformation y = a+bx : y = KB a = 0 b =
x = MB
a. y(mean) = KBmean = 0. x(mean) = MBmean = 174.
KBmean = b*MBmean = 0.1705 (section a is correct)
b. y(median) = KBmed = 0. x(median) = MBmed = 177
KBmed = b*MBmed=0.1729 (section b is correct)
c. var(y) = varKB = 6.4549e- var(x) = varMB = 67. varKB= b^2*varMB = 6.4549e-05 (section c is correct)
d. std(y) = stdKB = 0. std(x) = stdMB = 8.
stdKB = |b|*stdMB = 0.0080 (section d is correct)
Xmean = 174. Standard deviation of X = stdX = 8.
Y = standardization of X
a. Using the command mldivide we are able to solve a system of the form Ax = B where x = [a;b] a = -21. b = 0.
b. Ymean = stdY = 1. varY = 1.