SlideShare a Scribd company logo
1 of 2
Download to read offline
USING R IN INTRODUCTION STATISTICS
Yayan.m@gmail.com
DATASET
Kelas f
Nilai Tengah
(xi)
a b c
10-19 9 15
20-29 20 25
30-39 26 35
40-49 35 45
50-59 22 55
60-69 17 65
70-79 11 75
80-89 6 85
90'99 4 95
# Load data from file excel
> library(readxl)
> DATASETCOVAR <- read_excel("D:/R/DATASETCOVAR.xlsx")
> View(DATASETCOVAR)
> dataset.1 <- DATASETCOVAR[,c(2,3)]
> dataset.1
# A tibble: 9 × 2
f `Nilai Tengah (xi)`
<dbl> <dbl>
1 9 15
2 20 25
3 26 35
4 35 45
5 22 55
6 17 65
7 11 75
8 6 85
9 4 95
# Karena data diatas dalam bentuk table maka kita perlu rubah kedalam bent
uk vector, sebagai contoh
F xi
1 2 1
2 1 3
3 1 2
Menjadi [1]1 1 3 2
> rep(DATASETCOVAR$`Nilai Tengah (xi)`,DATASETCOVAR$f)
# Maka mean/nilai tengah akan didapat
> mean(rep(DATASETCOVAR$`Nilai Tengah (xi)`,DATASETCOVAR$f))
[1] 47.66667
# kemudian kita akan cari |xi-xrata|
> abs(DATASETCOVAR$`Nilai Tengah (xi)`- mean(rep(DATASETCOVAR$`Nilai Tenga
h (xi)`,DATASETCOVAR$f)))
[1] 32.666667 22.666667 12.666667 2.666667 7.333333 17.333333 27.333333
37.333333 47.333333
# kemudian kita akan cari |xi-xrata|^2
> (abs(DATASETCOVAR$`Nilai Tengah (xi)`- mean(rep(DATASETCOVAR$`Nilai Teng
ah (xi)`,DATASETCOVAR$f))))^2
[1] 1067.111111 513.777778 160.444444 7.111111 53.777778 300.44444
4 747.111111
[8] 1393.777778 2240.444444
# kemudian kita akan cari |xi-xrata|^2 * f
> (abs(DATASETCOVAR$`Nilai Tengah (xi)`- mean(rep(DATASETCOVAR$`Nilai Teng
ah (xi)`,DATASETCOVAR$f))))^2*DATASETCOVAR$f
[1] 9604.0000 10275.5556 4171.5556 248.8889 1183.1111 5107.5556 821
8.2222 8362.6667
[9] 8961.7778
#Maka Ragam atau variance, dan Standar deviasi atau simpangan bakunya dida
pat
> sum((abs(DATASETCOVAR$`Nilai Tengah (xi)`- mean(rep(DATASETCOVAR$`Nilai
Tengah (xi)`,DATASETCOVAR$f))))^2*DATASETCOVAR$f)
[1] 56133.33
> b <- sum((abs(DATASETCOVAR$`Nilai Tengah (xi)`- mean(rep(DATASETCOVAR$`N
ilai Tengah (xi)`,DATASETCOVAR$f))))^2*DATASETCOVAR$f)
> a <- sum(DATASETCOVAR$f)
> a
[1] 150
# Ragam atau Variance
> b/a
[1] 374.2222
# Simpangan baku atau standard deviasi
> sqrt(b/a)
[1] 19.34482

More Related Content

What's hot

SAS Ron Cody Solutions for even Number problems from Chapter 16 to 20
SAS Ron Cody Solutions for even Number problems from Chapter 16 to 20SAS Ron Cody Solutions for even Number problems from Chapter 16 to 20
SAS Ron Cody Solutions for even Number problems from Chapter 16 to 20Ayapparaj SKS
 
Learning SAS With Example by Ron Cody :Chapter 16 to Chapter 20 Solution
Learning SAS With Example by Ron Cody :Chapter 16 to Chapter 20 SolutionLearning SAS With Example by Ron Cody :Chapter 16 to Chapter 20 Solution
Learning SAS With Example by Ron Cody :Chapter 16 to Chapter 20 SolutionVibeesh CS
 
Learning SAS by Example -A Programmer’s Guide by Ron CodySolution
Learning SAS by Example -A Programmer’s Guide by Ron CodySolutionLearning SAS by Example -A Programmer’s Guide by Ron CodySolution
Learning SAS by Example -A Programmer’s Guide by Ron CodySolutionVibeesh CS
 
Translating Linear Functions "I AM" Answer Key!
Translating Linear Functions "I AM" Answer Key!Translating Linear Functions "I AM" Answer Key!
Translating Linear Functions "I AM" Answer Key!Deborah_Johnson
 
FUNCTION- Algebraic Function
FUNCTION- Algebraic FunctionFUNCTION- Algebraic Function
FUNCTION- Algebraic FunctionJanak Singh saud
 
13. quadratic formtemplatetouchpad
13. quadratic formtemplatetouchpad13. quadratic formtemplatetouchpad
13. quadratic formtemplatetouchpadMedia4math
 
Adbms 39 algorithms for project and set operations
Adbms 39 algorithms for project and set operationsAdbms 39 algorithms for project and set operations
Adbms 39 algorithms for project and set operationsVaibhav Khanna
 
SAS Ron Cody Solutions for even Number problems from Chapter 7 to 15
SAS Ron Cody Solutions for even Number problems from Chapter 7 to 15SAS Ron Cody Solutions for even Number problems from Chapter 7 to 15
SAS Ron Cody Solutions for even Number problems from Chapter 7 to 15Ayapparaj SKS
 
R scatter plots
R scatter plotsR scatter plots
R scatter plotsAbhik Seal
 
Lkm transormasi fungsi rev (1)
Lkm transormasi fungsi rev (1)Lkm transormasi fungsi rev (1)
Lkm transormasi fungsi rev (1)DavisKurnia
 
Computing and Data Analysis for Environmental Applications
Computing and Data Analysis for Environmental ApplicationsComputing and Data Analysis for Environmental Applications
Computing and Data Analysis for Environmental ApplicationsStatistics Assignment Help
 
The Essence of the Iterator Pattern (pdf)
The Essence of the Iterator Pattern (pdf)The Essence of the Iterator Pattern (pdf)
The Essence of the Iterator Pattern (pdf)Eric Torreborre
 

What's hot (19)

StiglicM-poster-ang
StiglicM-poster-angStiglicM-poster-ang
StiglicM-poster-ang
 
SAS Ron Cody Solutions for even Number problems from Chapter 16 to 20
SAS Ron Cody Solutions for even Number problems from Chapter 16 to 20SAS Ron Cody Solutions for even Number problems from Chapter 16 to 20
SAS Ron Cody Solutions for even Number problems from Chapter 16 to 20
 
Matlab graphics
Matlab graphicsMatlab graphics
Matlab graphics
 
INVERSE FUNCTION
INVERSE FUNCTIONINVERSE FUNCTION
INVERSE FUNCTION
 
Learning SAS With Example by Ron Cody :Chapter 16 to Chapter 20 Solution
Learning SAS With Example by Ron Cody :Chapter 16 to Chapter 20 SolutionLearning SAS With Example by Ron Cody :Chapter 16 to Chapter 20 Solution
Learning SAS With Example by Ron Cody :Chapter 16 to Chapter 20 Solution
 
Learning SAS by Example -A Programmer’s Guide by Ron CodySolution
Learning SAS by Example -A Programmer’s Guide by Ron CodySolutionLearning SAS by Example -A Programmer’s Guide by Ron CodySolution
Learning SAS by Example -A Programmer’s Guide by Ron CodySolution
 
Translating Linear Functions "I AM" Answer Key!
Translating Linear Functions "I AM" Answer Key!Translating Linear Functions "I AM" Answer Key!
Translating Linear Functions "I AM" Answer Key!
 
FUNCTION- Algebraic Function
FUNCTION- Algebraic FunctionFUNCTION- Algebraic Function
FUNCTION- Algebraic Function
 
13. quadratic formtemplatetouchpad
13. quadratic formtemplatetouchpad13. quadratic formtemplatetouchpad
13. quadratic formtemplatetouchpad
 
Adbms 39 algorithms for project and set operations
Adbms 39 algorithms for project and set operationsAdbms 39 algorithms for project and set operations
Adbms 39 algorithms for project and set operations
 
SAS Ron Cody Solutions for even Number problems from Chapter 7 to 15
SAS Ron Cody Solutions for even Number problems from Chapter 7 to 15SAS Ron Cody Solutions for even Number problems from Chapter 7 to 15
SAS Ron Cody Solutions for even Number problems from Chapter 7 to 15
 
R scatter plots
R scatter plotsR scatter plots
R scatter plots
 
Matlab plotting
Matlab plottingMatlab plotting
Matlab plotting
 
Lkm transormasi fungsi rev (1)
Lkm transormasi fungsi rev (1)Lkm transormasi fungsi rev (1)
Lkm transormasi fungsi rev (1)
 
CLIM Undergraduate Workshop: (Attachment) Performing Extreme Value Analysis (...
CLIM Undergraduate Workshop: (Attachment) Performing Extreme Value Analysis (...CLIM Undergraduate Workshop: (Attachment) Performing Extreme Value Analysis (...
CLIM Undergraduate Workshop: (Attachment) Performing Extreme Value Analysis (...
 
Computing and Data Analysis for Environmental Applications
Computing and Data Analysis for Environmental ApplicationsComputing and Data Analysis for Environmental Applications
Computing and Data Analysis for Environmental Applications
 
Xl breakeven chart - How to prepare a Breakeven Chart in Excel, Breakeven, Fi...
Xl breakeven chart - How to prepare a Breakeven Chart in Excel, Breakeven, Fi...Xl breakeven chart - How to prepare a Breakeven Chart in Excel, Breakeven, Fi...
Xl breakeven chart - How to prepare a Breakeven Chart in Excel, Breakeven, Fi...
 
The Essence of the Iterator Pattern (pdf)
The Essence of the Iterator Pattern (pdf)The Essence of the Iterator Pattern (pdf)
The Essence of the Iterator Pattern (pdf)
 
Breakeven cv02
Breakeven cv02Breakeven cv02
Breakeven cv02
 

Similar to Using r in introduction statistics

Econometric Analysis 8th Edition Greene Solutions Manual
Econometric Analysis 8th Edition Greene Solutions ManualEconometric Analysis 8th Edition Greene Solutions Manual
Econometric Analysis 8th Edition Greene Solutions ManualLewisSimmonss
 
fINAL Lesson_5_Data_Manipulation_using_R_v1.pptx
fINAL Lesson_5_Data_Manipulation_using_R_v1.pptxfINAL Lesson_5_Data_Manipulation_using_R_v1.pptx
fINAL Lesson_5_Data_Manipulation_using_R_v1.pptxdataKarthik
 
Basic R Data Manipulation
Basic R Data ManipulationBasic R Data Manipulation
Basic R Data ManipulationChu An
 
SQL Functions and Operators
SQL Functions and OperatorsSQL Functions and Operators
SQL Functions and OperatorsMohan Kumar.R
 
8. Vectors data frames
8. Vectors data frames8. Vectors data frames
8. Vectors data framesExternalEvents
 
SQL Saturday Lima - Analysis Services
SQL Saturday Lima - Analysis ServicesSQL Saturday Lima - Analysis Services
SQL Saturday Lima - Analysis Servicesjorge Muchaypiña
 
RDataMining slides-time-series-analysis
RDataMining slides-time-series-analysisRDataMining slides-time-series-analysis
RDataMining slides-time-series-analysisYanchang Zhao
 
Most useful queries
Most useful queriesMost useful queries
Most useful queriesSam Depp
 

Similar to Using r in introduction statistics (15)

R Programming Homework Help
R Programming Homework HelpR Programming Homework Help
R Programming Homework Help
 
Econometric Analysis 8th Edition Greene Solutions Manual
Econometric Analysis 8th Edition Greene Solutions ManualEconometric Analysis 8th Edition Greene Solutions Manual
Econometric Analysis 8th Edition Greene Solutions Manual
 
fINAL Lesson_5_Data_Manipulation_using_R_v1.pptx
fINAL Lesson_5_Data_Manipulation_using_R_v1.pptxfINAL Lesson_5_Data_Manipulation_using_R_v1.pptx
fINAL Lesson_5_Data_Manipulation_using_R_v1.pptx
 
R gráfico
R gráficoR gráfico
R gráfico
 
Basic R Data Manipulation
Basic R Data ManipulationBasic R Data Manipulation
Basic R Data Manipulation
 
SQL Functions and Operators
SQL Functions and OperatorsSQL Functions and Operators
SQL Functions and Operators
 
8. Vectors data frames
8. Vectors data frames8. Vectors data frames
8. Vectors data frames
 
Doc 20180130-wa0005
Doc 20180130-wa0005Doc 20180130-wa0005
Doc 20180130-wa0005
 
Doc 20180130-wa0004-1
Doc 20180130-wa0004-1Doc 20180130-wa0004-1
Doc 20180130-wa0004-1
 
Doc 20180130-wa0004
Doc 20180130-wa0004Doc 20180130-wa0004
Doc 20180130-wa0004
 
SQL Saturday Lima - Analysis Services
SQL Saturday Lima - Analysis ServicesSQL Saturday Lima - Analysis Services
SQL Saturday Lima - Analysis Services
 
R
RR
R
 
Mat lab day 1
Mat lab day 1Mat lab day 1
Mat lab day 1
 
RDataMining slides-time-series-analysis
RDataMining slides-time-series-analysisRDataMining slides-time-series-analysis
RDataMining slides-time-series-analysis
 
Most useful queries
Most useful queriesMost useful queries
Most useful queries
 

More from Yayan Mulyana

Kado ulang tahun untuk suami terbaik 2020
Kado ulang tahun untuk suami terbaik 2020Kado ulang tahun untuk suami terbaik 2020
Kado ulang tahun untuk suami terbaik 2020Yayan Mulyana
 
Kado ulang tahun cowok terbaik 2020
Kado ulang tahun cowok terbaik 2020Kado ulang tahun cowok terbaik 2020
Kado ulang tahun cowok terbaik 2020Yayan Mulyana
 
Jam tangan casual pria terbaru 2020
Jam tangan casual pria terbaru 2020Jam tangan casual pria terbaru 2020
Jam tangan casual pria terbaru 2020Yayan Mulyana
 
How to solve routing of distribution systems using simple method and google m...
How to solve routing of distribution systems using simple method and google m...How to solve routing of distribution systems using simple method and google m...
How to solve routing of distribution systems using simple method and google m...Yayan Mulyana
 
Sekilas mengenai trade marketing
Sekilas mengenai trade marketingSekilas mengenai trade marketing
Sekilas mengenai trade marketingYayan Mulyana
 
Optimalisasi Pos Material
Optimalisasi Pos MaterialOptimalisasi Pos Material
Optimalisasi Pos MaterialYayan Mulyana
 
6 Langkah Lebih Maju Tentang Category Management
6 Langkah Lebih Maju Tentang Category Management6 Langkah Lebih Maju Tentang Category Management
6 Langkah Lebih Maju Tentang Category ManagementYayan Mulyana
 
6 langkah lebih maju tentang category management
6 langkah lebih maju tentang category management6 langkah lebih maju tentang category management
6 langkah lebih maju tentang category managementYayan Mulyana
 

More from Yayan Mulyana (8)

Kado ulang tahun untuk suami terbaik 2020
Kado ulang tahun untuk suami terbaik 2020Kado ulang tahun untuk suami terbaik 2020
Kado ulang tahun untuk suami terbaik 2020
 
Kado ulang tahun cowok terbaik 2020
Kado ulang tahun cowok terbaik 2020Kado ulang tahun cowok terbaik 2020
Kado ulang tahun cowok terbaik 2020
 
Jam tangan casual pria terbaru 2020
Jam tangan casual pria terbaru 2020Jam tangan casual pria terbaru 2020
Jam tangan casual pria terbaru 2020
 
How to solve routing of distribution systems using simple method and google m...
How to solve routing of distribution systems using simple method and google m...How to solve routing of distribution systems using simple method and google m...
How to solve routing of distribution systems using simple method and google m...
 
Sekilas mengenai trade marketing
Sekilas mengenai trade marketingSekilas mengenai trade marketing
Sekilas mengenai trade marketing
 
Optimalisasi Pos Material
Optimalisasi Pos MaterialOptimalisasi Pos Material
Optimalisasi Pos Material
 
6 Langkah Lebih Maju Tentang Category Management
6 Langkah Lebih Maju Tentang Category Management6 Langkah Lebih Maju Tentang Category Management
6 Langkah Lebih Maju Tentang Category Management
 
6 langkah lebih maju tentang category management
6 langkah lebih maju tentang category management6 langkah lebih maju tentang category management
6 langkah lebih maju tentang category management
 

Recently uploaded

VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一ffjhghh
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxolyaivanovalion
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023ymrp368
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 

Recently uploaded (20)

VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 

Using r in introduction statistics

  • 1. USING R IN INTRODUCTION STATISTICS Yayan.m@gmail.com DATASET Kelas f Nilai Tengah (xi) a b c 10-19 9 15 20-29 20 25 30-39 26 35 40-49 35 45 50-59 22 55 60-69 17 65 70-79 11 75 80-89 6 85 90'99 4 95 # Load data from file excel > library(readxl) > DATASETCOVAR <- read_excel("D:/R/DATASETCOVAR.xlsx") > View(DATASETCOVAR) > dataset.1 <- DATASETCOVAR[,c(2,3)] > dataset.1 # A tibble: 9 × 2 f `Nilai Tengah (xi)` <dbl> <dbl> 1 9 15 2 20 25 3 26 35 4 35 45 5 22 55 6 17 65 7 11 75 8 6 85 9 4 95 # Karena data diatas dalam bentuk table maka kita perlu rubah kedalam bent uk vector, sebagai contoh F xi 1 2 1 2 1 3 3 1 2 Menjadi [1]1 1 3 2 > rep(DATASETCOVAR$`Nilai Tengah (xi)`,DATASETCOVAR$f) # Maka mean/nilai tengah akan didapat > mean(rep(DATASETCOVAR$`Nilai Tengah (xi)`,DATASETCOVAR$f)) [1] 47.66667 # kemudian kita akan cari |xi-xrata|
  • 2. > abs(DATASETCOVAR$`Nilai Tengah (xi)`- mean(rep(DATASETCOVAR$`Nilai Tenga h (xi)`,DATASETCOVAR$f))) [1] 32.666667 22.666667 12.666667 2.666667 7.333333 17.333333 27.333333 37.333333 47.333333 # kemudian kita akan cari |xi-xrata|^2 > (abs(DATASETCOVAR$`Nilai Tengah (xi)`- mean(rep(DATASETCOVAR$`Nilai Teng ah (xi)`,DATASETCOVAR$f))))^2 [1] 1067.111111 513.777778 160.444444 7.111111 53.777778 300.44444 4 747.111111 [8] 1393.777778 2240.444444 # kemudian kita akan cari |xi-xrata|^2 * f > (abs(DATASETCOVAR$`Nilai Tengah (xi)`- mean(rep(DATASETCOVAR$`Nilai Teng ah (xi)`,DATASETCOVAR$f))))^2*DATASETCOVAR$f [1] 9604.0000 10275.5556 4171.5556 248.8889 1183.1111 5107.5556 821 8.2222 8362.6667 [9] 8961.7778 #Maka Ragam atau variance, dan Standar deviasi atau simpangan bakunya dida pat > sum((abs(DATASETCOVAR$`Nilai Tengah (xi)`- mean(rep(DATASETCOVAR$`Nilai Tengah (xi)`,DATASETCOVAR$f))))^2*DATASETCOVAR$f) [1] 56133.33 > b <- sum((abs(DATASETCOVAR$`Nilai Tengah (xi)`- mean(rep(DATASETCOVAR$`N ilai Tengah (xi)`,DATASETCOVAR$f))))^2*DATASETCOVAR$f) > a <- sum(DATASETCOVAR$f) > a [1] 150 # Ragam atau Variance > b/a [1] 374.2222 # Simpangan baku atau standard deviasi > sqrt(b/a) [1] 19.34482