Mathcenter Forum

Mathcenter Forum (https://www.mathcenter.net/forum/index.php)
-   ซอฟต์แวร์คณิตศาสตร์ (https://www.mathcenter.net/forum/forumdisplay.php?f=30)
-   -   การทดสอบการแจกแจงปกติของข้อมูลด้วย Google Sheets (Normality Test by Google Sheets) (https://www.mathcenter.net/forum/showthread.php?t=24711)

zam007 15 มีนาคม 2021 21:05

การทดสอบการแจกแจงปกติของข้อมูลด้วย Google Sheets (Normality Test by Google Sheets)
 
การทดสอบการแจกแจงปกติของข้อมูล เป็นข้อตกลงเบื้องต้นก่อนที่จะใช้สถิติแบบพาราเมตริก เช่น t-test, F-test, ANOVA เป็นต้น โดยปกติสามารถใช้โปรแกรมทางสถิติจำพวก SPSS, SAS, Stata, R ซึ่งต้องติดตั้งบนเครื่องคอมก่อนจึงจะใช้งานได้ อีกทั้งบ้างโปรแกรมมีค่าใช้จ่ายด้วย
กระผมจึงได้ทดลองสร้างโปรแกรมทดสอบการแจกแจงปกติของข้อมูลแบบออนไลน์ โดยสร้างเป็น User-Function ใน Google Sheets ด้วยภาษา Javascript โดยเลือกการทดสอบทางสถิติที่แข็งแกร่งและเป็นที่นิยมมา 3 รูปแบบดังนี้ ***
  1. Shapiro-Wilk Test
  2. Lilliefors (Kolmogorov-Smirnov) Test
  3. Anderson-Darling Test
ตัวอย่างโปรแกรมเป็นดังนี้

https://docs.google.com/spreadsheets...it?usp=sharing

โค้ดต้นฉบับ
1.https://github.com/rniwa/js-shapiro-...hapiro-wilk.js
2.http://svn.r-project.org/R/trunk/src/nmath/pnorm.c
3.http://svn.r-project.org/R/trunk/src/nmath/qnorm.c
4.https://rdrr.io/cran/nortest/src/R/lillie.test.R
5.https://rdrr.io/cran/nortest/src/R/ad.test.R

phurinat 06 สิงหาคม 2023 13:03

😀😀😀😀😀😀😀😀😀😀😀


เวลาที่แสดงทั้งหมด เป็นเวลาที่ประเทศไทย (GMT +7) ขณะนี้เป็นเวลา 20:28

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Modified by Jetsada Karnpracha