楼主: crypig
11575 7

[学习资料] 请教用spss做单样本ks检验,怎样自己设定均匀分布的最大值和最小值 [推广有奖]

  • 0关注
  • 0粉丝

svip2

硕士生

25%

(VIP/贵宾)三级

70%

威望
0
论坛币
3482 个
通用积分
0.0000
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
5246 点
帖子
16
精华
0
在线时间
287 小时
注册时间
2005-10-13
最后登录
2025-11-2

楼主
crypig 发表于 2005-10-13 20:44:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
<P>如题!软件上它是用样本的最大值和最小值,自己怎样设定呢?</P>
<P>比如样本min=0.2 max=0.9 但是想做的检验是[0,1]的均匀分布,怎么设定0,1呢?</P>
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:均匀分布 ks检验 SPSS 最大值 单样本 最大值 样本 软件

回帖推荐

hanszhu 发表于6楼  查看完整内容

One-Sample Kolmogorov-Smirnov The Kolmogorov-Smirnov D test is a goodness-of-fit test which tests whether a given distribution is not significantly different from one hypothesized (ex., on the basis of the assumption of a normal distribution). It is a more powerful alternative to chi-square goodness-of-fit tests when its assumptions are met. Whereas the chi-square test of goodness-of-fit tests w ...

本帖被以下文库推荐

沙发
crypig 发表于 2005-10-14 13:08:00
自己顶下.

藤椅
crypig 发表于 2005-10-15 17:47:00
怎么没人回答我呀,呵呵

板凳
crypig 发表于 2005-10-20 23:15:00
书上说用spss命令语言可以,但这个语言不会,达人指教!!!

报纸
crypig 发表于 2005-10-25 09:57:00
继续请人指教!

地板
hanszhu 发表于 2006-5-17 06:04:00

One-Sample Kolmogorov-Smirnov

The Kolmogorov-Smirnov D test is a goodness-of-fit test which tests whether a given distribution is not significantly different from one hypothesized (ex., on the basis of the assumption of a normal distribution). It is a more powerful alternative to chi-square goodness-of-fit tests when its assumptions are met. Whereas the chi-square test of goodness-of-fit tests whether in general the observed distribution is not significantly different from the hypothesized one, the K-S test tests whether this is so even for the most deviant values of the criterion variable. Thus it is a more stringent test.

Key Concepts and Terms

Observed vs. hypothetical distribution.

The observed distribution is the distribution of the variable in the sample. The hypothetical distribution is the expected distribution of a variable with the same parameters if it conformed to a particular type of distribution. The types supported by SPSS are the normal, Poisson, exponential, or uniform distributions. Other distributions are supported through graphical methods. The expected hypothetical distribution is calculated by consulting the appropriate distribution table. In the simplest case, for a uniform distribution with a range of 1 to 8, the cumulative percentages would be 12.5%, 25%, 37.5%, 50%, 62.5%, 75%, 87.5%, and 100%. D would then be the largest difference between one of these theoretical cumulative percentages and the corresponding empirical cumulative percentage, as discussed below.

Kolmogov-Smirnov D.

The D value is the largest absolute difference between the cumulative observed proportion and the cumulative proportion expected on the basis of the hypothesized distribution. The computed D is compared to a table of critical values of D in the Kolmogorov-Smirnov One-Sample Test, for a given sample size (cf. Massey, 1951). For samples > 35, the critical value at the .05 level is approximately 1.36/SQRT(n), where n = sample size. If the computed D is less than the critical value, the researcher fails to reject the null hypothesis that the distribution of the criterion variable is not different from the hypothesized (ex., normal) distribution. In practice, computer programs like SPSS compute the probability of D directly without need to refer to such a table. SPSS prints the two-tailed significance level, testing the probability that the observed distribution is not significantly deviant from the expected distribution in either direction.

Assumptions
Random sampling is assumed, as with all significance tests.

Level of data. Continuous interval or ratio data are required for the Kolmogorov-Smirnov goodness-of-fit test for exact results. If approximate results are sufficient, ordinal data or grouped interval data may be (and commonly are) used. The K-S test is also used for ordinal data when the large-sample assumptions of the chi-square goodness-of-fit test are not met.

Hypothetical distribution specified in advance. For the normal distribution, the expected sample mean and sample standard deviation must be specified in advance. For the Poisson distribution and the exponential distribution, the expected sample mean must be specfied in advance. For the uniform distribution, the expected range (minimum, maximum values) must be specified in advance. The menu mode of SPSS calculates these expected parameters from the data, but the researcher may specify them manually in the command language in the syntax window, as per the SPSS Base Syntax Reference Guide.

Could I use the Kolmogov-Smirnov goodness-of-fit test to test my data not only against the normal distribution, but also against a series of other distributions?

Multiple comparisons would lower the effective alpha significance level. That is, a series of K-S tests for the same criterion variable might capitalize on chance patterns in the data. This is why it is assumed that the hypothetical distribution is specified in advance.

Where is the Kolmogorov-Smirnov test found in SPSS?

From the SPSS menu, select Statistics, Nonparametric Tests, 1-Sample K-S. In the "One-Sample Kolmogorov-Smirnov Test" dialog box which appears, select the desired test distribution (ex., Normal) and select the desired criterion variable(s) from the variable picklist.

Could goodness-of-fit be assessed graphically instead of by the Kolmogorov-Smirnov test?

Two graphical methods are available, either of which may render K-S testing unnecesary. A graph of empirical by theoretical cumulative distribution functions (cdf's) simply shows the empirical distibution as, say, a dotted line, and the hypothetical distribution, say the normal curve, as a solid line. Alternatively, a quantile-by-quantile plot, such as a plot of quantiles of standard normal, forms a 45-degree line when the observed values are in conformity with the hypothetical distribution. From the SPSS menu, select Graphs, Q-Q or Graphs, P-P to obtain these graphs. The SPSS dialog box supports testing the following distributions: normal, exponential, Weibull, Pareto, lognormal, beta, gamma, logistic, Laplace, uniform, half-normal, chi-square, and Student t.

Bibliography
Massey, F. J. Jr. (1951). The Kolmogorov-Smirnov test of goodness of fit. Journal of the American Statistical Association, Vol. 46. The table of critical values of D is found on p. 70.

已有 1 人评分论坛币 收起 理由
bakoll + 10 热心帮助其他会员

总评分: 论坛币 + 10   查看全部评分

7
giancarlo 发表于 2011-1-27 09:37:03
找不出最大值和最小值

8
donlin2008 发表于 2011-2-2 00:58:33
excel很容易做到这点

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-1 14:58