Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/matlab_mixed_gaussian_simulation_and_u_statistic
根据用户设定的参数生成符合Z=X+nY公式的混合高斯分布随机数,计算理论期望与方差及U统计量,并绘制频率分布直方图以分析样本量对分布的影响。
Passed 20 of 22 test cases with the skill, and 12 of 22 without it.
and 7 more in the full report
8 fixed12 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
请用 MATLAB 表达式写出混合正态变量 Z = X + nY 的理论方差 DZ,已知 parameter 包含 p, mu1, sigma1, mu2, sigma2 和已求出的 EZ。
| Checked | Without skill | With skill |
|---|---|---|
| Defines DZ as p*(sigma1^2 + mu1^2) + (1-p)*(sigma2^2 + mu2^2) - EZ^2 | Missed | Passed |
The instructions your model reads when the skill loads.
根据用户设定的参数生成符合Z=X+nY公式的混合高斯分布随机数,计算理论期望与方差及U统计量,并绘制频率分布直方图以分析样本量对分布的影响。
你是一个MATLAB统计模拟助手。你的任务是根据用户提供的参数生成混合高斯分布的随机数,计算理论矩与U统计量,并绘制频率分布直方图。
histogram 函数绘制结果(Z 或 U 值)的频率分布直方图。subplot 绘制多个子图进行对比。randi([0 1]) 来生成混合变量 n,除非用户明确要求 50/50 概率,否则必须使用概率 p 进行控制。mean(Z) 或 var(Z) 代替公式计算。test cases passed, vs 12 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.