こんにちは、みんな、
1. 与えられた平均値と 95% の信頼範囲からランダム データを生成できますか? たとえば、与えられた平均値 (50) と 95% 信頼区間 (45-56) を持つ 100 個のデータを生成する必要があります。
2. 別の方法では、平均値と標準偏差を使用してデータを生成できますが、標準偏差は 95% CI 範囲から計算できますか?
よろしく、
ヨゲシュル
なんだか奇妙に思えますが、何に必要なのかわかりません。
おそらくこれがこれを行う方法である可能性があります。JSL スクリプトを参照してください。
として@P_Bartelすでに指摘しましたが、必要な数値 (2 桁程度) を正確に表示するにはさらに多くの行が必要です。 そして、必要な値 (非対称性) を示すために分布を操作する必要があります。
ストレッチにより平均は 0.2 変化しましたが、これは考慮していませんでした...
もちろん、100 行だけを計算し、必要な正確な数値を取得する方法でそれらを操作することもできます...
または、ランダム シードを使用して、次回まったく同じ乱数を生成することもできます。
ご存知のように、JMP はすべてを行うことができます...コミュニティへようこそ。
幸運を。

Names Default To Here( 1 );
// Generate data with 95 % Confidence between 45 and 56 with mean of 50
//
// returns the probability that a normally distributed random variable is less than q (45)
Normal Distribution( 45, 50, 5 );
// 0.158655, i.e. roughly 15 % of values are below 45 for a normal distribution with Average=50 and sigma=5
// Returns the quantile from a Normal distribution, the value for which the probability is p that a random value would be lower
quantile = Normal Quantile( 0.025 );
// -1.959964, i.e. 2.5 % of the values are below -1.959964, or smaller than Average minus -1.959964*sigma
// we need this quantile and have the absolute difference 2.5 % left + 2.5 % right = 5 % out, i.e. 95 % in
sigma = Abs( (50 - 45) / quantile );
Normal Distribution( 45, 50, sigma );
// 0.025, this is what we want
// now we can generate a table with that distribution
// and will scale the upper half by 6/5 to have the probability of 55 at 56 in a second column value_rightstretched
dt = New Table( "random confidence 45 50 56 95%",
add rows( 1000000 ),
New Column( "value", set each value( Random Normal( 50, sigma ) ) , Set Property("Spec Limits", {LSL(45), USL(55), Target(50), Show Limits(1)}),),
New Column( "value_rightstretched", formula( If( :value > 50, (:value - 50) * 6 / 5 + 50, :value ) ) , Set Property("Spec Limits", {LSL(45), USL(56), Target(50), Show Limits(1)}),)
);
dt << Distribution(
Continuous Distribution(
Column( :value ),
Outlier Box Plot( 0 ),
Process Capability( Use Column Property Specs ),
Customize Summary Statistics( Set Alpha Level( 0.01 ) )
),
Continuous Distribution(
Column( :value_rightstretched ),
Outlier Box Plot( 0 ),
Process Capability( Use Column Property Specs ),
Customize Summary Statistics( Set Alpha Level( 0.01 ) )
)
);
ありがとう、私もグーグルでこれらを見ましたが、私にはうまくいきませんでした。
説明ありがとうございます。可能性が低いことは理解していますが、誰かが以前にそれを試したか、またはさらに使用できるデータを生成するための何らかのパスを提案しているかどうかを知りたいと思いました。
同意する@jthiのアイデアは、望ましい信頼水準を備えた母平均を求める標準偏差を逆算するというものです。 しかし、まだ途中までしか到達できません。 N = 100 に制限しているため、2 つの問題が発生します。 所定の平均と標準偏差を持つ正規分布に対して JMP の乱数ジェネレーターを実行するたびに、100 個の数値が得られます...しかし、平均と信頼区間は正確には希望どおりではありません...それに近いものになります。 ..しかし正確ではありません。 乱数発生器を再実行すると、別の答えが得られます。 したがって、正確にそこに到達することはできません。 私が見たもう1つの問題、そしておそらく私はここで文字通りすぎているだけです...しかし、あなたの元の投稿では、あなたが求める信頼区間は平均に関して対称ではありません...あなたの述べた平均= 50で、下限は45です、上限は56です。 繰り返しになりますが、標準的な母集団信頼区間法を使用して行うことはできません。