SlideShare a Scribd company logo
1 of 4
SOLUCIÓN COMPENDIO 4
Taller de Aplicación:
Basándose en los anteriores procedimientos construir intervalos y gráficos para los siguientes datos que
corresponden a la edad de 50 microempresarios de la ciudad de Villavicencio
48 39 35 29 30
38 42 37 40 38
22 37 34 55 48
35 50 36 48 42
53 35 38 38 35
40 50 23 32 45
35 42 59 28 38
34 38 44 46 23
40 48 34 30 35
43 32 36 32 46
Códigos en R Resultados
Ingresando datos:
datos=c(48,38,22,35,53,40
,35,34,40,43,39,42,37,50,
35,50,42,38,48,32,35,37,3
4,36,38,23,59,44,34,36,29
,40,55,48,38,32,28,46,30,
32,30,38,48,42,35,45,38,2
3,35,46)
[1] 48 38 22 35 53 40 35 34 40 43
39 42 37 50 35 50 42 38 48 32 35
37 34 36 38
[26] 23 59 44 34 36 29 40 55 48 38
32 28 46 30 32 30 38 48 42 35 45
38 23 35 46
Calculando el rango:
Rang= max(datos)-
min(datos)
> Rang
[1] 37
Calculando el número de intervalos
m=round(1+3.3*log10(50))
La función Round, redondea al
entero más cercano.
> m
[1] 7
Longitud del intervalo:
C=Rang/m
> C
[1] 5.285714
Este resultado se redondea al entero más
cercano, por exceso en este caso 6.
Redefinir=42-37=5
2 Xmin-2=20
Xmax +3=62
Ahora le damos forma a los
intervalos
intervalos=cut(datos,
breaks=c(20,26,32,38,44,5
0,56,62))
Intervalos
[1] (44,50] (32,38] (20,26]
(32,38] (50,56] (38,44] (32,38]
(32,38] (38,44]
[10] (38,44] (38,44] (38,44]
(32,38] (44,50] (32,38] (44,50]
(38,44] (32,38]
[19] (44,50] (26,32] (32,38]
(32,38] (32,38] (32,38] (32,38]
(20,26] (56,62]
[28] (38,44] (32,38] (32,38]
(26,32] (38,44] (50,56] (44,50]
(32,38] (26,32]
[37] (26,32] (44,50] (26,32]
(26,32] (26,32] (32,38] (44,50]
(38,44] (32,38]
[46] (44,50] (32,38] (20,26]
(32,38] (44,50]
Levels: (20,26] (26,32] (32,38]
(38,44] (44,50] (50,56] (56,62]
Ahora se forma las frecuencias
absolutas
f=table(intervalos)
f
intervalos
(20,26] (26,32] (32,38] (38,44]
(44,50] (50,56] (56,62]
3 7 19 9
9 2 1
Calculando el número de
elementos de la muestra
n=sum(f)
> n
[1] 50
Construimos las frecuencias
absolutas
h
h=f/n
h
intervalos
(20,26] (26,32] (32,38] (38,44]
(44,50] (50,56] (56,62]
0.06 0.14 0.38 0.18
0.18 0.04 0.02
Construyendo frecuencias
absolutas acumuladas
F=cumsum(f)
F
(20,26] (26,32] (32,38] (38,44]
(44,50] (50,56] (56,62]
3 10 29 38
47 49 50
Construyendo las frecuencias
relativas acumuladas.
H=cumsum(h)
H
(20,26] (26,32] (32,38] (38,44]
(44,50] (50,56] (56,62]
0.06 0.20 0.58 0.76
0.94 0.98 1.00
Ahora se arman la tabla de
frecuencias
cbind(f,h,F,H)
f h F H
(20,26] 3 0.06 3 0.06
(26,32] 7 0.14 10 0.20
(32,38] 19 0.38 29 0.58
(38,44] 9 0.18 38 0.76
(44,50] 9 0.18 47 0.94
(50,56] 2 0.04 49 0.98
(56,62] 1 0.02 50 1.00
Construyendo marcas de clase
LimSup=c(26,32,38,44,50,56,62)
LimInf=c(20,26,32,38,44,50,56)
Marca= (LimSup+LimInf)/2
Marca
[1] 23 29 35 41 47 53 59
La tabla con las frecuencias y la
marca de clase
f Marca h F H
(20,26] 3 23 0.06 3 0.06
(26,32] 7 29 0.14 10 0.20
tabla=cbind(f,Marca,h,F,H) (32,38] 19 35 0.38 29 0.58
(38,44] 9 41 0.18 38 0.76
(44,50] 9 47 0.18 47 0.94
(50,56] 2 53 0.04 49 0.98
(56,62] 1 59 0.02 50 1.00
Gráfico de un histograma
hist(datos,
breaks=c(20,26,32,38,44,50,56,
62), col = "green", border =
1, main =
"MICROEMPRESARIOS",xlab =
"EDAD" , ylab = "FRECUENCIA")

More Related Content

What's hot

Graphics6 bresenham circlesandpolygons
Graphics6 bresenham circlesandpolygonsGraphics6 bresenham circlesandpolygons
Graphics6 bresenham circlesandpolygonsKetan Jani
 
Maths Activities (Fun With Numbers)
Maths Activities (Fun With Numbers)Maths Activities (Fun With Numbers)
Maths Activities (Fun With Numbers)ShubhyaLohani
 
Linear Programming Project
Linear Programming ProjectLinear Programming Project
Linear Programming ProjectChawal Ukesh
 
Teoria y problemas de conteo de segmentos cs01 ccesa007
Teoria y problemas de conteo de segmentos  cs01  ccesa007Teoria y problemas de conteo de segmentos  cs01  ccesa007
Teoria y problemas de conteo de segmentos cs01 ccesa007Demetrio Ccesa Rayme
 
Teoría y problemas de conteo de segmentos CS11 ccesa007
Teoría y problemas de conteo de segmentos  CS11  ccesa007Teoría y problemas de conteo de segmentos  CS11  ccesa007
Teoría y problemas de conteo de segmentos CS11 ccesa007Demetrio Ccesa Rayme
 
Mathematics and sports
Mathematics and sportsMathematics and sports
Mathematics and sportsMarina Njers
 
Open GL 09 scan conversion
Open GL 09 scan conversionOpen GL 09 scan conversion
Open GL 09 scan conversionRoziq Bahtiar
 
Graphing lines using slopeintercept
Graphing lines using slopeinterceptGraphing lines using slopeintercept
Graphing lines using slopeinterceptluna dionson
 
ws2 Linear Equation
ws2 Linear Equationws2 Linear Equation
ws2 Linear Equationadi nurhadi
 
Completing the square v002
Completing the square v002Completing the square v002
Completing the square v002cecilsie
 
Chapter 1 test 2012- 2013
Chapter 1 test 2012- 2013Chapter 1 test 2012- 2013
Chapter 1 test 2012- 2013eadeane
 
Box multiplication copy
Box multiplication   copyBox multiplication   copy
Box multiplication copyCLakshmiPriya
 
7th math(c2) -l4
7th math(c2) -l47th math(c2) -l4
7th math(c2) -l4jdurst65
 
0580 s10 qp_22
0580 s10 qp_220580 s10 qp_22
0580 s10 qp_22King Ali
 

What's hot (18)

Graphics6 bresenham circlesandpolygons
Graphics6 bresenham circlesandpolygonsGraphics6 bresenham circlesandpolygons
Graphics6 bresenham circlesandpolygons
 
Maths Activities (Fun With Numbers)
Maths Activities (Fun With Numbers)Maths Activities (Fun With Numbers)
Maths Activities (Fun With Numbers)
 
Linear Programming Project
Linear Programming ProjectLinear Programming Project
Linear Programming Project
 
Teoria y problemas de conteo de segmentos cs01 ccesa007
Teoria y problemas de conteo de segmentos  cs01  ccesa007Teoria y problemas de conteo de segmentos  cs01  ccesa007
Teoria y problemas de conteo de segmentos cs01 ccesa007
 
Teoría y problemas de conteo de segmentos CS11 ccesa007
Teoría y problemas de conteo de segmentos  CS11  ccesa007Teoría y problemas de conteo de segmentos  CS11  ccesa007
Teoría y problemas de conteo de segmentos CS11 ccesa007
 
Mathematics and sports
Mathematics and sportsMathematics and sports
Mathematics and sports
 
Math hssc-ii-a1
Math hssc-ii-a1Math hssc-ii-a1
Math hssc-ii-a1
 
Open GL 09 scan conversion
Open GL 09 scan conversionOpen GL 09 scan conversion
Open GL 09 scan conversion
 
Bresenham algorithm
Bresenham algorithmBresenham algorithm
Bresenham algorithm
 
Maths test
Maths testMaths test
Maths test
 
Linear equation 2 2
Linear equation 2 2Linear equation 2 2
Linear equation 2 2
 
Graphing lines using slopeintercept
Graphing lines using slopeinterceptGraphing lines using slopeintercept
Graphing lines using slopeintercept
 
ws2 Linear Equation
ws2 Linear Equationws2 Linear Equation
ws2 Linear Equation
 
Completing the square v002
Completing the square v002Completing the square v002
Completing the square v002
 
Chapter 1 test 2012- 2013
Chapter 1 test 2012- 2013Chapter 1 test 2012- 2013
Chapter 1 test 2012- 2013
 
Box multiplication copy
Box multiplication   copyBox multiplication   copy
Box multiplication copy
 
7th math(c2) -l4
7th math(c2) -l47th math(c2) -l4
7th math(c2) -l4
 
0580 s10 qp_22
0580 s10 qp_220580 s10 qp_22
0580 s10 qp_22
 

Similar to Solucion compendio 4

Solution of matlab chapter 2
Solution of matlab chapter 2Solution of matlab chapter 2
Solution of matlab chapter 2AhsanIrshad8
 
Practical work 2
Practical work 2Practical work 2
Practical work 2wkhairil80
 
INTRODUCTION TO MATLAB session with notes
  INTRODUCTION TO MATLAB   session with  notes  INTRODUCTION TO MATLAB   session with  notes
INTRODUCTION TO MATLAB session with notesInfinity Tech Solutions
 
Example of calculate of root
Example of calculate of rootExample of calculate of root
Example of calculate of rootKt Silva
 
Python project
Python projectPython project
Python projectYoung Song
 
Solution of matlab chapter 6
Solution of matlab chapter 6Solution of matlab chapter 6
Solution of matlab chapter 6AhsanIrshad8
 
Lab 5 template Lab 5 - Your Name - MAT 275 Lab The M.docx
Lab 5 template  Lab 5 - Your Name - MAT 275 Lab The M.docxLab 5 template  Lab 5 - Your Name - MAT 275 Lab The M.docx
Lab 5 template Lab 5 - Your Name - MAT 275 Lab The M.docxsmile790243
 
Math unit16 data presentation
Math unit16 data presentationMath unit16 data presentation
Math unit16 data presentationeLearningJa
 
Matlab ch1 (3)
Matlab ch1 (3)Matlab ch1 (3)
Matlab ch1 (3)mohsinggg
 
digital signal-processing-lab-manual
digital signal-processing-lab-manualdigital signal-processing-lab-manual
digital signal-processing-lab-manualAhmed Alshomi
 

Similar to Solucion compendio 4 (18)

Solution of matlab chapter 2
Solution of matlab chapter 2Solution of matlab chapter 2
Solution of matlab chapter 2
 
Flair furniture LPP problem
Flair furniture LPP problemFlair furniture LPP problem
Flair furniture LPP problem
 
17
1717
17
 
Practical work 2
Practical work 2Practical work 2
Practical work 2
 
Đề Thi HK2 Toán 7 - THCS Tô Ký
Đề Thi HK2 Toán 7 - THCS Tô KýĐề Thi HK2 Toán 7 - THCS Tô Ký
Đề Thi HK2 Toán 7 - THCS Tô Ký
 
INTRODUCTION TO MATLAB session with notes
  INTRODUCTION TO MATLAB   session with  notes  INTRODUCTION TO MATLAB   session with  notes
INTRODUCTION TO MATLAB session with notes
 
C23.2
C23.2C23.2
C23.2
 
Example of calculate of root
Example of calculate of rootExample of calculate of root
Example of calculate of root
 
Python project
Python projectPython project
Python project
 
Solution of matlab chapter 6
Solution of matlab chapter 6Solution of matlab chapter 6
Solution of matlab chapter 6
 
Programming with matlab session 1
Programming with matlab session 1Programming with matlab session 1
Programming with matlab session 1
 
Eligheor
EligheorEligheor
Eligheor
 
Lab 5 template Lab 5 - Your Name - MAT 275 Lab The M.docx
Lab 5 template  Lab 5 - Your Name - MAT 275 Lab The M.docxLab 5 template  Lab 5 - Your Name - MAT 275 Lab The M.docx
Lab 5 template Lab 5 - Your Name - MAT 275 Lab The M.docx
 
Math unit16 data presentation
Math unit16 data presentationMath unit16 data presentation
Math unit16 data presentation
 
Gilat_ch02.pdf
Gilat_ch02.pdfGilat_ch02.pdf
Gilat_ch02.pdf
 
Matlab ch1 (3)
Matlab ch1 (3)Matlab ch1 (3)
Matlab ch1 (3)
 
digital signal-processing-lab-manual
digital signal-processing-lab-manualdigital signal-processing-lab-manual
digital signal-processing-lab-manual
 
R part I
R part IR part I
R part I
 

More from cannia

Solucion compendio 10
Solucion compendio 10Solucion compendio 10
Solucion compendio 10cannia
 
Solucion compendio 9
Solucion compendio 9Solucion compendio 9
Solucion compendio 9cannia
 
Solución compendio 8
Solución compendio 8Solución compendio 8
Solución compendio 8cannia
 
Tercer corte
Tercer corteTercer corte
Tercer cortecannia
 
Macro exposicion
Macro exposicionMacro exposicion
Macro exposicioncannia
 
Segundo corte
Segundo corteSegundo corte
Segundo cortecannia
 
Segundo corte
Segundo corteSegundo corte
Segundo cortecannia
 
Primer corte
Primer cortePrimer corte
Primer cortecannia
 
Mapa conceptual
Mapa conceptualMapa conceptual
Mapa conceptualcannia
 
Solucion compendio 5
Solucion  compendio 5Solucion  compendio 5
Solucion compendio 5cannia
 
Solucion compendio 4
Solucion compendio 4Solucion compendio 4
Solucion compendio 4cannia
 
Solucion compendio 2
Solucion compendio 2Solucion compendio 2
Solucion compendio 2cannia
 
Solucion compendio 1
Solucion compendio 1Solucion compendio 1
Solucion compendio 1cannia
 
Hoja de vida julieth
Hoja de vida juliethHoja de vida julieth
Hoja de vida juliethcannia
 
Datos hoja de vida
Datos hoja de vidaDatos hoja de vida
Datos hoja de vidacannia
 
Hoja de vida camila
Hoja de vida camilaHoja de vida camila
Hoja de vida camilacannia
 
Portafolio derecho
Portafolio derechoPortafolio derecho
Portafolio derechocannia
 
Solucion compendio 4
Solucion compendio 4Solucion compendio 4
Solucion compendio 4cannia
 
Solucion compendio 2
Solucion compendio 2Solucion compendio 2
Solucion compendio 2cannia
 
Solucion compendio 1
Solucion compendio 1Solucion compendio 1
Solucion compendio 1cannia
 

More from cannia (20)

Solucion compendio 10
Solucion compendio 10Solucion compendio 10
Solucion compendio 10
 
Solucion compendio 9
Solucion compendio 9Solucion compendio 9
Solucion compendio 9
 
Solución compendio 8
Solución compendio 8Solución compendio 8
Solución compendio 8
 
Tercer corte
Tercer corteTercer corte
Tercer corte
 
Macro exposicion
Macro exposicionMacro exposicion
Macro exposicion
 
Segundo corte
Segundo corteSegundo corte
Segundo corte
 
Segundo corte
Segundo corteSegundo corte
Segundo corte
 
Primer corte
Primer cortePrimer corte
Primer corte
 
Mapa conceptual
Mapa conceptualMapa conceptual
Mapa conceptual
 
Solucion compendio 5
Solucion  compendio 5Solucion  compendio 5
Solucion compendio 5
 
Solucion compendio 4
Solucion compendio 4Solucion compendio 4
Solucion compendio 4
 
Solucion compendio 2
Solucion compendio 2Solucion compendio 2
Solucion compendio 2
 
Solucion compendio 1
Solucion compendio 1Solucion compendio 1
Solucion compendio 1
 
Hoja de vida julieth
Hoja de vida juliethHoja de vida julieth
Hoja de vida julieth
 
Datos hoja de vida
Datos hoja de vidaDatos hoja de vida
Datos hoja de vida
 
Hoja de vida camila
Hoja de vida camilaHoja de vida camila
Hoja de vida camila
 
Portafolio derecho
Portafolio derechoPortafolio derecho
Portafolio derecho
 
Solucion compendio 4
Solucion compendio 4Solucion compendio 4
Solucion compendio 4
 
Solucion compendio 2
Solucion compendio 2Solucion compendio 2
Solucion compendio 2
 
Solucion compendio 1
Solucion compendio 1Solucion compendio 1
Solucion compendio 1
 

Recently uploaded

Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 

Recently uploaded (20)

Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 

Solucion compendio 4

  • 1. SOLUCIÓN COMPENDIO 4 Taller de Aplicación: Basándose en los anteriores procedimientos construir intervalos y gráficos para los siguientes datos que corresponden a la edad de 50 microempresarios de la ciudad de Villavicencio 48 39 35 29 30 38 42 37 40 38 22 37 34 55 48 35 50 36 48 42 53 35 38 38 35 40 50 23 32 45 35 42 59 28 38 34 38 44 46 23 40 48 34 30 35 43 32 36 32 46 Códigos en R Resultados Ingresando datos: datos=c(48,38,22,35,53,40 ,35,34,40,43,39,42,37,50, 35,50,42,38,48,32,35,37,3 4,36,38,23,59,44,34,36,29 ,40,55,48,38,32,28,46,30, 32,30,38,48,42,35,45,38,2 3,35,46) [1] 48 38 22 35 53 40 35 34 40 43 39 42 37 50 35 50 42 38 48 32 35 37 34 36 38 [26] 23 59 44 34 36 29 40 55 48 38 32 28 46 30 32 30 38 48 42 35 45 38 23 35 46 Calculando el rango: Rang= max(datos)- min(datos) > Rang [1] 37 Calculando el número de intervalos m=round(1+3.3*log10(50)) La función Round, redondea al entero más cercano. > m [1] 7
  • 2. Longitud del intervalo: C=Rang/m > C [1] 5.285714 Este resultado se redondea al entero más cercano, por exceso en este caso 6. Redefinir=42-37=5 2 Xmin-2=20 Xmax +3=62 Ahora le damos forma a los intervalos intervalos=cut(datos, breaks=c(20,26,32,38,44,5 0,56,62)) Intervalos [1] (44,50] (32,38] (20,26] (32,38] (50,56] (38,44] (32,38] (32,38] (38,44] [10] (38,44] (38,44] (38,44] (32,38] (44,50] (32,38] (44,50] (38,44] (32,38] [19] (44,50] (26,32] (32,38] (32,38] (32,38] (32,38] (32,38] (20,26] (56,62] [28] (38,44] (32,38] (32,38] (26,32] (38,44] (50,56] (44,50] (32,38] (26,32] [37] (26,32] (44,50] (26,32] (26,32] (26,32] (32,38] (44,50] (38,44] (32,38] [46] (44,50] (32,38] (20,26] (32,38] (44,50] Levels: (20,26] (26,32] (32,38] (38,44] (44,50] (50,56] (56,62] Ahora se forma las frecuencias absolutas f=table(intervalos) f intervalos (20,26] (26,32] (32,38] (38,44] (44,50] (50,56] (56,62] 3 7 19 9 9 2 1
  • 3. Calculando el número de elementos de la muestra n=sum(f) > n [1] 50 Construimos las frecuencias absolutas h h=f/n h intervalos (20,26] (26,32] (32,38] (38,44] (44,50] (50,56] (56,62] 0.06 0.14 0.38 0.18 0.18 0.04 0.02 Construyendo frecuencias absolutas acumuladas F=cumsum(f) F (20,26] (26,32] (32,38] (38,44] (44,50] (50,56] (56,62] 3 10 29 38 47 49 50 Construyendo las frecuencias relativas acumuladas. H=cumsum(h) H (20,26] (26,32] (32,38] (38,44] (44,50] (50,56] (56,62] 0.06 0.20 0.58 0.76 0.94 0.98 1.00 Ahora se arman la tabla de frecuencias cbind(f,h,F,H) f h F H (20,26] 3 0.06 3 0.06 (26,32] 7 0.14 10 0.20 (32,38] 19 0.38 29 0.58 (38,44] 9 0.18 38 0.76 (44,50] 9 0.18 47 0.94 (50,56] 2 0.04 49 0.98 (56,62] 1 0.02 50 1.00 Construyendo marcas de clase LimSup=c(26,32,38,44,50,56,62) LimInf=c(20,26,32,38,44,50,56) Marca= (LimSup+LimInf)/2 Marca [1] 23 29 35 41 47 53 59 La tabla con las frecuencias y la marca de clase f Marca h F H (20,26] 3 23 0.06 3 0.06 (26,32] 7 29 0.14 10 0.20
  • 4. tabla=cbind(f,Marca,h,F,H) (32,38] 19 35 0.38 29 0.58 (38,44] 9 41 0.18 38 0.76 (44,50] 9 47 0.18 47 0.94 (50,56] 2 53 0.04 49 0.98 (56,62] 1 59 0.02 50 1.00 Gráfico de un histograma hist(datos, breaks=c(20,26,32,38,44,50,56, 62), col = "green", border = 1, main = "MICROEMPRESARIOS",xlab = "EDAD" , ylab = "FRECUENCIA")