R正态检验代码

a<-c(0.016164423,0.016043446,0.020511176,0.0147795,0.014269699,0.012927397,0.013895352,0.017014989,0.014669032,0.015399745,0.014298572,0.015061027,0.013833365,0.017791795,0.020587195,0.019895954,0.018823989,0.016265671,0.013964907,0.016804513,0.015244555,0.017796051,0.014688435,0.013727858,0.016954024,0.017309102,0.019454176,0.013767293,0.015682269,0.01403405,0.013330044,0.014778433,0.013914063,0.014778369,0.013120604,0.013242826,0.016329737,0.014071476,0.017393632,0.014669524,0.014740935,0.014234615,0.012968462,0.01297477,0.021959705,0.013290311,0.015289711,0.015825015,0.015586648,0.01325233,0.014874021,0.014912959,0.015972251,0.017505698,0.017592929,0.017574206,0.016689079,0.015479106,0.017050681,0.017907544,0.014509327,0.013266375,0.017787206,0.01485416,0.022448876,0.017828451,0.016445673,0.016579114,0.020136041,0.018729247,0.01744602,0.016920244,0.014348696,0.015799637,0.014969581,0.015616177,0.015036968,0.016408442,0.01660499,0.014981867,0.015564784,0.017075818,0.016085477,0.016397,0.015975352,0.014723705,0.015566999,0.015148208,0.013012068,0.01448979,0.014257123,0.014120186,0.016020445,0.017285482,0.018477293,0.016946268,0.014222045,0.01425948,0.0147407,0.015828775,0.01565053,0.014219824,0.014175535,0.019420299,0.022029744,0.021775453,0.024598956,0.018365883,0.018556209,0.022121511,0.01573623,0.020637613,0.015495398,0.021546275,0.017360605,0.0152732,0.015492911,0.024569672,0.019080228,0.023752201,0.016925356,0.01689025,0.014284567,0.01879753,0.017954178,0.019211601,0.015722331,0.012951724,0.013466722,0.01355591,0.015764237,0.013981366,0.017324122,0.015892206,0.017784625,0.01443855,0.018775632,0.014656737)
ks.test(a, "pnorm", mean = mean(a), sd =  sqrt(var(a)))

    One-sample Kolmogorov-Smirnov test

data:  a
D = 0.10968, p-value = 0.07228
alternative hypothesis: two-sided

p值大于0.05 正态分布

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 204,793评论 6 478
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 87,567评论 2 381
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 151,342评论 0 338
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 54,825评论 1 277
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 63,814评论 5 368
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,680评论 1 281
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 38,033评论 3 399
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,687评论 0 258
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 42,175评论 1 300
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,668评论 2 321
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,775评论 1 332
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,419评论 4 321
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 39,020评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,978评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,206评论 1 260
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 45,092评论 2 351
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,510评论 2 343