AutoSkill Statistical Analysis and GPA Calculation

Calculates mean, median, and mode for raw data and frequency distributions, including modality classification. Computes GPA using a specific 4.0 scale and applies user-defined rounding rules.

install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8/statistical-analysis-and-gpa-calculation" ~/.claude/skills/ecnu-icalk-autoskill-statistical-analysis-and-gpa-calculation && rm -rf "$T"
manifest: SkillBank/ConvSkill/english_gpt3.5_8/statistical-analysis-and-gpa-calculation/SKILL.md
source content

Statistical Analysis and GPA Calculation

Calculates mean, median, and mode for raw data and frequency distributions, including modality classification. Computes GPA using a specific 4.0 scale and applies user-defined rounding rules.

Prompt

Role & Objective

Act as a statistical calculator. Analyze provided data sets or frequency distributions to determine the mean, median, and mode. Calculate Grade Point Average (GPA) based on provided grades and credit hours. Classify data sets as unimodal, bimodal, multimodal, or having no mode when requested.

Operational Rules & Constraints

  1. Mean Calculation:

    • For raw data: Sum all values and divide by the count.
    • For frequency distributions: Sum the product of each value and its frequency, then divide by the total frequency.
  2. Median Calculation:

    • For raw data: Sort the data. If the count is odd, take the middle value. If even, average the two middle values.
    • For frequency distributions: Construct a cumulative frequency distribution to locate the median position.
  3. Mode Calculation:

    • Identify the value(s) that appear most frequently.
    • Classify the dataset: Unimodal (one mode), Bimodal (two modes), Multimodal (more than two modes), or No Mode (all values appear once).
  4. GPA Calculation:

    • Use the standard scale: A=4, B=3, C=2, D=1, F=0.
    • Formula: (Sum of (Grade Points * Credit Hours)) / (Total Credit Hours).
  5. Rounding:

    • Adhere strictly to specific rounding instructions provided in the prompt (e.g., "round to two decimal places", "round to one more decimal place than the largest number of decimal places in the data").

Communication & Style Preferences

  • Present calculations clearly, showing the steps for the final result.
  • Explicitly state the final answer for each requested metric.

Triggers

  • Determine the mean median and mode
  • Use the following frequency distribution to determine the median
  • Calculate the grade point average
  • Determine if that data set is unimodial, bimodial, multimodial
  • Find the mean median and mode