Walmart store data · 10 stores × 52 weeks · 520 rows
Ten-Store Revenue Review
Five questions from the practice set, answered from the Walmart_store_data sheet. Every figure below was computed from the raw weekly rows.
Top store, annual revenueWLMRT001 · $7,787,069San Francisco, 59% above the next store
Revenue vs customer visitsr = 0.82 · strong positiveThe only strong relationship in the dataset
Extreme weatherNo measurable effectWithin each store, weather explains nothing (p = 0.96)
Inventory turnoverHigh: Miami 1.56 · Low: New York 1.38Spread is small and not statistically significant
Question 1
Weekly revenue by store
Selected storeAverage of the other 9 storesEach other store
- No seasonality. Quarterly averages sit within a narrow band ($93.9K, $97.3K, $98.2K, $97.1K per store-week). There is no Q4 holiday lift and no meaningful trend (slope +$920/week for the whole chain, p = 0.15). Week-to-week changes look random (lag-1 autocorrelation −0.01).
- San Francisco is in a league of its own. It averages $150K a week while the other nine cluster at $85K to $94K. It is also far steadier: its weeks vary by about 6% around its average, versus roughly 25% for every other store.
- The other nine are interchangeable. Their lines overlap constantly, and the ranking among them changes almost every week.
For a real retailer, a flat December would be a red flag. Here it suggests the data was generated without a seasonal pattern, so it is not a basis for planning holiday staffing or stock.
Question 2
Total annual revenue by store
WLMRT001 (San Francisco, CA) recorded the highest total: $7,787,068.70 over 52 weeks, 15.5% of the chain's $50.2M. The gap comes from traffic, not basket size: San Francisco averages 2,021 visits a week against about 1,250 elsewhere, while revenue per visit is similar everywhere ($73 to $79).
Question 3
Correlation heatmap
−1+1
Weekly revenue and customer visits: r = 0.82, a strong positive correlation (p < 0.001, n = 520). More visits go with more revenue, and visits alone account for about two-thirds of the variation in weekly revenue (r² = 0.66). Within individual stores it holds at 0.69 to 0.82, except San Francisco (0.33), whose revenue barely moves week to week.
Every other pair is near zero. Stock levels, turnover, overstock and stockouts have no linear relationship with revenue or with each other.
Question 4
Revenue under different weather
Bar: average weekly revenue versus that store's own yearly average
- The raw numbers mislead. Comparing averages directly, "Foggy" weeks bring in $152K and "Clear" weeks $86K, which looks highly significant (p < 0.001). But only San Francisco ever records fog. The weather label is just standing in for the store.
- Compared against each store's own average, weather has no effect. Nearly every condition lands within about ±5% of normal, and the differences are statistically indistinguishable from noise (p = 0.96). "Very Hot" (+8%) is the largest gap, based on 12 weeks.
- Temperature doesn't matter either. Weeks that were unusually hot or cold for each city show −2% revenue on average, not significant (p = 0.46).
The sheet has no rainfall or snow columns, only a weather label and a temperature. The labels are also unreliable: Chicago's "Cold" weeks range up to 21°C and Phoenix's "Very Hot" weeks go as low as 20°C. That weakens any weather conclusion from this file.
Question 5
Inventory turnover rate by store
HighestLowest
Highest: WLMRT009 Miami, FL at 1.56. Lowest: WLMRT002 New York, NY at 1.38 (average of the 52 weekly turnover rates). Phoenix (1.556) is effectively tied with Miami.
The whole range is only 0.18, and each store's weekly rate swings from about 0.5 to 2.5. A test across stores finds no real difference (p = 0.78). Turnover is also unrelated to revenue: San Francisco, the top earner, ranks 8th.