Skip to content

Our project for the "Data Intelligence Applications" exam at Politecnico di Milano. The project was about Social Influence and Pricing online learning techniques applied to networks.

SamueleMeta/data-intelligence-applications

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Intelligence Applications - Social Influence & Pricing

Politecnico di Milano

Overview

The goal is modeling a scenario in which a seller is pricing some products and spends a given budget on social networks to persuade more and more nodes to buy the products, thus artificially increasing the demand. The seller needs to learn both some information on the social networks and the conversion rate curves.

Scenario

Suppose:

  • Three products to sell, each with an infinite number of units, in a time horizon T;

  • Three social networks composed of thousands of nodes, such that each social network is used to sell a different product;

  • Three seasonal phases such that the transitions from a phase to the subsequent one are abrupt;

  • A conversion rate curve for each social network and each phase, returning the probability that a generic node of the social network buys a product;

Social Influence

  • Design of an algorithm maximizing the social influence in every single social network once a budget, for that specific social network, is given. Plot of the approximation error as the parameters of the algorithms vary for every specific network.

vanilla social influence

  • Design of a greedy algorithm such that, given a cumulative budget to perform jointly social influence in the three social networks, finds the best allocation of the budget over the three social networks to maximize the cumulative social influence. Plot of the approximation error as the parameters of the algorithms vary for every specific network.

greedy algorithm

  • Application of a combinatorial bandit algorithm to the situation in which the activation probabilities are not known and we can observe the activation of the edges. Plot of the cumulative regret as time increases.

combinatorial bandit

Adding Pricing

  • Design of a learning pricing algorithm to maximize the cumulative revenue and application of it, together with the algorithm to make social influence, to the case in which the activation probabilities are known. In doing that, suppose a unique seasonal phase for the whole time horizon. The actual purchase depends on the price charged by the seller and the conversion rate curve. Plot of the cumulative regret.

princing no seasonal

  • Design of a learning pricing algorithm to maximize the cumulative revenue when there are seasonal phases and apply it, together with the algorithm to make social influence, to the case in which the activation probabilities are known. Plot of the cumulative regret.

princing no seasonal

  • Plot of the cumulative regret in the case the seller needs to learn both the activation probabilities and conversion rate curves simultaneously.

combinatorial

Resources

You can find three Python files and a pdf:

  • The pdf file contains the presentation of the project where you can find our final plots and results shown to the professor at the moment of the project submission.
  • network.py contains all the classes that are used to define the graphs used in the experiments.
  • mab.py contains the classes about the learners used for the requests of the project.
  • main.py contains obviously all the code to be run in order to produce the results shown in the presentation; for each point in the requests we run a specific function contained in this file.

Note that for each function called at the end of the file we specify the size and the complexity of the graphs used by the functions. Feel free to change this parameters in order to try different configurations but pay attention to the time to process big and complex networks.

Team

About

Our project for the "Data Intelligence Applications" exam at Politecnico di Milano. The project was about Social Influence and Pricing online learning techniques applied to networks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%