# Form indicators in VSporten.

Form indicator in depth

Defining form indicators

## Form indicator in depth.

### Team's form indicator.

A team's form indicator (FI) is based on a weighted average of results of last N matches played by the team (WAM). The number N is defined by the "Number of matches" attribute of the form indicator definition. The WAM-value together with values of Limit1 and Limit2 are then used to calculate the team's FI-value which can be one of  the following values: UP, AVERAGE, DOWN. Both FI- and WAM-values can be exported from VSporten.

### Form indicator algorithm.

As mentioned above, a team's FI is calculated as a weighted average of results of team's last N matches. Each match will give the team the following amount of point:

Each win gives W points.

Each tie gives T points.

Each defeat gives D points.

In the standard Form Indicator: W equals 3 points, T equals 1 point and D equals -3 points.

Assume that the number of matches taken into the WAM is 5 (N equals 5). Assume that the match weight for a match is equal: 5 for a last played match, 4 for a second last played match, 3 for a third last played match, 2 for a fourth last played match and finally 1 for a fifth last played match. The weighted average (WAM) of the last 5 matches will be calculated the following way:

WAM=(P1*5  + P2*4 + P3*3 + P4*2 + P5*1)/(5+4+3+2+1)  where PX (X=1,2,3,4,5) is equal W, T or D points depending on whether the corresponding match was a win, tie or defeat.

Finally, the Form Indicator will be calculated the following way by using WAM and Limit1 and Limit2:

FI = UP  if WAM >= Limit2

FI = AVERAGE if  Limit < WAM < Limit2

FI = DOWN if WAM<= Limit1

## Defining form indicators

In VSporten a form indicator can be defined by using the menu Administration->Form Indicators. This menu contains two submenus Definitions and Match Weights

### Definitions

Within this menu a user can define the basic parameters of a form indicator. The complete list of the parameters is defined below.

#### Form indicator's attributes described.

A form indicator has following attributes:

 Name Name of the form indicator which will be other places within the system Description Description of the form indicator Nr of matches This number defines how many last rounds will be taken into the calculation of the form indicator. Points per win Defines how many points will be given within the form indicator for a win Points per tie Defines how many points will be given within the form indicator for a tie Points per defeat Defines how many points will be given within the form indicator for a lost match Limit1 The number defined by limit1 is the upper threshold for the DOWN-value of WAM. Limit2 The number defined by limit2 is the lower threshold for the UP-value of WAM. Str1 String which will be exported as FI-value if WAM <= limit1 Str2 String which will be exported as FI-value if limit1= limit2 Icon1 Icon which will be used to display FI when FI=str1 (DOWN) Icon2 Icon which will be used to display FI when FI=str2 (AVARAGE) Icon3 Icon which will be used to display FI when FI=str3 (UP)

### Match Weights

Here the user have to define the weights for the matches. Match index 1 means the last played match, index 2 means the second last played match and so on.

In the figure above the last played match has weight of 3 while the 4th and 5th match have weight of 1.

Goals Weight column is reserved for the future use.

### Reviewing with form indicators

In Vsporten the teams FI can be inspected by using the review function (Collector) within VSporten. In the figure below the green icon corresponds to the FI=UP, the red to FI=DOWN and the grey to FI=AVERAGE.

### FI in exported files

In the export file the FI is exported as the strings Str1, Str2 and Str3 in the definition of FI. In this case the Str1=NED, Str2=MEDEL, Str3=UPP

### FI exported to TT-SES Editor

The figure below shows how the exported values can be verified in the TT-SES Editor.

### Enabling and disabling form indicator

In Vsporten function of generating form indicators is disabled by default. Where the function is available - enabling of form indicator must be done on each single serie (league) table which has to be exported with FI- or WAM-values. Enabling of form indicator is done by using the Properties-tool applied on the serie table.

To enable the function of generating form indicators for a league the user has to attach to the league a specific form indicator by selecting it from the FI-list in the Properties-tool. In the figure below the standard form indicator has been attached to the Allsvenskan-league.

To disable the function of generating form indicators for a league the user has to remove the name of the form indicator from the FI-field in the properties tool and apply the change.