top of page

Portfolio

I’m a firm believer that great things happen when curiosity meets hard work. Here, I’ve brought together projects that reflect my journey of learning, growing, and solving real-world challenges with data.

 /  Portfolio

 /  Fueling Costs in a Volatile World 

Fueling Costs in a Volatile World: How Exchange Rates Impact Gas Prices in Canada

Github's repository:

As someone passionate about forex and financial markets, I’ve always been curious how currency fluctuations affect everyday expenses. Living in Canada, one of the most visible and impactful costs is fuel.

​

This project combines my interest in data analysis and macro trends with a real-world issue: how changes in USD/CAD and CNY/CAD influence gasoline prices across Canadian provinces. It allowed me to turn public data into insights that matter to both individuals and businesses.

​

 Link to the datasets:

RESEARCH QUESTIONS:

  1. Which provinces pay the most for fuel on average?
    → Understand regional disparities in gasoline costs.
     

  2. Does a weaker Canadian dollar correlate with higher fuel prices?
    → Evaluate the macroeconomic influence of USD/CAD volatility.
     

  3. Which provinces are most sensitive to exchange rate changes?
    → Reveal areas most impacted by currency-driven cost increases.

TOOLS USED:

​

- PostgreSQL + pgAdmin – for storage, querying, and data wrangling

 

- SQL – for table creation, joins, views, correlation, and aggregation

​

- Excel – for plotting or visual enhancements

 

- Bank of Canada – source of daily forex rates

 

- Statistics Canada – source of monthly gas prices

STEP-BY-STEP SQL WORKFLOW

After having a look at the datasets on Excel and cleaned them a bit, now is the time to load them into SQL.

​

Then, we found out our forex_rates dataset is daily, but fuel prices are monthly. So we aggregated daily rates into monthly averages:

​

Screenshot 2025-04-17 at 12.38.08 AM.png

DATE_TRUNC('month', date) removes the day so we can group by month.
AVG() calculates the monthly average rate for each currency.

 

Interpretation:
This lets us compare monthly fuel prices directly with monthly average exchange rates.

We then created a combined view

Screenshot 2025-04-17 at 12.41.27 AM.png

This combines both tables so we can analyze fuel cost + exchange rate in the same row.

Screenshot 2025-04-17 at 12.43.26 AM.png

INSIGHTS FROM THE DATA

Insights 1 - Most Expensive Provinces on Average:

​

Screenshot 2025-04-17 at 12.47.02 AM.png
Screenshot 2025-04-17 at 12.48.49 AM.png

Interpretation:

This tells us the average fuel price in each Canadian province over the last 8 years.
British Columbia and Newfoundland are the most expensive places to buy gas.
That’s likely due to a mix of higher fuel taxes, more remote infrastructure, and transportation costs.
This is important for delivery companies, government policy makers, and anyone managing fuel budgets across provinces.

​

Insights 2 - Do Exchange Rates Drive Fuel Prices?

​

Screenshot 2025-04-17 at 12.51.12 AM.png
Screenshot 2025-04-17 at 12.54.03 AM.png

Interpretation:

This query compares monthly fuel prices with the monthly exchange rate between the US dollar and the Canadian dollar (USD/CAD).
The trend shows that when the Canadian dollar is weaker (higher USD/CAD), fuel prices tend to go up.
That makes sense because oil is priced globally in USD and if CAD loses value, we pay more.
This is useful for any business that relies on fuel costs, like airlines, truck fleets, and even public transit budgeting.

​

Insights 3 - Which Provinces Are Most Sensitive?

Screenshot 2025-04-17 at 12.56.37 AM.png

Interpretation:

This query calculates how closely fuel prices move in sync with exchange rates.
A high correlation means: when the dollar gets weaker, fuel prices in that province almost always go up.
Ontario and British Columbia had the strongest link to exchange rate volatility.
That tells us people in those provinces are more sensitive to global pricing pressures, and may benefit from targeted policies or fuel hedging strategies.

​

Screenshot 2025-04-17 at 12.58.07 AM.png

The project ends here. You can view the materials in this project on: Github

To check my other projects: Portfolio

bottom of page