# AI Data Analysis — worked reference

Fictional practice project: Brew & Bloom sample performance. These examples are teaching material, not evidence of learner competence or real client results.

Analyze a fictional café campaign dataset with a duplicate row and a missing value. Clean without inventing data, calculate counts and rates, choose an honest chart and write a bounded recommendation. The sample does not establish sales, causation or typical marketing performance.

## Approved facts

- Columns: postId, impressions, clicks.
- Duplicate post C03 appears twice; keep one after verifying identical values.
- C05 has missing impressions; preserve clicks but exclude it from rate calculations.
- C06 has zero impressions and zero clicks; its click rate is undefined.
- Rate = clicks ÷ impressions × 100 for positive known impressions.
- Do not average post rates to calculate an aggregate campaign rate.

## Source data

```csv
postId,impressions,clicks
C01,1000,20
C02,800,24
C03,2000,30
C03,2000,30
C04,500,15
C05,,7
C06,0,0
```

## 1. Cleaning log

### Task

Identify duplicate, missing and zero-denominator rows. State what each decision preserves.

### Worked output

Remove one identical C03 duplicate. Keep C05’s seven clicks in a separate missing-denominator note, not a fabricated rate. C06 rate is undefined. Eligible positive-denominator rows: C01–C04.

### Acceptance check

A missing value is not zero, and a zero denominator does not produce a 0% rate.

## 2. Verified calculations

### Task

Calculate eligible totals and weighted click rate. Check one row manually.

### Worked output

Eligible impressions: 1000+800+2000+500=4300. Eligible clicks: 20+24+30+15=89. Rate: 89/4300×100≈2.07%. C02: 24/800×100=3%. All unique known clicks total 96 including C05, but 96/4300 mixes incompatible coverage.

### Acceptance check

The numerator and denominator cover the same records.

## 3. Truthful chart

### Task

Compare count and rate views and explain the difference.

### Worked output

C03 has 30 clicks, the highest count. C02 and C04 each have 3%, the highest eligible rate. Use zero-based bars for counts and label undefined rates. A high rate on fewer impressions is not automatically the most valuable result.

### Acceptance check

Chart labels, units and exclusions are visible.

## 4. Analysis memo

### Task

Write one observation, one limitation and a testable next step.

### Worked output

Observation: C03 generated the most sample clicks; C02/C04 had higher rates. Limitation: posts differ in audience, timing and content, and no sales data exists. Next: compare two messages under more similar distribution and measure the same action.

### Acceptance check

Do not convert an uncontrolled comparison into a causal or revenue claim.

## 5. Analysis handoff

### Task

Deliver cleaned table, calculation notes, chart, memo and a revised conclusion after discovering the duplicate.

### Worked output

Initial unclean totals double-counted C03. Corrected rate uses 89 clicks and 4300 impressions. The handoff identifies excluded rows, definitions and the absence of sales evidence.

### Acceptance check

Someone else can reproduce the result from the raw rows.

## Decision practice

Can you use all 96 unique clicks over 4300 known impressions as the campaign rate?

- No; exclude C05 clicks from that rate because its impressions are missing. — A valid rate needs numerator and denominator from the same covered records. Report 89/4300≈2.07% for eligible rows and disclose the seven other clicks separately.
- Yes; clicks are always safe to include. — This misses a requirement in the brief. A valid rate needs numerator and denominator from the same covered records. Report 89/4300≈2.07% for eligible rows and disclose the seven other clicks separately.
- Replace the missing impressions with zero and calculate it. — This solves only part of the problem. A valid rate needs numerator and denominator from the same covered records. Report 89/4300≈2.07% for eligible rows and disclose the seven other clicks separately.

## Transfer challenge

If C05 later receives 700 verified impressions, recompute the eligible totals and rate. Explain how the cleaning log changes.

## Review rubric

Human review; pass mark 24/30. Completed fields are not a quality score.

### Complete, usable project (10 points)

9–10: all required artifacts form a coherent a café performance analysis; inputs and constraints match the brief. 5–8: usable work with specific omissions. 0–4: disconnected drafts or missing core deliverables.

### Evidence and course-specific quality (10 points)

9–10: the published stage checks are demonstrated in actual outputs, including: Do not convert an uncontrolled comparison into a causal or revenue claim. 5–8: minor documented gaps. 1–4: major untested assumptions. 0: fabricated evidence, unsupported factual claims or misrepresented deliverable type.

### Revision and transfer (5 points)

5: before/after revision explains an observable improvement and answers the transfer challenge with changed assumptions. 3–4: sound reasoning with one gap. 0–2: cosmetic edits, copied example without adaptation or unexplained decisions.

### Independent handoff (5 points)

5: editable sources, usable exports, source/permission log, tested access and a concise readme; simulation and pending external-tool checks clearly labeled. 3–4: small handoff gaps. 0–2: inaccessible files or claims of work not actually completed.

## Delivery readme template

- Artifact type and version:
- What is complete:
- What remains untested or requires external-tool access:
- Source and asset permissions:
- How to open/edit the work:
- Before/after revision and reason:
- Concept-project label:

External tools may have account, plan or regional restrictions. Use the explicitly labeled offline route when needed. A simulator, storyboard or specification is not a deployed workflow, rendered film or production website.
