Construct a mathematical formula

  • Context: Undergrad 
  • Thread starter Thread starter adan
  • Start date Start date
  • Tags Tags
    Formula Mathematical
Click For Summary

Discussion Overview

The discussion revolves around constructing a mathematical formula to define the consumption probability of human agents in a simulation. Participants explore various mathematical approaches to combine personal belief and influences, focusing on how these factors can be represented in a formula that outputs a probability between 0 and 1.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested, Mathematical reasoning

Main Points Raised

  • One participant proposes a formula involving a weighted sum of personal belief (X) and two influence variables (positive and negative).
  • Another participant questions the effectiveness of the weighted sum and suggests exploring the model's response to different weights and fitting techniques, such as linear regression.
  • A suggestion is made to consider a portfolio approach, treating consumption as the expectation value of returns and influences as covariances.
  • A participant expresses concern that the weighted sum does not enforce the expected positive influence and discusses the implications of using negative weights for negative influence.
  • There is mention of the potential limitations of linear models and the possibility of using a neural network for more complex relationships.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best approach to model the consumption probability. There are competing views on the effectiveness of the weighted sum and the exploration of alternative methods.

Contextual Notes

Participants note the absence of empirical data to validate their models, relying instead on intuition and theoretical considerations. There are unresolved questions regarding the appropriate weights and the nature of the influences.

adan
Messages
13
Reaction score
3
Hello,
I have been thinking of it for a long time, and I would appreciate suggestions from math experts.

I am working on a simulation of human agents. I want to set up a formula that defines the consumption probability (0,1), which consists of X, a value between 0 and 1, and two positive and negative integer values (0,1). The idea is to combine these variables. If positive influence is high, consumption should increase if negative influence is high, consumption should decrease. X represents personal belief without any influence.
The X and the influences variables are computed differently.

I thought of a weighted sum but that doesn't give the expected output.

Thank you!
 
  • Like
Likes   Reactions: Delta2
Mathematics news on Phys.org
adan said:
I thought of a weighted sum but that doesn't give the expected output.
A weighted sum is the obvious first choice; what do you mean 'doesn't give the expected output'?

Did you set the weights manually - if so have you fully explored how your model responds to adjusting the weights?

If you have a sample 'expected output' have you tried fitting the weights using linear regression? Have you tried different optimisation functions (e.g. mean absolute error (MAE) as well as mean squared error (MSE))?

If this is still not working for you then this may be due to the inherent limitation of linearity of the model. To break through this you could consider using a neural net (a weighted sum is essentially a neural net with no hidden layers and a single neuron with a linear activation function in the output layer). However this is probably overkill for such a simple model with only 3 inputs.
 
  • Like
Likes   Reactions: adan
Consider a portfolio of at least two stocks, take the consumption as the expectation value of returns, and the influences as the covariances.
 
  • Like
Likes   Reactions: adan
pbuk said:
A weighted sum is the obvious first choice; what do you mean 'doesn't give the expected output'?

Did you set the weights manually - if so have you fully explored how your model responds to adjusting the weights?

If you have a sample 'expected output' have you tried fitting the weights using linear regression? Have you tried different optimisation functions (e.g. mean absolute error (MAE) as well as mean squared error (MSE))?

If this is still not working for you then this may be due to the inherent limitation of linearity of the model. To break through this you could consider using a neural net (a weighted sum is essentially a neural net with no hidden layers and a single neuron with a linear activation function in the output layer). However this is probably overkill for such a simple model with only 3 inputs.
Thank you @pbuk, for your answer!. I noticed that the weighted sum doesn't give what I expect. I don't have data but just some intuition. For example consumption = w1*X +w2 * Infpositive - w2 * infnegative.
I assume w1 should not be too small(> 0.5). I found that using the weighted sum can't enforce the positive effect. I use a negative weight w2 to achieve the negative influence.
 

Similar threads

  • · Replies 25 ·
Replies
25
Views
7K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 35 ·
2
Replies
35
Views
2K
Replies
3
Views
2K
  • · Replies 61 ·
3
Replies
61
Views
5K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 33 ·
2
Replies
33
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K