Skip to content

Commit dddc0ee

Browse files
committed
updated the MPM and the readme.
1 parent a7f3782 commit dddc0ee

File tree

2 files changed

+29
-21
lines changed

2 files changed

+29
-21
lines changed
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
Causal_pathway,comparison_size,trend_size,achievement_recency,loss_recency,message_recency,message_recurrence,measure_recency,coachiness
2-
social better,0.5,--,--,--,0.1,0.1,0.5,0
3-
social worse,0.5,--,--,--,0.1,0.5,0.5,1
4-
goal worse,0.5,--,--,--,0.1,0.5,0.5,1
5-
improving,--,0.8,--,--,0.1,0.1,0,0.5
6-
worsening,--,0.8,--,--,0.1,0.5,0,1
7-
social gain,0.5,0.8,0.5,--,0.1,0.1,0.5,0.5
8-
goal gain,0.5,0.8,0.5,--,0.1,0.1,0.5,0.5
9-
social loss,0.5,0.8,--,0.5,0.1,0.5,0.5,1
10-
goal loss,0.5,0.8,--,0.5,0.1,0.5,0.5,1
11-
social approach,0.5,0.8,0.5,--,0.1,0.1,0,1
12-
goal approach,0.5,0.8,0.5,--,0.1,0.1,0,1
1+
causal_pathway,coachiness,comparison_size,trend_size,achievement_recency,loss_recency,message_recency,message_recurrence,measure_recency,history
2+
social better,0,1,,,,0.14,0.14,0.72,0.7
3+
social worse,1,1,,,,0.1,0.45,0.45,1.1
4+
goal worse,1,1,,,,0.1,0.45,0.45,1.1
5+
improving,0.5,,1,,,0.5,0.5,0,0.2
6+
worsening,1,,1,,,0.17,0.83,0,0.6
7+
social gain,0.5,0.28,0.44,0.28,,0.14,0.14,0.72,0.7
8+
goal gain,0.5,0.28,0.44,0.28,,0.14,0.14,0.72,0.7
9+
social loss,1,0.28,0.44,,0.28,0.1,0.45,0.45,1.1
10+
goal loss,1,0.28,0.44,,0.28,0.1,0.45,0.45,1.1
11+
social approach,1,0.28,0.44,0.28,,0.5,0.5,0,0.2
12+
goal approach,1,0.28,0.44,0.28,,0.5,0.5,0,0.2

prioritization_algorithms/readme.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11

2-
## History
3-
This is an inverse _moderator_ so 0 has the most motivational potential (little or no history), and 1 has the least motivational potential (the message or measure has been selected more often or more recently).
2+
## Overview
43

5-
The individual moderators listed below are weighted on a per causal pathway basis using weights from the MPM. The MPM weightings are only relative weightings for different history sub moderators. The history score overall is still an inverse moderator. For example, for the _social better_ pathway:
4+
## Motivating information
5+
6+
## History elements
7+
In calculating the final score the contribution of history is inverted and multiplied by a per causal pathway weight (the less history the higher the score). When the message or measure has been selected more often or more recently the history score would be lower.
8+
9+
The individual moderators listed below are weighted on a per causal pathway basis using weights from the MPM. The MPM weightings are only relative weightings for different history sub moderators. The _history_ column of the MPM contains the between-causal-pathway weights. The calculated value applying moderator weights and between-causal-pathway weight is still an inverse moderator. So the final history score is calculated by inverting the calculated value. For example, for the _social better_ pathway:
610
```
7-
history_score = (message_recurrence * 0.1 + message_recency * 0.1 + measure_recurrence * 0.5) / (0.1 + 0.1 + 0.5)
11+
history_score = 1 - (message_recurrence * 0.14 + message_recency * 0.14 + measure_recurrence * 0.72) / (0.14 + 0.14 + 0.72) * 0.7
812
```
9-
In the above example for the _social better_ example measure recurrence is more important than message recurrence or message recency. We normalize the total history score by deviding by individual moderator weights.
13+
In the above example for the _social better_ example measure recurrence is more important than message recurrence or message recency. The weights per causal pathway should sum up to 1 but, just in case they don't, we also normalize the total history score by deviding by individual moderator weights. After applying the MPM weight on moderators the between-causal-pathway weight (0.7 for _social better_) is applied. Then, because history is an inverse moderator, the final history score is adjusted using 1 minus the calculated value.
1014

11-
`history_score` will be a value between 0 and 1 with 0 being the least history (the most motivational) and 1 being the most history (the least motivational).
15+
`history_score` will be a value between 0 and 1 with 0 being the least motivational (the most history) and 1 being the most motivational (the least history).
1216

13-
Because history is an inverse moderator, the final scoring algorithm incorporates the history score this way:
17+
The final scoring algorithm incorporates the history score directly:
1418
```
15-
score = motivating_score * 1 + (1 - history_score) * 2 + preferences_score * 1.3
19+
score = motivating_score * 1 + history_score * 2 + preferences_score * 1.3
1620
```
1721

1822
### message_recurrence (0-1, 1 is most history = least motivational potentional)
@@ -33,4 +37,8 @@ The _moderator_ is the count devided by 12. 0 is no recurrence and 1 is 12 messa
3337
### measure_recency (0-1, 1 is most recent history = least motivational potentional)
3438
The _signal property_ is the number of month since the last time a message for this candidate's measure has been selected.
3539

36-
The _moderator_ is 1 minus the count, devided by 12. 1 is a message with this measure was sent most recently, and 0 is a message with this measure has not been sent in the last year.
40+
The _moderator_ is 1 minus the count, devided by 12. 1 is a message with this measure was sent most recently, and 0 is a message with this measure has not been sent in the last year.
41+
42+
### history column
43+
This column contains the between-causal-pathway weights.
44+

0 commit comments

Comments
 (0)