Sie sind auf Seite 1von 8

BITACORA

LA ESTADISTICA: La estadstica se ocupa de los mtodos cientficos que se utiliza para recolectar,
organizar, resumir, presentar y analizar datos as como para obtener conclusiones vlidas y tomar
decisiones razonables con base en este anlisis. (Spiegel, 2009)
Estadstica inductiva o inferencial: Tiene una muestra que es representativa de la poblacin, el
anlisis de la muestra permite inferir conclusiones vlidas acerca de la poblacin. Como estas
inferencias no pueden ser absolutamente ciertas, para presentar estas conclusiones se emplea el
lenguaje de la probabilidad. (Spiegel, 2009)
Estadstica descriptiva o deductiva: Es la parte de la estadstica que nicamente trata de describir y
analizar un grupo dado, sin sacar ninguna conclusin ni hacer inferencia alguna acerca de un grupo
ms grande. (Spiegel, 2009)
Histograma: Histograma de frecuencia consiste en un conjunto de rectngulos que tienen: a) sus
bases sobre en eje horizontal (eje X), con sus centro coincidiendo con las marcas de clases de
longitudes iguales a la amplitud del intervalo de clase, y b) reas proporcionales a las frecuencias
de clases.
Polgono de frecuencias: Es una grfica de lnea que presenta las frecuencias de clases graficas
contra las marcas de clases. Se puede obtener conectado los puntos medios de las partes
superiores de loa rectngulos de un histograma.
En el programa R studio:
Para calcular la Media, Mediana, Minina, Mximay Mnima, mensuales de cada estacin
calculando todo los aos:
>
View(estacion_1)
> summary(estacion_1)
ENE
Min.
: 6.00
1st Qu.:14.50
Median :23.00
Mean
:17.67
3rd Qu.:23.50
Max.
:24.00
JUN
Min.
:22.0
1st Qu.:23.5
Median :25.0
Mean
:25.0
3rd Qu.:26.5
Max.
:28.0
NOV
Min.
:30.00
1st Qu.:33.50
Median :37.00
Mean
:37.67
3rd Qu.:41.50
Max.
:46.00

FEB
Min.
:27.0
1st Qu.:28.5
Median :30.0
Mean
:36.0
3rd Qu.:40.5
Max.
:51.0
JUL
Min.
: 0.00
1st Qu.: 7.00
Median :14.00
Mean
:10.33
3rd Qu.:15.50
Max.
:17.00
DIC
Min.
:19.0
1st Qu.:30.5
Median :42.0
Mean
:40.0
3rd Qu.:50.5
Max.
:59.0

MAR
Min.
: 9.00
1st Qu.:20.00
Median :31.00
Mean
:30.67
3rd Qu.:41.50
Max.
:52.00
AGO
Min.
: 0.00
1st Qu.:15.00
Median :30.00
Mean
:23.33
3rd Qu.:35.00
Max.
:40.00

ABR
Min.
:45.00
1st Qu.:45.00
Median :45.00
Mean
:49.67
3rd Qu.:52.00
Max.
:59.00
SEP
Min.
:34.0
1st Qu.:34.5
Median :35.0
Mean
:45.0
3rd Qu.:50.5
Max.
:66.0

MAY
Min.
:15.00
1st Qu.:21.50
Median :28.00
Mean
:45.33
3rd Qu.:60.50
Max.
:93.00
OCT
Min.
:21.00
1st Qu.:27.50
Median :34.00
Mean
:33.33
3rd Qu.:39.50
Max.
:45.00

Luego se indic los valores de las medias de todos los meses en un vector para generar los
histogramas
Vector llamado media
> media <- c( 17.67, 36.0, 30.67, 49.67, 45.33, 25.0, 10.33, 23.33, 45.0,
33.33, 37.67, 40.0)
> media
[1] 17.67 36.00 30.67 49.67 45.33 25.00 10.33 23.33 45.00
[10] 33.33 37.67 40.00

Vector de los meses


> mes <- c( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
> mes
[1] 1 2 3 4 5 6 7 8 9 10 11 12

Luego se realiza un histograma con de los valores medios de las precipitaciones con el siguiente
cdigo:
> barplot(media, names.arg = mes, main = "Variacin de la Precipitacin
Mensual", xlab = "meses", ylab = "Precipitacin (mm)")

Dando como resultado:

El mismo procedimiento para todas las estaciones documento: Bitacora de histogramas


PRECIPITACIONES MXIMAS MENSUALES
Se abre los datos de la estacin
> View(estacion_Alegria_pm)
> estacion_Alegria_pm

1
2
3

ENE FEB MAR ABR MAY JUN JUL AGO SEP OCT NOV DIC
30 10 25 25 23 27
7
0 12 23 33 12
15 37 20 22 65
8 15 70 27 42 63 12
11 45 40 56 38 23 18 22 22 45 45 27

Se crea el vector de abcisas que indicar los meses del ao.


> x <- c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
>x
[1]

9 10 11 12

Se crea el vector de las ordenadas a partir de los datos del data.frame (


datos de la estacin)
> y1997_estacion_Alegria_pm <- estacion_Alegria_pm [1, 1:12]
> y1997_estacion_Alegria_pm
ENE FEB MAR ABR MAY JUN JUL AGO SEP OCT NOV DIC
1 30 10 25 25 23 27
7
0 12 23 33 12

Por ltimo se crea el dato Se crea el grafico


>
plot(x,y1997_estacion_Alegria_pm,
type="b",
xlab="Meses",
ylab="Precipitacin
(mm)",xlim=c(0,
12),
ylim=c(0,
105),
pch=20,
col="blue",bg="blue",
bty="l",
tcl=0.4,
main="Variacin
de
la
Precipitacin Mensual", las=1, cex=1.5

temperatura de los 4 aos

R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"


Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
[Workspace loaded from ~/.RData]
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
cannot open file 'C:/Users/Yenmarly/Desktop/Tem_4os.csv': No such fil
e or directory
> load("C:/Users/Yenmarly/Desktop/Tem_4os.csv")
Error: bad restore file magic number (file may be corrupted) -- no data l
oaded
In addition: Warning message:
file Tem_4os.csv has magic number 'NUMER'
Use of save versions prior to 2 is deprecated
> temp <- read.csv("C:/Users/Yenmarly/Desktop/temp.csv", sep=";", dec=","
)
>
View(temp)
> smummary(temp)
Error: could not find function "smummary"
> summary(temp)
NUMERO
ENERO
FEBRERO
MARZO
Min.
: 1.00
Min.
:11.10
Min.
:11.80
Min.
:11.90
1st Qu.:16.25
1st Qu.:18.10
1st Qu.:18.70
1st Qu.:18.38
Median :26.50
Median :20.40
Median :20.50
Median :19.75
Mean
:34.19
Mean
:19.78
Mean
:20.31
Mean
:19.74
3rd Qu.:53.75
3rd Qu.:22.80
3rd Qu.:23.30
3rd Qu.:23.10
Max.
:68.00
Max.
:26.30
Max.
:25.70
Max.
:25.60
NA's
:1
ABRIL
MAYO
JUNIO
JULIO
Min.
:11.70
Min.
:12.80
Min.
:12.10
Min.
:11.60
1st Qu.:18.00
1st Qu.:18.90
1st Qu.:18.80
1st Qu.:19.23
Median :19.45
Median :19.70
Median :19.90
Median :20.50
Mean
:19.54
Mean
:19.96
Mean
:19.94
Mean
:20.13
3rd Qu.:23.00
3rd Qu.:23.00
3rd Qu.:23.23
3rd Qu.:23.25
Max.
:25.40
Max.
:25.40
Max.
:25.30
Max.
:25.30
AGOSTO
Min.
:11.50
1st Qu.:19.62
Median :21.20
Mean
:20.38
3rd Qu.:23.38
Max.
:25.50
DICIEMBRE

SEPTIEMBRE
Min.
:11.40
1st Qu.:19.35
Median :19.90
Mean
:20.13
3rd Qu.:22.98
Max.
:25.30

OCTUBRE
Min.
:11.10
1st Qu.:18.07
Median :19.80
Mean
:19.57
3rd Qu.:22.60
Max.
:25.20

NOVIEMBRE
Min.
:10.40
1st Qu.:18.07
Median :19.20
Mean
:19.45
3rd Qu.:22.73
Max.
:24.60

Min.
:11.00
1st Qu.:18.60
Median :19.90
Mean
:19.83
3rd Qu.:22.77
Max.
:25.40
> summary(temp)
NUMERO
L
Min.
: 1.00
11.70
1st Qu.:16.25
18.00
Median :26.50
19.45
Mean
:34.19
19.54
3rd Qu.:53.75
23.00
Max.
:68.00
25.40

ENERO
Min.

Min.

:11.80

MARZO
Min.

:11.90

ABRI
Min.

1st Qu.:18.10

1st Qu.:18.70

1st Qu.:18.38

1st Qu.:

Median :20.40

Median :20.50

Median :19.75

Median :

Mean

Mean

Mean

Mean

:19.78

:20.31

:19.74

3rd Qu.:22.80

3rd Qu.:23.30

3rd Qu.:23.10

3rd Qu.:

Max.

Max.

Max.

Max.

MAYO
MBRE
Min.
:12.80
11.40
1st Qu.:18.90
19.35
Median :19.70
19.90
Mean
:19.96
20.13
3rd Qu.:23.00
22.98
Max.
:25.40
25.30

:11.10

FEBRERO

:26.30
JUNIO

Min.

:12.10

:25.70

NA's
:1
JULIO
Min.

:11.60

:25.60
AGOSTO

Min.

:11.50

SEPTIE
Min.

1st Qu.:18.80

1st Qu.:19.23

1st Qu.:19.62

1st Qu.:

Median :19.90

Median :20.50

Median :21.20

Median :

Mean

Mean

Mean

Mean

:19.94

:20.13

:20.38

3rd Qu.:23.23

3rd Qu.:23.25

3rd Qu.:23.38

3rd Qu.:

Max.

Max.

Max.

Max.

:25.30

:25.30

:25.50

OCTUBRE
Min.
:11.10
1st Qu.:18.07
Median :19.80
Mean
:19.57
3rd Qu.:22.60
Max.
:25.20

NOVIEMBRE
Min.
:10.40
1st Qu.:18.07
Median :19.20
Mean
:19.45
3rd Qu.:22.73
Max.
:24.60

DICIEMBRE
Min.
:11.00
1st Qu.:18.60
Median :19.90
Mean
:19.83
3rd Qu.:22.77
Max.
:25.40

> summary(temp)
NUMERO
Min.
: 1.00
1st Qu.:16.25
Median :26.50
Mean
:34.19
3rd Qu.:53.75
Max.
:68.00

ENERO
Min.
:11.10
1st Qu.:18.10
Median :20.40
Mean
:19.78
3rd Qu.:22.80
Max.
:26.30

MARZO
Min.
:11.90
1st Qu.:18.38
Median :19.75
Mean
:19.74
3rd Qu.:23.10
Max.
:25.60

ABRIL
Min.
:11.70
1st Qu.:18.00
Median :19.45
Mean
:19.54
3rd Qu.:23.00
Max.
:25.40

MAYO
Min.
:12.80
1st Qu.:18.90
Median :19.70
Mean
:19.96
3rd Qu.:23.00
Max.
:25.40

FEBRERO
Min.
:11.80
1st Qu.:18.70
Median :20.50
Mean
:20.31
3rd Qu.:23.30
Max.
:25.70
NA's
:1
JUNIO
Min.
:12.10
1st Qu.:18.80
Median :19.90
Mean
:19.94
3rd Qu.:23.23
Max.
:25.30

AGOSTO
Min.
:11.50

SEPTIEMBRE
Min.
:11.40

OCTUBRE
Min.
:11.10

NOVIEMBRE
Min.
:10.40

JULIO
Min.
:11.60
1st Qu.:19.23
Median :20.50
Mean
:20.13
3rd Qu.:23.25
Max.
:25.30

1st Qu.:19.62
Median :21.20
Mean
:20.38
3rd Qu.:23.38
Max.
:25.50

1st Qu.:19.35
Median :19.90
Mean
:20.13
3rd Qu.:22.98
Max.
:25.30

1st Qu.:18.07
Median :19.80
Mean
:19.57
3rd Qu.:22.60
Max.
:25.20

1st Qu.:18.07
Median :19.20
Mean
:19.45
3rd Qu.:22.73
Max.
:24.60

> summary(temp)
NUMERO
Min.
: 1.00
1st Qu.:16.25
Median :26.50
Mean
:34.19
3rd Qu.:53.75
Max.
:68.00

ENERO
Min.
:11.10
1st Qu.:18.10
Median :20.40
Mean
:19.78
3rd Qu.:22.80
Max.
:26.30

MARZO
Min.
:11.90
1st Qu.:18.38
Median :19.75
Mean
:19.74
3rd Qu.:23.10
Max.
:25.60

ABRIL
Min.
:11.70
1st Qu.:18.00
Median :19.45
Mean
:19.54
3rd Qu.:23.00
Max.
:25.40

MAYO
Min.
:12.80
1st Qu.:18.90
Median :19.70
Mean
:19.96
3rd Qu.:23.00
Max.
:25.40

FEBRERO
Min.
:11.80
1st Qu.:18.70
Median :20.50
Mean
:20.31
3rd Qu.:23.30
Max.
:25.70
NA's
:1
JUNIO
Min.
:12.10
1st Qu.:18.80
Median :19.90
Mean
:19.94
3rd Qu.:23.23
Max.
:25.30

AGOSTO
Min.
:11.50
1st Qu.:19.62
Median :21.20
Mean
:20.38
3rd Qu.:23.38
Max.
:25.50

SEPTIEMBRE
Min.
:11.40
1st Qu.:19.35
Median :19.90
Mean
:20.13
3rd Qu.:22.98
Max.
:25.30

OCTUBRE
Min.
:11.10
1st Qu.:18.07
Median :19.80
Mean
:19.57
3rd Qu.:22.60
Max.
:25.20

NOVIEMBRE
Min.
:10.40
1st Qu.:18.07
Median :19.20
Mean
:19.45
3rd Qu.:22.73
Max.
:24.60

> summary(temp)
NUMERO
Min.
: 1.00
1st Qu.:16.25
Median :26.50
Mean
:34.19
3rd Qu.:53.75
Max.
:68.00

ENERO
Min.
:11.10
1st Qu.:18.10
Median :20.40
Mean
:19.78
3rd Qu.:22.80
Max.
:26.30

MARZO
Min.
:11.90
1st Qu.:18.38
Median :19.75
Mean
:19.74
3rd Qu.:23.10
Max.
:25.60

ABRIL
Min.
:11.70
1st Qu.:18.00
Median :19.45
Mean
:19.54
3rd Qu.:23.00
Max.
:25.40

MAYO
Min.
:12.80
1st Qu.:18.90
Median :19.70
Mean
:19.96
3rd Qu.:23.00
Max.
:25.40

FEBRERO
Min.
:11.80
1st Qu.:18.70
Median :20.50
Mean
:20.31
3rd Qu.:23.30
Max.
:25.70
NA's
:1
JUNIO
Min.
:12.10
1st Qu.:18.80
Median :19.90
Mean
:19.94
3rd Qu.:23.23
Max.
:25.30
OCTUBRE

NOVIEMBRE

DICIEMBRE
Min.
:11.00
1st Qu.:18.60
Median :19.90
Mean
:19.83
3rd Qu.:22.77
Max.
:25.40

JULIO
Min.
:11.60
1st Qu.:19.23
Median :20.50
Mean
:20.13
3rd Qu.:23.25
Max.
:25.30

DICIEMBRE
Min.
:11.00
1st Qu.:18.60
Median :19.90
Mean
:19.83
3rd Qu.:22.77
Max.
:25.40

AGOSTO

SEPTIEMBRE

JULIO
Min.
:11.60
1st Qu.:19.23
Median :20.50
Mean
:20.13
3rd Qu.:23.25
Max.
:25.30

Min.
:11.50
1st Qu.:19.62
Median :21.20
Mean
:20.38
3rd Qu.:23.38
Max.
:25.50

Min.
:11.40
1st Qu.:19.35
Median :19.90
Mean
:20.13
3rd Qu.:22.98
Max.
:25.30

Min.
:11.10
1st Qu.:18.07
Median :19.80
Mean
:19.57
3rd Qu.:22.60
Max.
:25.20

Min.
:10.40
1st Qu.:18.07
Median :19.20
Mean
:19.45
3rd Qu.:22.73
Max.
:24.60

DICIEMBRE
Min.
:11.00
1st Qu.:18.60
Median :19.90
Mean
:19.83
3rd Qu.:22.77
Max.
:25.40
> summary(temp)
NUMERO
Min.
: 1.00
1st Qu.:16.25
Median :26.50
Mean
:34.19
3rd Qu.:53.75
Max.
:68.00

ENERO
Min.
:11.10
1st Qu.:18.10
Median :20.40
Mean
:19.78
3rd Qu.:22.80
Max.
:26.30

FEBRERO
Min.
:11.80
1st Qu.:18.70
Median :20.50
Mean
:20.31
3rd Qu.:23.30
Max.
:25.70

MARZO
Min.
:11.90
1st Qu.:18.38
Median :19.75
Mean
:19.74
3rd Qu.:23.10
Max.
:25.60

ABRIL
Min.
:11.70
1st Qu.:18.00
Median :19.45
Mean
:19.54
3rd Qu.:23.00
Max.
:25.40

MAYO
Min.
:12.80
1st Qu.:18.90
Median :19.70
Mean
:19.96
3rd Qu.:23.00
Max.
:25.40

JUNIO
Min.
:12.10
1st Qu.:18.80
Median :19.90
Mean
:19.94
3rd Qu.:23.23
Max.
:25.30

NA's
:1
JULIO
Min.
:11.60
1st Qu.:19.23
Median :20.50
Mean
:20.13
3rd Qu.:23.25
Max.
:25.30

AGOSTO
Min.
:11.50
1st Qu.:19.62
Median :21.20
Mean
:20.38
3rd Qu.:23.38
Max.
:25.50

SEPTIEMBRE
Min.
:11.40
1st Qu.:19.35
Median :19.90
Mean
:20.13
3rd Qu.:22.98
Max.
:25.30

OCTUBRE
Min.
:11.10
1st Qu.:18.07
Median :19.80
Mean
:19.57
3rd Qu.:22.60
Max.
:25.20

NOVIEMBRE
Min.
:10.40
1st Qu.:18.07
Median :19.20
Mean
:19.45
3rd Qu.:22.73
Max.
:24.60

DICIEMBRE
Min.
:11.00
1st Qu.:18.60
Median :19.90
Mean
:19.83
3rd Qu.:22.77
Max.
:25.40

> var(temp)
NUMERO
ENERO FEBRERO
MARZO
ABRIL
MAYO
JUNIO
498.08154 -25.18892
NA -25.40046 -25.82769 -27.25231 -32.78369
-25.18892 17.30055
NA 16.24348 16.16262 15.41778 16.22982
NA
NA
NA
NA
NA
NA
NA
-25.40046 16.24348
NA 15.82174 15.72431 14.91769 15.66151
-25.82769 16.16262
NA 15.72431 15.71046 14.84874 15.60726
-27.25231 15.41778
NA 14.91769 14.84874 14.23686 14.96714
-32.78369 16.22982
NA 15.66151 15.60726 14.96714 15.89366
-31.10215 16.31249
NA 15.98425 15.88917 15.28803 16.15437
-29.84815 16.45449
NA 16.21405 16.11917 15.50763 16.32557
-32.64292 15.78175
NA 15.49488 15.38782 14.81498 15.72462
-31.50508 16.30505
NA 16.04312 15.98178 15.29982 16.10098
-33.14123 15.69274
NA 15.43957 15.31855 14.71345 15.64455
-27.28938 15.17643
NA 15.12322 15.02972 14.36308 15.17332
JULIO
AGOSTO SEPTIEMBRE
OCTUBRE NOVIEMBRE DICIEMBRE
NUMERO
-31.10215 -29.84815 -32.64292 -31.50508 -33.14123 -27.28938
ENERO
16.31249 16.45449
15.78175 16.30505 15.69274 15.17643
FEBRERO
NA
NA
NA
NA
NA
NA
MARZO
15.98425 16.21405
15.49488 16.04312 15.43957 15.12322
ABRIL
15.88917 16.11917
15.38782 15.98178 15.31855 15.02972
MAYO
15.28803 15.50763
14.81498 15.29982 14.71345 14.36308
JUNIO
16.15437 16.32557
15.72462 16.10098 15.64455 15.17332
JULIO
16.90782 17.21342
16.29089 16.73991 16.15972 15.89474
AGOSTO
17.21342 17.75282
16.62509 17.06411 16.36812 16.28974
SEPTIEMBRE 16.29089 16.62509
15.92955 16.20285 15.86434 15.54263
NUMERO
ENERO
FEBRERO
MARZO
ABRIL
MAYO
JUNIO
JULIO
AGOSTO
SEPTIEMBRE
OCTUBRE
NOVIEMBRE
DICIEMBRE

OCTUBRE
NOVIEMBRE
DICIEMBRE

16.73991
16.15972
15.89474

17.06411
16.36812
16.28974

16.20285
15.86434
15.54263

16.86555
16.22006
15.95897

16.22006
16.24578
15.77031

15.95897
15.77031
15.64605

Das könnte Ihnen auch gefallen