大家好,
我有一个 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
列的散点图(图形 > 散点图矩阵)对于此类分析非常有用。 您还可以为响应变量添加数据过滤器,以便可以根据规格范围进行过滤。
如果您的分析目标是找到输入变量的范围,使您能够满足规范,您应该尝试设计空间分析器(在分析器下),它旨在帮助您更自动地完成该任务。