大家好,
我有一個 JMP 文件,其中包含兩個隨機變數的公式:「電壓」和「厚度」。
為了視覺化公式的統計分佈,我使用了 JMP 預測刻畫器。
我設法使用 JSL 命令創建了一個表,其中包含分析器運行的所有蒙特卡羅結果:
Simulate to Table
我的螢幕如下圖所示:

下一步,我想使用新表中的列進行一些自訂統計分析,使用圖片中開啟的相同腳本(例如評估公式列的平均值)。我現在就卡在這一步了,無法前進…
你有什麼想法嗎?
先感謝您,
標記
你好@mark_war ,
在不確切知道您想要執行和評估哪種統計資料的情況下,請參閱下面的範例,以了解如何修改程式碼以使其自動執行分析。
Names Default to Here(1);
Profiler(
Y( :Formula ),
Profiler(
1,
Term Value(
thickness(
2.9875,
Min( 2.30771982310094 ),
Max( 3.46241935483871 ),
Lock( 0 ),
Show( 1 )
),
Voltage(
1,
Min( 0.3584375 ),
Max( 1.59908333333333 ),
Lock( 0 ),
Show( 1 )
)
),
Simulator(
1,
Factors(
thickness << Random( Normal( 2.9875, 0.2 ) ),
Voltage << Random( Normal( 1, 0.2 ) )
),
Responses( Formula << No Noise ),
Resimulate,
Simulate to Table
)
),
SendToReport(
Dispatch(
{"Prediction Profiler"},
"10000",
ScaleBox,
{Min( -0.0325024497795198 ), Max( 0.801201923076923 ), Inc( 0.2 ),
Minor Ticks( 1 )}
),
Dispatch(
{"Prediction Profiler"},
"2",
ScaleBox,
{Min( 0.3584375 ), Max( 1.59908333333333 ), Inc( 0.2 ), Minor Ticks( 1 )
}
),
Dispatch(
{"Prediction Profiler"},
"1",
ScaleBox,
{Min( 2.30771982310094 ), Max( 3.46241935483871 ), Inc( 0.2 ),
Minor Ticks( 1 )}
),
Dispatch(
{"Prediction Profiler"},
"Profiler",
FrameBox,
{Frame Size( 134, 167 )}
),
Dispatch(
{"Prediction Profiler"},
"Profiler Simulator Distribution",
FrameBox,
{Frame Size( 124, 56 )}
),
Dispatch(
{"Prediction Profiler"},
"Profiler",
FrameBox( 3 ),
{Frame Size( 134, 167 )}
),
Dispatch(
{"Prediction Profiler"},
"Profiler Simulator Distribution",
FrameBox( 2 ),
{Frame Size( 124, 56 )}
),
Dispatch(
{"Prediction Profiler"},
"Profile Simulator Histogram",
FrameBox,
{Frame Size( 64, 157 ), DispatchSeg(
Hist Seg( 1 ),
{Fill Color( "Green" ), Bin Span( 2, 0 )}
)}
),
Dispatch(
{"Prediction Profiler", "Simulator"},
"Simulate to Table",
OutlineBox,
{Close( 0 )}
)
)
);
dtlist=get data table list();//this creates a list of all the open data tables.
dt=Data Table(dtlist[1]);//this assigns the top-most data table to the variable dt so that you can perform the statistics on this data table rather than the original data table
//this sends the command to the data table to generate some distributions.
dt<<DISTRIBUTION></DISTRIBUTION>這至少應該讓你開始。
希望這可以幫助!,
DS
列的散佈圖(圖形 > 散佈圖矩陣)對於此類分析非常有用。 您也可以為反應變數新增資料篩選器,以便可以根據規格範圍進行篩選。
如果您的分析目標是找到輸入變數的範圍,使您能夠滿足規範,您應該嘗試設計空間分析器(在分析器下),它旨在幫助您更自動地完成該任務。