<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.0">Jekyll</generator><link href="https://searoving.github.io/Marketing-Mix-Model/feed.xml" rel="self" type="application/atom+xml" /><link href="https://searoving.github.io/Marketing-Mix-Model/" rel="alternate" type="text/html" /><updated>2020-11-02T04:22:47+00:00</updated><id>https://searoving.github.io/Marketing-Mix-Model/feed.xml</id><title type="html">Marketing Mix Model</title><subtitle>This is a bootcamp business project focusing on marketing budget allocation and sales prediction by building a marketing mix model.</subtitle><entry><title type="html">Spend Optimization Using Excel Solver</title><link href="https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/14/spend-optimization-using-excel-solver.html" rel="alternate" type="text/html" title="Spend Optimization Using Excel Solver" /><published>2020-07-14T07:41:00+00:00</published><updated>2020-07-14T07:41:00+00:00</updated><id>https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/14/spend-optimization-using-excel-solver</id><content type="html" xml:base="https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/14/spend-optimization-using-excel-solver.html">&lt;p&gt;In order to optimize the original spend to maximize the total revenue for the next year, I used excel solver to solve this problem. When constructing a solver model, there were three steps to conduct:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Specify the model objective.&lt;/strong&gt;&lt;br /&gt;
This is a measure of the performance of the model that is to be minimized or maximized. In this project, the optimized revenue should be the objective and maximized.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Specify the model variables.&lt;/strong&gt;&lt;br /&gt;
These variables are the components of the model that are to be optimized. In this project, the variables should be the media channe spend.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Specify the model constraints.&lt;/strong&gt;&lt;br /&gt;
These are the functions that describe the relationships among the variables and that define the allowable values for the variables. In this project, I set the constaints as “original spend * 0.8 &amp;lt;= optimized spend &amp;lt;= original spend * 1.2”.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is the snapshot of my Solver work in Excel:&lt;br /&gt;
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/solver_snapshot.png&quot; alt=&quot;solver_snapshot&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/solution_snapshot.png&quot; alt=&quot;solution_snapshot&quot; /&gt;&lt;/p&gt;

&lt;p&gt;A you can see, the optimized spend is within the given minimum and maximum.&lt;/p&gt;

&lt;p&gt;This is a comparison of the original spend and optimized spend:&lt;br /&gt;
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/spend_comparison_snapshot.png&quot; alt=&quot;spend_comparison_snapshot&quot; /&gt;&lt;/p&gt;

&lt;p&gt;But what is the ROI of the optimized media channel spend? See the picture below:&lt;br /&gt;
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/ROI_comparison_snapshot.png&quot; alt=&quot;ROI_comparison_snapshot&quot; /&gt;&lt;br /&gt;
The ROI after spend optimization is better!&lt;/p&gt;</content><author><name></name></author><category term="jekyll" /><category term="update" /><summary type="html">In order to optimize the original spend to maximize the total revenue for the next year, I used excel solver to solve this problem. When constructing a solver model, there were three steps to conduct: Specify the model objective. This is a measure of the performance of the model that is to be minimized or maximized. In this project, the optimized revenue should be the objective and maximized. Specify the model variables. These variables are the components of the model that are to be optimized. In this project, the variables should be the media channe spend. Specify the model constraints. These are the functions that describe the relationships among the variables and that define the allowable values for the variables. In this project, I set the constaints as “original spend * 0.8 &amp;lt;= optimized spend &amp;lt;= original spend * 1.2”. This is the snapshot of my Solver work in Excel:</summary></entry><entry><title type="html">Model Results and Visualization in R and Tableau</title><link href="https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/13/model-results-and-visualization-in-R-and-Tableau.html" rel="alternate" type="text/html" title="Model Results and Visualization in R and Tableau" /><published>2020-07-13T10:49:00+00:00</published><updated>2020-07-13T10:49:00+00:00</updated><id>https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/13/model-results-and-visualization-in-R-and-Tableau</id><content type="html" xml:base="https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/13/model-results-and-visualization-in-R-and-Tableau.html">&lt;p&gt;Although the R-squared and MAPE of the final model is good, we still have to check for business sense. In this phase, I visualized the output of the final model in Tableau and check it using my business sense because the mdoel has to align with the real business.&lt;/p&gt;

&lt;h2 id=&quot;prepare-data-for-visualization&quot;&gt;Prepare data for visualization&lt;/h2&gt;
&lt;p&gt;I created two new files in R using the model outputs. Both of them are used for checking business logic of the model in &lt;strong&gt;Tableau&lt;/strong&gt;.&lt;/p&gt;
&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;#contribution&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;final_model&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Sales&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;black_friday&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;july4th&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;CCI&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sales_event&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;comp_media_spend&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;national_tv2&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;paid_search1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;wechat1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;magazine1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;display1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;facebook2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;TRUE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;contribution&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;model&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%*%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;diag&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;model&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coefficients&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;contribution&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;as.data.frame&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;contribution&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;contribution&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Period&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MMM&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Period&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;colnames&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;contribution&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;names&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;model&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coefficients&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Period&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;contri&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;melt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;contribution&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;id.vars&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Period&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;measure.vars&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;names&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;model&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coefficients&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;write.csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;contri&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;contribution.csv&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;row.names&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;FALSE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#actual vs model sales&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;AVM&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cbind&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MMM&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Period&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Sales&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)],&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;model&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fitted.values&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;colnames&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;AVM&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Period&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Sales&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Model Sales&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;write.csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;AVM&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;AVM.csv&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;row.names&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;FALSE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;visualization-in-tableau&quot;&gt;Visualization in Tableau&lt;/h2&gt;
&lt;p&gt;I used “activity_and_spend_in_the_past_four_years.csv”, “AVM.csv” and “contribution.csv” in Tableau to visualize the output of my model. The visualization focused on several aspects:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;AVM&lt;/strong&gt;, which is the grahic showing the comparison of actual sales and model sales.&lt;br /&gt;
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/AVM_snapshot.png&quot; alt=&quot;AVM_snapshot&quot; /&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Decomposition of sales&lt;/strong&gt;, that is, the contribution of different independent variables to the sales.&lt;br /&gt;
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/contribution_snapshot.png&quot; alt=&quot;contribution_snapshot&quot; /&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Effectiveness&lt;/strong&gt;, which is calculated by dividing contribution of a media variable by its total activities.&lt;br /&gt;
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/effectiveness_snapshot.png&quot; alt=&quot;effectiveness_snapshot&quot; /&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Efficiency&lt;/strong&gt;, which is calculated by dividing contribution of a media variable by its spend.&lt;br /&gt;
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/efficiency_snapshot.png&quot; alt=&quot;efficiency_snapshot&quot; /&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;ROI&lt;/strong&gt;, which is calculated by dividing a media’s incremental margin dollars (the gross profit) by its spend yields Marketing Return on Investment.&lt;br /&gt;
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/ROI_snapshot.png&quot; alt=&quot;ROI_snapshot&quot; /&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After I modified my model again and again by chaecking for my business sense through the visualization in Tableau, I started to optimized the original spend for the next year that our client gave us in advance (see next post).&lt;/p&gt;</content><author><name></name></author><category term="jekyll" /><category term="update" /><summary type="html">Although the R-squared and MAPE of the final model is good, we still have to check for business sense. In this phase, I visualized the output of the final model in Tableau and check it using my business sense because the mdoel has to align with the real business.</summary></entry><entry><title type="html">Modeling in R</title><link href="https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/13/modeling-in-R.html" rel="alternate" type="text/html" title="Modeling in R" /><published>2020-07-13T00:55:00+00:00</published><updated>2020-07-13T00:55:00+00:00</updated><id>https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/13/modeling-in-R</id><content type="html" xml:base="https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/13/modeling-in-R.html">&lt;p&gt;Last time, I talked about the media variable transformariton. Ten sets of tranformation data of lag, decay and alpha was already set up. So the next step was to put all the variables we chose put into model and test them one by one until we got the final model that we think was the best one (the transformed dataset was named mmm_transformed).&lt;/p&gt;

&lt;h2 id=&quot;create-dummy-variables&quot;&gt;Create dummy variables&lt;/h2&gt;
&lt;p&gt;In exploration analysis phase, I found the seasonality pattern of the data. There were two spikes per year occuring on &lt;strong&gt;July 4th&lt;/strong&gt; and &lt;strong&gt;Black Friday&lt;/strong&gt;. So before building model, I created the two dummy variables first.&lt;/p&gt;
&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;black_friday&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;which&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Period&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;2014-11-24&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;black_friday&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;which&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Period&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;2015-11-30&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Black_Friday&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;which&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Period&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;2016-11-28&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Black_Friday&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;which&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Period&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;2017-11-27&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Black_Friday&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;july4th&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;which&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Period&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;2014-07-07&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;july4th&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;which&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Period&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;2015-07-06&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;july4th&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;which&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Period&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;2016-07-04&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;july4th&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;which&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Period&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;2017-07-03&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;july4th&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;variable-selection&quot;&gt;Variable selection&lt;/h2&gt;
&lt;p&gt;In this process, I put candidated variables into the model one by one, and selected those for final model according to several principles:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;P value is as small as possible (significance level is 0.05).&lt;/li&gt;
  &lt;li&gt;T value is as big as possible (at least &amp;gt; 1).&lt;/li&gt;
  &lt;li&gt;VIF &amp;lt; 6.&lt;/li&gt;
  &lt;li&gt;Adjusted R-squared is as big as possible.&lt;br /&gt;
These principles were used collectively.&lt;br /&gt;
Through the selection process, I got my final model:
    &lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;final_model&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Sales&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;black_friday&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;july4th&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;CCI&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sales_event&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;comp_media_spend&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;national_tv2&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;paid_search1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;wechat1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;magazine1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;display1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;facebook2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mmm_transformed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
    &lt;p&gt;The summary of the final model is:&lt;br /&gt;
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/final_model_snapshot.png&quot; alt=&quot;final_model_snapshot&quot; /&gt;&lt;br /&gt;
The R-squared is very close to 1.&lt;br /&gt;
And the MAPE:&lt;/p&gt;
    &lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;MAPE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;y_pred&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;model&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fitted.values&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;y_true&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MMM&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Sales&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
    &lt;p&gt;The calculated MAPE is 0.008.&lt;br /&gt;
So maybe it’s a good model.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;</content><author><name></name></author><category term="jekyll" /><category term="update" /><summary type="html">Last time, I talked about the media variable transformariton. Ten sets of tranformation data of lag, decay and alpha was already set up. So the next step was to put all the variables we chose put into model and test them one by one until we got the final model that we think was the best one (the transformed dataset was named mmm_transformed).</summary></entry><entry><title type="html">Media Vriable Transformation in Excel</title><link href="https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/12/media-variable-transformation-in-excel.html" rel="alternate" type="text/html" title="Media Vriable Transformation in Excel" /><published>2020-07-12T23:43:00+00:00</published><updated>2020-07-12T23:43:00+00:00</updated><id>https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/12/media-variable-transformation-in-excel</id><content type="html" xml:base="https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/12/media-variable-transformation-in-excel.html">&lt;p&gt;Certain variables don’t have a linear relationship with sales. For example, TV GRPs usually have a nonlinear relationship with sales. Increase in TV GRP would increase the sales only to a certain extent, post which the growth would be saturated.&lt;/p&gt;

&lt;p&gt;I considered three applications of data transformaiton in this project:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Lag effect.&lt;/strong&gt; Lag transformation is used when we assume that marketing activities have a delayed impact on consumer behavior.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Adstock effect.&lt;/strong&gt; This is the degree to which marketing activities have impact on periods after the ad took place. There are two practical fomular we can use to do adstock transformation. The one I chose is “A_t = (A_t&lt;em&gt;Adstock + A_(t-1)&lt;/em&gt;Retention)”.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Response curve.&lt;/strong&gt; How sales is responding to the level of a media activities - which speaks to saturation levels and whether consumers reponse is diminishing, knowing the shape of the media response curve can help with the optimization of media flighting.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I devised ten sets of transformation in this project, and tested them one by one when later choosing variables for final model in R. This is the snapshot of the transformation work that I did in excel:&lt;br /&gt;
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/trans_snapshot.png&quot; alt=&quot;trans_snapshot&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Next step is to build model in R (see next post).&lt;/p&gt;</content><author><name></name></author><category term="jekyll" /><category term="update" /><summary type="html">Certain variables don’t have a linear relationship with sales. For example, TV GRPs usually have a nonlinear relationship with sales. Increase in TV GRP would increase the sales only to a certain extent, post which the growth would be saturated.</summary></entry><entry><title type="html">Exploration Analysis in R</title><link href="https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/12/exploration-analysis-in-r.html" rel="alternate" type="text/html" title="Exploration Analysis in R" /><published>2020-07-12T21:30:00+00:00</published><updated>2020-07-12T21:30:00+00:00</updated><id>https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/12/exploration-analysis-in-r</id><content type="html" xml:base="https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/12/exploration-analysis-in-r.html">&lt;p&gt;Exploration analysis gave me a general understanding of sales data, find seasonality factors on sales, various correlation between different variables.&lt;/p&gt;

&lt;p&gt;I wrapped up all of my code and results using &lt;strong&gt;R Markdown&lt;/strong&gt; and generated a html file for the whole exploration process. Just click &lt;a href=&quot;https://searoving.github.io/Marketing-Mix-Model/mmm_exploration_analysis/mmm_exploration_analysis.html&quot;&gt;MMM Exploration Analysis&lt;/a&gt; to check.&lt;/p&gt;

&lt;p&gt;Next step is to transform media variables (see next post).&lt;/p&gt;</content><author><name></name></author><category term="jekyll" /><category term="update" /><summary type="html">Exploration analysis gave me a general understanding of sales data, find seasonality factors on sales, various correlation between different variables.</summary></entry><entry><title type="html">ETL &amp;amp; Data Aggregation in MySQL</title><link href="https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/12/ETL-and-data-aggregation-in-mysql.html" rel="alternate" type="text/html" title="ETL &amp;amp; Data Aggregation in MySQL" /><published>2020-07-12T12:55:00+00:00</published><updated>2020-07-12T12:55:00+00:00</updated><id>https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/12/ETL-and-data-aggregation-in-mysql</id><content type="html" xml:base="https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/12/ETL-and-data-aggregation-in-mysql.html">&lt;p&gt;Actually, data collection is already the “E” of ETL, collecting or extracting data from different sources. In this part, I’m gonna focus on “transformaiton” and “load” in &lt;strong&gt;MySQL&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Below is all the datasets that I’ve already collected in raw data collection phase. I summarize them here:&lt;br /&gt;
sales_raw_data (daily data)&lt;br /&gt;
cci_raw_data (monthly data)&lt;br /&gt;
sales_event_raw_data (daily data) 
comp_media_spend_raw_data (weekly data)&lt;br /&gt;
offline_raw_data (weekly data)&lt;br /&gt;
dma_hh_raw_data&lt;br /&gt;
fb_raw_data (weekly data)&lt;br /&gt;
display_raw_data (weekly data)&lt;br /&gt;
wechat_raw_data (weekly data)&lt;br /&gt;
paidsearch_raw_data (weekly data)&lt;br /&gt;
activity_and_spend_from_2014_to_2017 (weekly data)&lt;br /&gt;
original_spend_for_2018 (weekly data)&lt;br /&gt;
original_activity_for_2018 (weekly data)&lt;/p&gt;

&lt;h2 id=&quot;load&quot;&gt;Load&lt;/h2&gt;
&lt;p&gt;Load all the prepared data into MySQL for later transformation.&lt;/p&gt;

&lt;h2 id=&quot;transformation&quot;&gt;Transformation&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;1. Check data integrity problem&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Following are some data integrity problems:&lt;/p&gt;

&lt;p&gt;Different spelling of the same name like Jon and John, Google and Google Inc etc.&lt;/p&gt;

&lt;p&gt;Invalid product collected at POS as manual entry can lead to mistakes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Validations are done during this stage&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Filtering – Selected only certain columns to load.&lt;/p&gt;

&lt;p&gt;Data threshold validation check.&lt;/p&gt;

&lt;p&gt;Required fields should not be left blank.&lt;/p&gt;

&lt;p&gt;Cleaning (for exmaple, mapping NULL to 0).&lt;/p&gt;

&lt;p&gt;Split a column into multiples and merging multiple columns into a single column.&lt;/p&gt;

&lt;p&gt;Transposed rows and columns.&lt;/p&gt;

&lt;p&gt;Used lookups to merge data.&lt;/p&gt;

&lt;p&gt;Transformed all the data into weekly data (starting from Monday). Becasue we used weekly data to do sales analysis. In this part, I used date_meta_data to do the transformation. the metadata is a standard date data starting from Monday between 2014 and 2017. This is the snapshot:&lt;br /&gt;
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/date_meta_data_snapshot.png&quot; alt=&quot;date_meta_data_snapshot&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;summary&quot;&gt;Summary&lt;/h2&gt;
&lt;p&gt;Through ETL process, I managed to transform all the data collected into unit format that I want and merge them into a integrated dataset named mmm_raw. Below is the snapshot:&lt;br /&gt;
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/mmm_raw_snapshot.png&quot; alt=&quot;mmm_raw_snapshot&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;af_raw_data brief&lt;/strong&gt;&lt;br /&gt;
· 208 rows, 22 columns&lt;br /&gt;
· column names: Period, Month, CCI, National TV GRPs, Magazine GRPs, Paid Search, Display, Facebook Impressions, Wechat, Sales Event, Comp Media Spend, Sales, DisplayAlwaysOnImpression, DisplayBrandingImpression, DisplayWebsiteImpression, DisplayHolidayImpression, SearchBrandingclicks, SearchAlwasyOnclicks, SearchWebsiteclicks, FacebookBrandingImpressions, FacebookHolidayImpressions, FacebookOtherImpressions.&lt;/p&gt;

&lt;p&gt;After ETL &amp;amp; data aggregation, I’m gonna dive into exploration analysis in &lt;strong&gt;R&lt;/strong&gt;. (see next post)&lt;/p&gt;</content><author><name></name></author><category term="jekyll" /><category term="update" /><summary type="html">Actually, data collection is already the “E” of ETL, collecting or extracting data from different sources. In this part, I’m gonna focus on “transformaiton” and “load” in MySQL.</summary></entry><entry><title type="html">Raw Data Collection</title><link href="https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/10/raw-data-collection.html" rel="alternate" type="text/html" title="Raw Data Collection" /><published>2020-07-10T18:21:00+00:00</published><updated>2020-07-10T18:21:00+00:00</updated><id>https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/10/raw-data-collection</id><content type="html" xml:base="https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/10/raw-data-collection.html">&lt;p&gt;Before creating MMM, we have to make sure what is the independent and dependent variables in this model. Because the management wants to know the impact of media channels on sales, so I took sales as the dependent variable and other factors, especially the media channels as the independent variables that have an impact on sales.&lt;/p&gt;

&lt;h2 id=&quot;dependent-variable-data-collection&quot;&gt;Dependent variable data collection&lt;/h2&gt;
&lt;p&gt;The dependent variable is sales from 2014 to 2017, so I first collected all of the sales data of three channels from our client: &lt;strong&gt;MAPE online transaction data&lt;/strong&gt;, &lt;strong&gt;MAPE specialty store transaction data&lt;/strong&gt; and &lt;strong&gt;Nilsen&lt;/strong&gt; (Nilsen has most of the transaction data of non-specialty stores, when doing MMM our client bought the data from Nilsen and provided it to us).&lt;/p&gt;

&lt;p&gt;I integrated all there sales data from different channels and this is the sales dataset brief:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Dataset name: sales_raw_data&lt;/li&gt;
  &lt;li&gt;12253 rows, 20 columns&lt;/li&gt;
  &lt;li&gt;It includes all the &lt;strong&gt;sales data from 2014-01-06 to 2017-12-31&lt;/strong&gt;, below is the snapshot of this dataset:
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/sales_raw_data_snapshot.png&quot; alt=&quot;sales_raw_data_snapshot&quot; /&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;independent-variable-data-collection&quot;&gt;Independent variable data collection&lt;/h2&gt;
&lt;p&gt;I considered three kinds of independent variables: &lt;strong&gt;baseline variables&lt;/strong&gt;, &lt;strong&gt;incremental variables&lt;/strong&gt; and &lt;strong&gt;others&lt;/strong&gt;.&lt;/p&gt;

&lt;h3 id=&quot;1-baseline-variables&quot;&gt;1. Baseline Variables.&lt;/h3&gt;
&lt;p&gt;The baseline is any impact achieved independent of marketing mix variables. Here I considered &lt;strong&gt;seasonality&lt;/strong&gt; and &lt;strong&gt;Macro-economic factors&lt;/strong&gt;. Seasonality factor can be shown directly in sales_raw_data dataset so I didn’t need to collect extra data from any other source. For Macro-economic variables, I just chose CCI. And I downloaded the &lt;strong&gt;USA CCI data&lt;/strong&gt; between 2014 and 2017 from OECD, this is the snapshot:
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/CCI_raw_data_snapshot.png&quot; alt=&quot;CCI_raw_data_snapshot&quot; /&gt;
As you can see, it’s monthly data. I save the dataset with the name cci_raw_data.&lt;/p&gt;

&lt;h3 id=&quot;2-incremental-variables&quot;&gt;2. Incremental Variables.&lt;/h3&gt;
&lt;p&gt;Incremental variables can be broadly classified three categories:&lt;/p&gt;
&lt;h6 id=&quot;atl-above-the-line-marketing&quot;&gt;&lt;strong&gt;ATL (Above-the-Line) marketing&lt;/strong&gt;&lt;/h6&gt;
&lt;p&gt;Above-the-line advertising consists of advertising activities that are largely non-targeted and have a wide reach). Considering the condition of our company, I chose two offline media channels as the ATL variables: &lt;strong&gt;national tv&lt;/strong&gt;, and &lt;strong&gt;magazine&lt;/strong&gt;. National TV and magazine data was both bought from Nilsen. I named this dataset offline_raw_data. This is the TV and magazine GRP data from 2014-01-06 to 2017-12-31. Below is the snapshot:
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/offline_raw_data_snapshot.png&quot; alt=&quot;offline_raw_data_snapshot&quot; /&gt;&lt;/p&gt;

&lt;p&gt;And I also got the DMA data which is used to do some calculation when doing ETL. I call it dma_hh_raw_data dataset. Below is the snapshot:
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/dma_hh_raw_data_snapshot.png&quot; alt=&quot;dma_hh_raw_data_snapshot&quot; /&gt;&lt;/p&gt;

&lt;h6 id=&quot;btl-below-the-line-marketing&quot;&gt;&lt;strong&gt;BTL (Below-the-Line) marketing&lt;/strong&gt;&lt;/h6&gt;
&lt;p&gt;Below-the-line advertising consists of very specific, memorable and direct advertising activities focused on targeted groups of consumers. According to the marketing plan of our client in the past four years, I chose “&lt;strong&gt;sales event&lt;/strong&gt;” as the BTL variable. It’s in-house data of our client. It’s the sales event information from 2014-01-06 to 2017-12-31, if the value is 1, there was sales event on that day, if it’s 0, there wasn’t. It’s so simple and I won’t show the snapshot here. I call this dataset as sales_event_raw_data.&lt;/p&gt;

&lt;h6 id=&quot;ttl-through-the-line-marketing&quot;&gt;&lt;strong&gt;TTL (Through-the-Line) marketing&lt;/strong&gt;&lt;/h6&gt;
&lt;p&gt;Through-the-Line advertising involves the use of both ATL &amp;amp; BTL marketing strategies. I chose four online media channels as the TTL variables according to our digital marketing plan in the past four years: &lt;strong&gt;Facebook&lt;/strong&gt;, &lt;strong&gt;WeChat&lt;/strong&gt;, &lt;strong&gt;Paid Search&lt;/strong&gt; and &lt;strong&gt;Display&lt;/strong&gt;. All of this data was from third_party which does the tracking work for the ads. And all of these data is weekly data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;fb_raw_data&lt;/strong&gt;&lt;br /&gt;
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/fb_raw_data_snapshot.png&quot; alt=&quot;fb_raw_data_snapshot&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;display_raw_data&lt;/strong&gt;&lt;br /&gt;
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/display_raw_data_snapshot.png&quot; alt=&quot;display_raw_data_snapshot&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;wechat_raw_data&lt;/strong&gt;&lt;br /&gt;
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/wechat_raw_data_snapshot.png&quot; alt=&quot;wechat_raw_data_snapshot&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;paidsearch_raw_data&lt;/strong&gt;&lt;br /&gt;
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/paidsearch_raw_data_snapshot.png&quot; alt=&quot;paidsearch_raw_data_snapshot&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;3-other-variables&quot;&gt;3. Other Variables.&lt;/h3&gt;
&lt;p&gt;For other variables, I just considered competitor media spend from 2014-01-06 to 2017-12-31 here. This data is bought from Kantar. This is the snapshot:&lt;br /&gt;
&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/comp_media_spend_raw_data_snapshot.png&quot; alt=&quot;comp_media_spend_raw_data_snapshot&quot; /&gt;&lt;br /&gt;
As you can see, it’s weekly data. I named this dataset as comp_media_spend_raw_data.&lt;/p&gt;

&lt;h2 id=&quot;marketing-spend-data-collection&quot;&gt;Marketing spend data collection&lt;/h2&gt;
&lt;p&gt;In order to do spend optimization based on ROI, we need to get the marketing spend of the past four years and an estimated makreting budget allocation for the next year. I won’t show the snapshot of the spend data here. I got the spend data from our client.&lt;/p&gt;

&lt;h2 id=&quot;summary&quot;&gt;Summary&lt;/h2&gt;
&lt;p&gt;In this phase, I’d already collected all the data that I need to build MMM and do spend optimization for the next year. Some of them is day data, some is weekly data and some is monthly data. In MMM, we usually use weekly data so I transformed all the data collected into weekly data in ETL process and an uniform format for later analysis. The next post is about ETL process.&lt;/p&gt;</content><author><name></name></author><category term="jekyll" /><category term="update" /><summary type="html">Before creating MMM, we have to make sure what is the independent and dependent variables in this model. Because the management wants to know the impact of media channels on sales, so I took sales as the dependent variable and other factors, especially the media channels as the independent variables that have an impact on sales.</summary></entry><entry><title type="html">Project Introduction</title><link href="https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/10/pro-intro.html" rel="alternate" type="text/html" title="Project Introduction" /><published>2020-07-10T17:14:22+00:00</published><updated>2020-07-10T17:14:22+00:00</updated><id>https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/10/pro-intro</id><content type="html" xml:base="https://searoving.github.io/Marketing-Mix-Model/jekyll/update/2020/07/10/pro-intro.html">&lt;p&gt;This is a bootcamp business project about &lt;strong&gt;Marketing Mix Model&lt;/strong&gt; lasting for two months (from May 2020 to July 2020). We serve as the agency of a company called MAPE. It’s based on a leather goods fashion &lt;strong&gt;retailng company&lt;/strong&gt; launched in Oct, 2013 in New York Times and V magazine and Colette Paris being one of its first buyer. MAPE symbolized innovation and authencity. The vision is to design simple yet stylish handbags. It’s positioned as a middle class fashion brand targeted white-collar females.&lt;/p&gt;

&lt;h2 id=&quot;problem-definition&quot;&gt;Problem Definition&lt;/h2&gt;
&lt;p&gt;Our client, MAPE, wants us to &lt;strong&gt;quantify the impact of media channels on sales, how much to spend on each marketing input based on ROI, and predict the sales of next year by using Marketing Mix Model (MMM) technique&lt;/strong&gt; (the sales data in this bootcamp is from 2014 to 2017, so what I mean by “next year” here is 2018).&lt;/p&gt;

&lt;h2 id=&quot;methodology&quot;&gt;Methodology&lt;/h2&gt;
&lt;p&gt;Marketing Mix Modeling (MMM), the use of statistical analysis to estimate the past impact and predict the future impact of various marketing tactics on sales, can deeply inform marketing plans. While marketing spend and bottom line results are often perceived as disconnected, Marketing Mix Modeling closes the loop and shows the path to improved return on marketing investment.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://searoving.github.io/Marketing-Mix-Model/assets/images/methodology.png&quot; alt=&quot;methodology&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;project-phases&quot;&gt;Project Phases&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Raw data collection.&lt;/strong&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;ETL &amp;amp; data aggregation.&lt;/strong&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Exploration analysis.&lt;/strong&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Media variable transformation.&lt;/strong&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Modeling in R.&lt;/strong&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Model results and visualization in R and Tableau.&lt;/strong&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Spend optimization using Excel Solver.&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;skillset&quot;&gt;Skillset&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;Collected, aggregated, cleaned data and managed the &lt;strong&gt;ETL&lt;/strong&gt; process using &lt;strong&gt;MySQL&lt;/strong&gt;.&lt;/li&gt;
  &lt;li&gt;Created data visualizaiton using &lt;strong&gt;Tableau&lt;/strong&gt;.&lt;/li&gt;
  &lt;li&gt;Performed &lt;strong&gt;multivariate regression models&lt;/strong&gt; (Marketing Mix Model) with &lt;strong&gt;R&lt;/strong&gt; to evaluate the impact of various marketing tactics.&lt;/li&gt;
  &lt;li&gt;Built Tableau dashboards to visualize model results, generated informative visualization including &lt;strong&gt;AVM&lt;/strong&gt;, &lt;strong&gt;model contributions&lt;/strong&gt;, and &lt;strong&gt;media ROIs&lt;/strong&gt; to deliver key business insights.&lt;/li&gt;
  &lt;li&gt;Analyzed the &lt;strong&gt;effectiveness&lt;/strong&gt; and &lt;strong&gt;efficiency&lt;/strong&gt; of different media activities (e.g., TV GRPs, Paid Search Clicks, Display impressions, etc.).&lt;/li&gt;
  &lt;li&gt;Provided recommendations on &lt;strong&gt;budget optimization&lt;/strong&gt; using &lt;strong&gt;Excel Solver&lt;/strong&gt;.&lt;/li&gt;
  &lt;li&gt;Created deck to summarize model findings and presented the results to the team.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;blog-guidance&quot;&gt;Blog Guidance&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;You should read starting from &lt;em&gt;Projection Introdution&lt;/em&gt;, and then &lt;em&gt;Raw Data Collection&lt;/em&gt; and go through all of the rest posts in this order.&lt;/li&gt;
  &lt;li&gt;In each post (each phase of this project), I will thoroughly go through the methodology and my work in this phase, and make some summary.&lt;/li&gt;
&lt;/ol&gt;</content><author><name></name></author><category term="jekyll" /><category term="update" /><summary type="html">This is a bootcamp business project about Marketing Mix Model lasting for two months (from May 2020 to July 2020). We serve as the agency of a company called MAPE. It’s based on a leather goods fashion retailng company launched in Oct, 2013 in New York Times and V magazine and Colette Paris being one of its first buyer. MAPE symbolized innovation and authencity. The vision is to design simple yet stylish handbags. It’s positioned as a middle class fashion brand targeted white-collar females.</summary></entry></feed>