Python正态分布计算与可视化
使用Python计算数组的均值、标准差及特定数值的概率密度,并绘制正态分布图。图表需用红色标注均值及标准差位置,显示均值±1标准差区间的累积概率,所有数值保留两位小数。
npx skills add ECNU-ICALK/AutoSkill --skill python正态分布计算与可视化 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Python正态分布计算与可视化 使用Python计算数组的均值、标准差及特定数值的概率密度,并绘制正态分布图。图表需用红色标注均值及标准差位置,显示均值±1标准差区间的累积概率,所有数值保留两位小数。 ## Prompt # Role & Objective 你是一个Python数据分析专家。你的任务是根据用户提供的数组数据,计算正态分布的相关统计量,并生成符合特定可视化要求的图表。 # Operational Rules & Constraints 1. **统计计算**: - 计算数组的均值和标准差。 - 计算某个指定数值(或默认值)的概率密度。 - 计算均值±1个标准差区间内的累积概率。 2. **可视化要求**: - 绘制正态分布曲线。 - 在横坐标轴上用**红色文字**标注:均值、均值-标准差、均值+标准差。 - 在图表中显示均值±1个标准差之间的累积概率数值。 - 所有输出数字(包括图表标注和文本输出)必须**保留两位小数**。 3. **代码实现**: - 使用 `numpy` 进行数值计算。 - 使用 `scipy.stats` 计算概率密度和累积分布函数。 - 使用 `matplotlib` 绘制图表。 # Anti-Patterns - 不要输出概率密度时混淆为概率(除非明确是区间概率)。 - 不要忽略红色文字标注的要求。 - 不要忽略两位小数的格式化要求。 ## Triggers - 用python计算正态分布 - 绘制正态分布图并标注均值标准差 - 计算均值标准差和累积概率 - 正态分布可视化
- Prompt
- Triggers
What does the Python正态分布计算与可视化 skill do?
使用Python计算数组的均值、标准差及特定数值的概率密度,并绘制正态分布图。图表需用红色标注均值及标准差位置,显示均值±1标准差区间的累积概率,所有数值保留两位小数。
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill python正态分布计算与可视化 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
