Docsity

Practica 1 Estadistica, Ejercicios de Estadística

Toggle sidebar
bg1
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.
_______________________________________________________________
1. ANALYSIS OF A DATA SET
1. FREQUENCY TABLE
The area in which more students are concentrated is urban areas
FIRST COLUMN = AREA
SECOND COLUMN = ABSOLUTE FREQUENY
THRID COLUMN = RELATIVE FREQUENCY
FOURTH COLUMN = CUMULATED ABSOLUTE FREQUENCY
FIFTH COLUMN = CUMULATED RELATIVE FREQUENCY
2. PROPORTION OF BOYS AND GIRLS
-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.4895
__________________________________________________________________________
Ingeniería de Telecomunicaciones – Estadística – Año Académico 2014/2015
pf3
pf4
pf5

Vista previa parcial del texto

¡Descarga Practica 1 Estadistica y más Ejercicios en PDF de Estadística solo en Docsity!

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.


1. ANALYSIS OF A DATA SET

1. FREQUENCY TABLE

The area in which more students are concentrated is urban areas

FIRST COLUMN = AREA

SECOND COLUMN = ABSOLUTE FREQUENY

THRID COLUMN = RELATIVE FREQUENCY

FOURTH COLUMN = CUMULATED ABSOLUTE FREQUENCY

FIFTH COLUMN = CUMULATED RELATIVE FREQUENCY

2. PROPORTION OF BOYS AND GIRLS

-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

pie(tableGender(:,2)) title('Proportion of boys and girls') legend(‘Boys’, Girls’)

DISTRIBUTION OF BOYS AND GIRLS IN URBAN AREAS

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')

3. HISTOGRAMS AND MEAN AND STANDARD DEVIATION

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

2. LINEAR TRANSFORMATIONS

1. CHANGE OF UNITS

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)

2. STANDARIZATION OF VARIABLES

X = MB

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.