Using AI and ML for FP&A Forecasts

Using AI and ML for FP&A Forecasts

Hi,

Today, I want to double-click on how to use AI and ML to produce forecasts in FP&A.

With a real example.

That you can follow and use your own data on it afterwards.

Imagine you have to forecast revenue for your company.

And you need to leverage BIG DATA to do the forecast.

So basically a gigantic Excel file that crashes all the time.

But it does have the data you need.

Revenue, Expenses, Profits, Headcount, you name it!

So how to use AI for this?

Instead of using Excel to do your forecast, you will leverage Python and Prophet.

We have talked about Python, but if you don't know about it, read this first.

https://www.dhirubhai.net/posts/christianmartinezthefinancialfox_do-you-want-to-learn-python-for-fpa-but-activity-7205824139633246208-kAeH?utm_source=share&utm_medium=member_desktop

But what is Prophet.

Prophet is a powerful forecasting tool developed by Facebook.

It is designed to handle time series data, which is data that changes over time.

Prophet is particularly good at identifying patterns in your data and making accurate predictions. It is user-friendly and does not require deep expertise in statistics or machine learning to use effectively.

This below is an image of a revenue forecast created by prophet.

Revenue Forecast in Python

How Does Prophet Work?

Prophet breaks down your time series data into three main components:

  1. Trend: The long-term increase or decrease in your data. For example, revenue might generally increase over several years.
  2. Seasonality: Repeating patterns in your data. For example, you might see higher sales every December.
  3. Holidays/Events: Special events that can affect your data. For example, a product launch or a marketing campaign might cause a spike in sales.

Implementing Prophet in Python

Here’s a step-by-step guide to use Prophet for forecasting your revenue:

  1. Prepare Your Data: Collect and organize your historical revenue data. Ensure it has a date column and a revenue column. Clean the data to remove any inconsistencies or missing values.
  2. Fit the Model: Use Prophet to fit a model to your historical data. Prophet will capture both the overall growth trend and any seasonal patterns. I have prepared this Google Colab notebook so you can just use this code.
  3. Make Predictions: Once the model is fitted, you can use it to predict the revenue for the next year. Prophet will provide not only the forecasted revenue but also the range of uncertainty. And yes, you can download this forecast to Excel! (In the notebook I have added code for this)

Why Use Prophet?

By using Prophet, you can make more informed decisions in your financial planning.

This helps your company allocate resources effectively, anticipate future performance, and respond to potential risks and opportunities.

For example, if you have monthly revenue data for the past five years, you can use Prophet to fit a model to this data, capturing both the overall growth trend and seasonal spikes (like higher sales in December).

Once the model is fitted, you can predict the revenue for the next year, giving you an idea of expected sales and the range of uncertainty.

PS: In this example we have used Google Colab to run Python code but also Microsoft has announced the integration of Python within Excel!

So now it's time for us finance professionals to learn how to leverage this integration for data analytics, automation, and other ways to improve our work.

I partnered up with LinkedIn Learning and created this course about how to use Python in Excel!

You'll learn how to:

  • Integrate Python with Excel for data manipulation, analysis, and reporting.
  • Implement financial models and conduct data analyses.
  • Automate repetitive tasks, enhancing efficiency.

Thanks for reading!

Christian Martinez



Bjorn Huizer

Controller & FP&A Specialist (a.i.)

2 个月

Prophet Excel

回复
Travis Corgey

Vice President of Finance, Data, and AI Strategy

2 个月

Prophet Excel

回复
Renan Cunha

Senior Project & Portfolio Manager | Digital Transformation & Agile Leader | Efficiency & Growth Strategist | Black Belt | PMP | Lean Six Sigma Expert

2 个月

Profhet Excel.

回复
Mohamed Vaseemuddin

I help Clients achieve business goals by harnessing the power of data and people analytics

2 个月

Prophet Excel

Navnath Lipne

Senior Associate

2 个月

Prophet Excel

要查看或添加评论,请登录

Christian M.的更多文章

  • Building an AI Agent in 7 Steps

    Building an AI Agent in 7 Steps

    Many finance and FP&A teams are looking to integrate AI and AI Agents to automate workflows, enhance forecasting, and…

    4 条评论
  • Master AI for Finance in 2025

    Master AI for Finance in 2025

    Many finance and FP&A teams want to leverage AI and AI agents to transform their workflows in 2025. The promise is…

    5 条评论
  • Six Ways to use AI and Data Analytics in Finance

    Six Ways to use AI and Data Analytics in Finance

    AI is being utilized everywhere. And Finance and FP&A are no exception.

    9 条评论
  • How to Tackle the 4 Key ChatGPT Limitations for FP&A?

    How to Tackle the 4 Key ChatGPT Limitations for FP&A?

    Hi everyone! On this edition I will show you how to tackle the 4 Key ChatGPT Limitations for FP&A. Let's start with…

    5 条评论
  • How to use ChatGPT in FP&A with Data Privacy?

    How to use ChatGPT in FP&A with Data Privacy?

    Hi! Today, I want to bring you 2 ways to use ChatGPT with enhanced data security and data privacy. Why? Because FP&A…

    3 条评论
  • SpreadsheetLLM: An AI designed to work with Excel

    SpreadsheetLLM: An AI designed to work with Excel

    Hi! Today, I want to introduce you to SpreadsheetLLM - a Microsoft backed project that substantially leverage LLMs for…

    7 条评论
  • How to Use ChatGPT for Financial Forecasting

    How to Use ChatGPT for Financial Forecasting

    Hi! Today, I want to bring you a way to use ChatGPT for Financial Forecasting. Why? Because FP&A teams always need to…

    11 条评论
  • Unlocking AI in FP&A

    Unlocking AI in FP&A

    Welcome to the first edition of "AI for FP&A and Finance"! This week, I'll cover three exciting topics that will help…

    15 条评论
  • How can Machine Learning improve Manufacturing? (1/2)

    How can Machine Learning improve Manufacturing? (1/2)

    Major companies around the world including General Electric (GE), Siemens, Intel, Bosch, NVIDIA and Microsoft are…

    1 条评论
  • How did I learn #machine learning? Part 1: Advanced Statistics

    How did I learn #machine learning? Part 1: Advanced Statistics

    When I first discovered the topic of #MachineLearning I was very excited about all the use cases and possible…

社区洞察

其他会员也浏览了