您当前的位置:首页 > 养生 > 内容

如何在SPSS软件中进行单样本K-S检验,spss k-s检验(SPSS统计分析)

关于【如何在SPSS软件中进行单样本K-S检验】,spss k-s检验,今天涌涌小编给您分享一下,如果对您有所帮助别忘了关注本站哦。

内容导航:1、如何在SPSS软件中进行单样本K-S检验2、懿说学区(16) | SPSS统计分析(26)游程检验

1、如何在SPSS软件中进行单样本K-S检验

我们运用SPSS软件分析数据的时候,经常需要用单样本K-S检验来判断某个变量的正态分布情况。那么如何在SPSS中进行单样本K-S检验呢?下面小编给大家分享一下。

工具/材料

SPSS

操作方法

首先我们打开SPSS软件,点击文件菜单,接着选择数据选项,如下图所示

然后在弹出的打开数据界面我们选择要操作的数据文件,如下图所示

数据导入进来以后我们下面就需要借助单样本K-S检验来查看体重列是否符合正态分布,如下图所示

接下来点击顶部的分析菜单,选择非参数校验下面的样本K-S选项,如下图所示

接着在弹出的单样本K-S检验界面中添加检验变量,如下图所示

然后点击右侧的选项按钮,在弹出的界面中勾选描述性和四分位数复选框,如下图所示

接下来对于精确按钮里面的内容我们保持系统默认即可,不需要进行设置,如下图所示

最后点击确定我们就可以得到单样本K-S检验结果了,里面的正态分布数值就是我们需要的数据,如下图所示

2、懿说学区(16) | SPSS统计分析(26)游程检验

Yishuo school district (16) | SPSS statistical analysis (26) runs test

如何在SPSS软件中进行单样本K-S检验,spss k-s检验(SPSS统计分析)

SPSS

“分享兴趣,传播快乐,增长见闻,留下美好! 大家好,这里是小编。欢迎大家继续访问学苑内容,我们将竭诚为您带来更多更好的内容分享。

上一期,我们学习到了有关SPSS统计分析中,二项分布检验的有关内容,了解到了如何对生活中的一些二元变量进行处理,今天,我们来学习有关游程检验的内容。

"Share interest, spread happiness, increase knowledge, and leave a beautiful life! Hello, everyone, this is Xiaobian. Welcome to continue to visit the content of the Academy. We will wholeheartedly bring you more and better content sharing.

In the last issue, we learned about the binomial distribution test in SPSS statistical analysis and how to deal with some binary variables in life. Today, we will learn about the run test.

一个游程(Run)就是指某序列中位于一种符号之前或者之后的另一种符号持续的最大主序列。或者说,一个游程是指某序列中同类元素的一个持续的最大主集。游程检验(Runs test)又称变量的随机性检验,主要用于检验一个变量两个值的分布是否呈随机分布,即检验前一个个案是否影响下一个个案的值。如果没有影响,则这一组个案是随机的。对于连续型变量的随机性检验也可转化为只有两个取值的分类变量的随机性检验。其原假设H0:变量值的分布是随机的。

A run is the largest main sequence of symbols in a sequence that precedes or follows one symbol. In other words, a run is a continuous maximum principal set of similar elements in a sequence. Runs test, also known as the randomness test of variables, is mainly used to test whether the distribution of two values of a variable is random, that is, to test whether the previous case affects the value of the next case. If there is no effect, this group of cases is random. The randomness test for continuous variables can also be transformed into the randomness test for categorical variables with only two values. Its original assumption is H0: the distribution of variable values is random.

如何在SPSS软件中进行单样本K-S检验,spss k-s检验(SPSS统计分析)

例如:30次投掷硬币出现正反面的序列为000011100000110000011111100000,如果称连在一起的0或连在一起的1为一个游程,则共有4个0游程和3个1游程,共7个游程。可以直观地理解为,如果硬币的正反面出现是随机的,那么在该序列中,许多个1或许多个0出现的可能性将不大,同时,0和1频繁交叉出现的可能性也会很小。因此,游程数太大和太小都将表明变量值存在不随机的现象。

For example, the sequence of 30 coin tosses is 000011100000010000001111100000. If the connected 0 or the connected 1 is called a run, there are 4 runs of 0 and 3 runs of 1, a total of 7 runs. It can be intuitively understood that if the appearance of the obverse and reverse sides of the coin is random, it is unlikely that many 1s or zeros will appear in this sequence, and at the same time, it is also unlikely that zeros and ones will frequently cross. Therefore, if the run number is too large or too small, it will indicate that the variable value is not random.

SPSS

接下来,我们来分析一个在SPSS当中的游程检验的实例。

Next, we will analyze an example of run test in SPSS.

问题提出:某股票连续20天的收盘价如下图所示,在显著性水平0.05下,判断此价格是否是随机的。

Question raised: the closing price of a stock for 20 consecutive days is shown in the figure below. Under the significance level of 0.05, it is judged whether the price is random.

如何在SPSS软件中进行单样本K-S检验,spss k-s检验(SPSS统计分析)

1

第一步

由于判断价格是否随机分布,可用游程检验对统计量进行随机性检验,该检验的原假设H0:样本是随机的。我们将这些收盘价数据组织成一列,变量命名为price,输入数据并保存为SPSS数据文件。

如何在SPSS软件中进行单样本K-S检验,spss k-s检验(SPSS统计分析)

Step 1: to judge whether prices are randomly distributed, run test can be used to test the randomness of statistics. The original hypothesis of this test is H0: the sample is random. We organize these closing price data into a column, name the variable price, input the data and save it as an SPSS data file.

如何在SPSS软件中进行单样本K-S检验,spss k-s检验(SPSS统计分析)

2

第二步

我们选择菜单“分析->非参数检验->单样本”,按下图所示进行检验设置。本例中的数据为连续数据,应该以样本点中位数为分割点,将各样本值重新编码为0或1的2个类别的数据序列。

Step 2: we select the menu "analysis - > non parametric inspection - > single sample" and set the inspection as shown in the following figure. The data in this example is continuous data, and the median of sample points should be taken as the dividing point, and each sample value should be re encoded into two categories of data sequences of 0 or 1.

如何在SPSS软件中进行单样本K-S检验,spss k-s检验(SPSS统计分析)

如何在SPSS软件中进行单样本K-S检验,spss k-s检验(SPSS统计分析)

如何在SPSS软件中进行单样本K-S检验,spss k-s检验(SPSS统计分析)

如何在SPSS软件中进行单样本K-S检验,spss k-s检验(SPSS统计分析)

如何在SPSS软件中进行单样本K-S检验,spss k-s检验(SPSS统计分析)

3

第三步

点击运行,分析结果。下图为单样本游程检验的假设检验数据摘要,给出了本例游程检验的原假设“由股价<=11.25和>11.25定义的值的序列是随机序列”,其显著性水平是0.05,显著性概率P=0.041<0.05,因此我们拒绝原假设,认为“<=11.25和>11.25定义的值”的序列不是随机序列。

如何在SPSS软件中进行单样本K-S检验,spss k-s检验(SPSS统计分析)

click Run to analyze the results. The following figure is a summary of the hypothesis test data of the single sample run test. It gives the original hypothesis of the run test of this example that "the sequence of values defined by stock prices < = 11.25 and > 11.25 is a random sequence", with a significance level of 0.05 and a significance probability of P = 0.041 < 0.05. Therefore, we reject the original hypothesis and consider that the sequence of values defined by < = 11.25 and > 11.25 is not a random sequence.

在游程检验的输出图表上我们也可以看到,其检验统计量为6.000,标准误差是2.153,显著性概率P值为0.041,图表显示了以垂直线标记的观察到的游程数的正态分布。

On the output chart of the run test, we can also see that the test statistic is 6.000, the standard error is 2.153, and the significance probability p value is 0.041. The chart shows the normal distribution of the observed run number marked by the vertical line.

如何在SPSS软件中进行单样本K-S检验,spss k-s检验(SPSS统计分析)

如何在SPSS软件中进行单样本K-S检验,spss k-s检验(SPSS统计分析)

END

下期预告:本期,我们学习了游程检验

的理论和实例操作。

下一期,我们将会学习

单样本K-S检验的理论和操作。

Preview for the next issue: in this issue, we learned the theory and example operation of run test. In the next issue, we will learn the theory and operation of single sample K-S test.

今天的分享就到这里了

如果您对今天的文章有独特的想法

欢迎给我们留言

让我们相约明天

祝您今天过得开心快乐!

本文关键词:spss怎么进行ks检验,spss做k-s检验,spss单样本ks检验结果怎么看,spss k-s检验,spss怎么ks检验。这就是关于《如何在SPSS软件中进行单样本K-S检验,spss k-s检验(SPSS统计分析)》的所有内容,希望对您能有所帮助!


声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,谢谢。

上一篇: 电脑如何共享文件夹,电脑如何共享文件夹到电视(如何设置共享文件夹最全最详细)

下一篇: 端午节儿童画画什么好看,端午节可以画什么儿童画(传统节日端午节主题课程《又到端午粽飘香》)



推荐阅读

网站内容来自网络,如有侵权请联系我们,立即删除! | 软文发布 | 粤ICP备2021106084号