Theme 2: exploratory analysis and evaluation

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/7

encourage image

There's no tags or description

Looks like no tags are added yet.

8 Terms

1
New cards

Choose one plot or summary statistic from your EDA. Explain the course concept it illustrates and how it informed your research question or analysis.

  • EDA: our histogram of perfume prices

  • course concept it illustrates: skewed data

    • most perfumes are cheap, but a few cost around $400

    • average price is $76 while the middle price is only $60

    • skewness of 2.22 shows a long tail on the expensive side

  • problem: expensive perfumes create errors that pull the fitted line toward them, which isn’t good for linear regression

  • solution: took the log of price

    • log of price shrinks large values more than small ones

    • skewness went down to -0.20 and is nearly balanced

    • results now read as percentages, so we can say that a parfum costs about 3x as much as EDT


2
New cards

why did you take log of price instead of removing outliers?

  • the expensive perfumes are still real prices, not errors

  • removing them would throw away important data for hypothesis 2, where high-concentration perfumes might be more expensive

  • logging price:

    • keeps every perfume but prevents expensive ones from dominating

    • matches how prices work, but in percentages


3
New cards

Describe an EDA that helped you assess data quality or an analysis assumption. Explain what you found and how it affected your analysis.

  • EDA: residual plot for the first model, which shows how far off each prediction was

  • helped us determine that the review box often shows brand rating, not the individual perfume’s

    • had strange vertical columns of perfumes with identical ratings and review counts

    • looking closer, 50% of perfumes shared ratings with another perfume of the same brand

  • how it affected our results:

    • among perfumes with their own rating, each extra star was associated with about 25% higher prices

    • within the same brand, there was a smaller and less significant effect

    • we kept our planned test as the official result, but explain the “no effect” finding as a measurement problem

    • we treat the 25% finding as a lead, not as proof


4
New cards

why didn’t we keep the perfumes with their own rating only?

  • that group of perfumes has different characteristics from the rest of the data

    • one of the brands with the rating problem was particularly cheap and consisted of 70 perfumes

  • switching tests after seeing results would be p-hacking


5
New cards

Choose one model used in your project. Compare it with a reasonable alternative, such as a simpler model or a different choice of predictors, and explain why your chosen model fits your research question and data.

  • for hypothesis 2, we compared a simple model to a complex one

    • simple model: served as a baseline, where concentration raises price the same way for every family

    • complex model: added six interaction terms, where each scent family has its own price jump at each strength

  • our comparison found:

    • extra terms didn’t improve the fit more than a random variation in prices

    • meaning the second model didn’t improve the fit

    • both models predicted equally well when we tested them on unseen perfumes (cross-validation)

  • outcome: chose the simpler model, because…

    • the second model didn’t show a real pattern, and only fit noise

    • our line graph comparing average log price to perfume strength with one line per scent family rose in parallel, which supports our simple model

  • caveat: only about 30 perfumes were in the strongest tier (parfum)

    • decided to run a two-tier test (EDT/cologne vs EDP or stronger)

    • test results weren’t significant


6
New cards

why perform cross-validation for hypothesis 2?

  • the F-test only uses training data, the same perfumes the model was built on

  • a model always looks better on its own training data, because it can fit random noise there

  • cross-validation is a fairer check since it tests each model on unseen perfumes


7
New cards

Describe one decision after Phase 2 to change or retain your data. What evidence informed that decision, and how did it affect your analysis?

  • TA comment: testing hypothesis needs enough perfumes in every combination of scent family and concentration

    • we found that many combinations were nearly empty (such as zero woody and earthy extraits)

    • so, we grouped the concentration labels into three tiers by oil content (EDT/cologne, EDP, and parfum/extrait)

    • we also tested with two tiers since the top tier didn’t have that many perfumes, but there was little difference

  • outcome: made analysis possible and gave a clear result

    • example: found that a parfum costs about 3x as much as an EDT


8
New cards

what did you keep after phase 2?

  • all 980 perfumes from the hypothesis 1 test

  • ensures it matches our preregistration exactly