# Examples

Some brief examples of regression and classification using I-priors. All error terms are assumed to be normally distributed, as per (1), unless specified otherwise.

## Multilevel Analysis of Pupils’ GCSE Scores

** Aim:**
Obtain estimates for random intercepts and slopes for a multilevel data set, and compare with standard random effects model estimates.

** Data:**
GCSE scores () for 4,059 pupils at 65 inner London schools (), together with their London reading test results ().

*Model:*

with in the canonical RKHS, in the Pearson RKHS, and in the tensor product space.

** Results:**
Good agreement between I-prior estimates and standard random effects model estimates.

## Longitudinal Analysis of Cattle Growth

** Aim:**
Discern whether there is a difference in the two treatments given to the cows, and whether this effect varies among individual cows.

** Data:**
A balanced longitudinal data set of weight measurements for 60 cows () at different time points .
Half of the herd were randomly assigned to treatment group A, and the other half to treatment group B.

** Model:**
Assume a smooth effect of time and nominal effect of cow index and treatment group:

with and in the Pearson RKHS, in the fBm-0.5 RKHS, and the interaction functions in the appropriate tensor product space. This model can be succintly represented as

** Results:**
Four models were fitted, and the results tabulated below.

Explanation | Model | Log-lik. | No. of param. | |
---|---|---|---|---|

1 | Growth due to cows only | -2792.2 | 3 | |

2 | Growth due to treatment only | -2295.2 | 3 | |

3 | Growth due to both cows and treatment | -2270.9 | 4 | |

4 | Growth due to both cows and treatment, with treatment varying among cows | -2250.9 | 4 |

To test for a treatment effect, we test the signifiance of the scale parameter for the treatment variable in Model 2 (p-value < 10^{-6}).
To test whether treatment effect differs among cows, we compare likelihoods for Models 3 and 4.

## Predicting Fat Content of Meat Samples from Spectrometric Data

** Aim:**
Predict fat content of meat samples from its spectrometric curves (Tecator data set).

** Data:**
For each meat sample, 100 channel spectrum of absorbances () together with the contents of moisture, fat () and protein measured in percent.
160 samples were used to train the model, and 55 were used for testing.

** Model:**
Take first differences of (see here for an explanation) and obtain .
We then assume various effects of on using the linear, polynomial (quadratric and cubic) and fBm (smooth).

** Results:**
Training and test errors are tabulated below.
The smooth I-prior model outperforms methods such as Gaussian process regression (13.3), kernel smoothing (1.85), single index models (1.18) and sliced inverse regression (0.90) in test error rates.

Model | Training error | Test error | |
---|---|---|---|

1 | Linear | 2.85 | 3.24 |

2 | Quadratic | 0.72 | 1.23 |

3 | Cubic | 0.99 | 1.65 |

4 | Smooth (fBm-0.5) | 0.00 | 0.67 |

## Diagnosing Cardiac Arrhythmia

** Aim:**
Predict whether patients suffers from a cardiac disease based on various patient profiles such as age, height, weight and a myriad of electrocardiogram (ECG) data.

** Data:**
451 observations of 279 predictors and binary variables indicating whether each patient had arrhythmia or not.
All 279 predictors are continuous, and they were standardised beforehand.

** Model:**
A binary I-probit model using the linear and fBm-0.5 kernel to predict the probability of having cardiac arrhythmia:

where lies in either the canonical or fBm-0.5 RKHS. Since the variables were standardised, it is sufficient to use a single scale parameter.

** Results:**
In order to test predictive performance, the data was randomly split into training sets of sizes 50, 100, and 200, with the remaining forming the test set.
The model was fitted and out-of-sample misclassification rates noted.
This was then repeated 100 times to obtain averages and standard errors.

The I-probit models outperformed some of the more popular classifiers, including Gaussian process classification, nearest shrunken centroids, support vector machines and -nearest neighbours.

## Meta-analysis of Smoking Cessation

** Aim:**
Inference on the effect size of nicotine gum treatment on smoking cessation based on data from multiple, independent studies.

** Data:**
Records of whether each of the 5,908 patients in 27 separate studies () successfully quit smoking () and also whether they were subjected to actual treatment or placebos ().

** Model:**
The Bernoulli probabilities for each patient are regressed against the treatment group indicators and each patients’ study group via the probit link:

where and lie in the Pearson RKHS, and in their tensor product space.

** Results:**
Fitted model probabilities were obtained, and log odds ratios calculated and compared against the standard logistic random effects model.

## Vowel Recognition in Speech Recordings

** Aim:**
Multiclass classification of Deterding’s vowel data set, in which the task is to correctly associate digitised speech recordings with the specific vowel used for that speech.

** Data:**
Multiple speakers, male and female, uttered 11 vowels each and their speech recorded.
These were then processed using speech processing techniques.
The result is 990 data points consiting of a ten-dimensional numerical predictor and also the class of vowel for each data point .
These were split roughly equally into a training and test set.

** Model:**
A multinomial I-probit model to predict the class probabilities for each data point:

where lies in either the canonical or fBm-0.5 RKHS for each class and is the function as described here. The predicted class is given by .

** Results:** Out-of-sample misclassification rates for the fBm I-prior model was the best among several methods which include logistic regression, linear and quadratic discriminant analysis, decision trees, neural networks, nearest neighbours, and flexible disciminant analysis. While the canonical I-probit did not fare as well, it did however gave improvement over linear regression.

## Spatio-temporal Analysis of Bovine Tubercolosis in Cornwall

** Aim:**
Determine the existence of spatial segregation of multiple types of bovine tubercolosis (BTB) in Cornwall, and whether the spatial distribution had changed over time.

** Data:**
Data pertaining to the location (Northings and Eastings) and year of the occurrence .
Nine hundred and nineteen cases of BTB had been recorded over a period of 14 years all over Cornwall.
There are four types of BTB which are most commonly occurring, though a class of “others” was also considered totalling five classes.

** Model:**
A multinomial I-probit model regressing the class probabilities on and :

A smooth effect of is assumed, so lies in the fBm-0.5 RKHS. We have two choices for : 1) Assume a similar smooth effect; or 2) Aggregate the data into distinct time periods so that emits a nominal effect (cf. the Pearson RKHS).

** Results:**
The plots indicate that there is in fact spatial segregation between the various types of BTB in Cornwall.
These can be tested formally by performing tests of significance on the scale parameters associated with location and time.