VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

Why Mathematics? | Recommendation Systems, Vectors and Matrix Factorisation

Three learners review open books together at a classroom table, with stacks of textbooks, stationery and a whiteboard in the bright room.

Why is mathematics important in recommendation systems? When a music, video, book or learning platform suggests what to explore next, it cannot read a person’s mind. It represents behaviour with numbers, compares patterns, predicts useful candidates and ranks them under constraints. Vectors, matrices, probability and optimisation make that possible.

This article builds a student-friendly model of recommender systems. All users, items, ratings and scores are fictional. A real platform also needs privacy, security, product judgement, safeguards and human review. A high score means “the model ranks this item highly under its objective,” not “this is objectively best for the person.”


Choose the recommendation question you want to solve


A recommendation is a decision under uncertainty

A platform often has far more possible items than it can display. It must decide which small set deserves attention now. That is a mathematical selection problem: estimate relevance from incomplete evidence, compare candidates on a common scale and choose an order.

The evidence is never complete. A click may mean curiosity rather than enjoyment. A skipped video may have appeared at the wrong time. An unrated book may be unknown, unavailable or deliberately avoided. Recommender mathematics begins with uncertain signals, not perfect labels.

That uncertainty is why a recommendation should be treated as a suggestion. The model can support discovery, but the learner, parent, teacher or reader retains judgement about suitability, balance and purpose.


Explicit and implicit feedback are different data

Explicit feedback is deliberately supplied: a rating, like, dislike or stated preference. Implicit feedback is inferred from behaviour such as viewing, listening, saving, completing or returning. Both can be useful, but they mean different things.

A five-star rating has an interpretable scale only if users apply the scale similarly. One user may reserve five stars for a life-changing book; another may use five for anything enjoyable. Implicit watch time avoids that scale problem but introduces context, autoplay and accidental exposure.

Good models preserve the signal’s meaning. They do not quietly treat a three-second preview, a completed lesson and a deliberate rating as interchangeable “engagement.”


A preference profile can be a vector

A vector is an ordered list of numbers. Suppose a fictional reader’s interests across mystery, science and humour are represented by u = (0.8, 0.6, 0.2). The order matters: first mystery, then science, then humour.

A book can use the same coordinates. Book A might be a = (0.9, 0.3, 0.1) and Book B b = (0.2, 0.8, 0.5). Now user and items live in one mathematical space, so their alignment can be compared.

These numbers are teaching features, not psychological truths. Real features may be hand-labelled, learned from behaviour or derived from text, audio and images. Every representation chooses what information to retain and what to compress.


Dot products turn two vectors into one score

The dot product multiplies matching coordinates and adds the results. For the reader and Book A, u·a = 0.8×0.9 + 0.6×0.3 + 0.2×0.1 = 0.92.

For Book B, u·b = 0.8×0.2 + 0.6×0.8 + 0.2×0.5 = 0.74. Under this simple scoring rule, Book A ranks above Book B because its weighted feature alignment is larger.

The calculation is transparent, but the conclusion is conditional. If the feature definitions or weights change, the ranking can change. A score is the output of a model, not a universal measure of quality.


Magnitude can dominate a raw dot product

A vector with large coordinates can receive a high dot product even when its direction is not especially similar. Suppose Item C is (4, 4, 4). Its dot product with u is 6.4, dwarfing the earlier scores mostly because the item vector is much longer.

This may be appropriate when magnitude represents meaningful confidence or frequency. It may be undesirable when we want to compare preference direction independently of scale.

Mathematics forces the question: should strength count, direction count, or both? The correct similarity measure depends on the task and how the vectors were constructed.


Cosine similarity compares direction

Cosine similarity divides the dot product by the product of vector lengths: cos θ = (u·v)/(|u||v|). The result is 1 for identical directions, 0 for perpendicular non-zero vectors and −1 for opposite directions.

For u = (0.8,0.6,0.2), length is sqrt(0.64+0.36+0.04) ≈ 1.020. Book A has length sqrt(0.81+0.09+0.01) ≈ 0.954. Their cosine similarity is about 0.92/(1.020×0.954) ≈ 0.946.

Cosine similarity removes overall scale, but it is not automatically fair or accurate. Zero vectors have no direction, negative coordinates need interpretation and sparse data can make two profiles look similar from very little evidence.


Euclidean distance asks a different question

Euclidean distance between two vectors is the square root of the sum of squared coordinate differences. Between u and Book A, distance is sqrt((0.8−0.9)^2+(0.6−0.3)^2+(0.2−0.1)^2) ≈ 0.332.

Small distance means nearby coordinates. Cosine similarity instead focuses on angle. Two long vectors pointing in the same direction can have cosine similarity 1 while remaining far apart in Euclidean distance.

Students should not ask which metric is universally best. Ask what difference matters for the application and whether the scale of each coordinate is comparable.


Feature scales must be controlled

Imagine one feature ranges from 0 to 1 while another ranges from 0 to 1,000. Without normalisation, the large-scale feature can dominate distance calculations even if it is not more important.

Standardisation might subtract a mean and divide by a standard deviation. Min–max scaling might map a range to 0 through 1. Unit normalisation might divide each vector by its length. Each transformation changes geometry.

A model report should state the transformation and fit it only using appropriate training data. Using future or test information when scaling creates leakage and makes evaluation look better than deployment.


Content-based filtering uses item descriptions

Content-based filtering recommends items resembling those a user liked, using features of the items themselves. A learner who completed several geometry lessons may receive more lessons with geometry-related features.

The advantage is interpretability and usefulness for new items whose content can be described. The weakness is overspecialisation: a profile built from yesterday’s choices may keep returning more of the same.

Exploration therefore matters. A system can deliberately include a small number of varied candidates rather than assuming that past behaviour defines the person forever.


Collaborative filtering uses patterns across people

Collaborative filtering learns from user–item interactions. If people with partly similar histories often enjoy the same unseen item, the system may recommend it even without detailed content labels.

This can reveal relationships that designers did not name in advance. Two books may appeal to similar readers for style, pacing or mood even when their formal categories differ.

It also creates cold-start problems. A new user has little history, and a new item has few interactions. Popular items can accumulate more evidence simply because they were shown more often.


A user–item matrix is mostly empty

Place users in rows, items in columns and ratings or interactions in cells. With four users and five books, there are 20 possible cells. If only eight interactions were observed, 12 cells are missing.

In real systems, the matrix can be enormously sparse because each person experiences only a tiny fraction of the catalogue. Missing does not mean disliked. It usually means unobserved.

Treating every blank as a zero can therefore create a false claim. Models for implicit feedback often use weights or sampling to distinguish confidence in observed and unobserved entries.


A tiny rating table shows the prediction problem

Suppose User 1 rated Books A and B as 5 and 4, while User 2 rated A and B as 4 and 5. Both also rated Book C highly. User 3 rated A and B low but liked D and E.

If User 1 has not rated C, the pattern from User 2 supports a higher prediction for C than for D. This is not proof that User 1 will like C. It is a conditional estimate based on neighbouring patterns.

A classroom table should keep blanks visibly blank. Filling them with invented “true ratings” before evaluation destroys the distinction between prediction and observation.


Nearest-neighbour recommendations depend on similarity

User-based nearest neighbours compare one user with others, then transfer information from the most similar profiles. Item-based neighbours compare item interaction patterns and recommend items similar to those already used.

Suppose similarities to three neighbours are 0.9, 0.7 and 0.1. A weighted predicted rating can use the first two strongly and the third weakly. But negative or missing similarities need a declared rule.

Neighbour count is a hyperparameter. Too few neighbours make predictions unstable; too many can dilute local patterns. Validation data helps select it without peeking at the final test set.


Weighted averages need a denominator

If two neighbours rate a book 5 and 3 with similarities 0.8 and 0.4, a simple weighted prediction is (0.8×5 + 0.4×3)/(0.8+0.4) = 4.333.

Forgetting to divide by the weight sum gives 5.2, outside the rating scale. Dividing by the number of neighbours gives 2.6, which ignores the intended similarity weighting.

The denominator expresses what “average” means. Recommendation mathematics is full of plausible-looking scores whose meaning collapses when the denominator is hidden.


Mean-centering can separate generosity from taste

Some users rate almost everything high, while others use low scores. Raw comparisons can confuse this rating style with preference.

If one user’s mean rating is 4.5 and another’s 2.5, subtracting each user’s mean compares deviations from their own baseline. A rating of 4 by the first user is below baseline; 4 by the second is far above.

Mean-centering is useful only when there are enough representative ratings. A mean from two unusual items is a fragile estimate, and implicit feedback has no natural star-rating mean.


Matrix factorisation learns smaller user and item vectors

Google’s official matrix factorisation guide describes learning user and item embeddings whose product approximates the interaction matrix. Instead of storing every possible user–item score, the system learns a smaller latent representation.

If there are m users, n items and d latent dimensions, full scores need mn entries, while user and item embeddings need about (m+n)d. When d is much smaller than both m and n, this can be far more compact.

The latent coordinates are learned for prediction. They may not correspond cleanly to named ideas such as “funny” or “serious,” so explanations must not invent semantic labels for every dimension.


The matrix product creates predicted scores

Let a user embedding be p = (0.8,0.3) and an item embedding q = (0.6,0.9). Their predicted interaction is the dot product p·q = 0.48 + 0.27 = 0.75.

Every user–item pair can be scored from its two short vectors. Training adjusts the vectors so observed interactions receive suitable scores while controlling behaviour on unobserved examples.

The product is bilinear: doubling one embedding doubles the score if the other remains fixed. Regularisation helps prevent the model from creating extreme vector lengths merely to fit noise.


Loss functions define what training tries to improve

For observed rating r and prediction r_hat, squared error is (r−r_hat)^2. If truth is 4 and prediction 3.2, error is 0.8 and squared error is 0.64.

Squaring makes large errors count disproportionately. Absolute error would count the same difference as 0.8. Ranking losses may compare a preferred item with a non-preferred item rather than predicting exact ratings.

The model optimises the loss it is given. If the loss rewards clicks, it may learn clickability rather than satisfaction, learning or wellbeing. Objective choice is a human decision encoded in mathematics.


Gradient descent follows local slope information

Gradient descent updates parameters in the direction that reduces loss. In one dimension, w_new = w_old − η(dL/dw), where η is the learning rate.

If w=2, gradient is 3 and learning rate is 0.1, the next value is 2−0.1×3 = 1.7. A very large learning rate can overshoot; a very small one can make training slow.

Modern recommenders may have millions of parameters and use stochastic batches, adaptive optimisers and distributed systems. The classroom formula captures the direction of the mechanism, not the full engineering stack.


Alternating least squares changes one side at a time

Weighted alternating least squares fixes user embeddings while solving for item embeddings, then fixes item embeddings while solving for users. Each stage becomes a simpler optimisation problem.

Google’s guide notes that these alternating steps reduce the chosen squared-loss objective, though the full problem is not jointly convex. Different initialisations can therefore reach different solutions.

This is a useful mathematical strategy: when a coupled problem is hard, hold one part still and improve the other, then alternate while checking progress.


Regularisation discourages overfitting

Add a penalty such as λ(||p||² + ||q||²) to the prediction loss. Large embedding values then carry a cost unless they improve fit enough to justify it.

If data is sparse, an unregularised model can memorise unusual ratings. Strong regularisation can shrink everything too much and underfit genuine patterns.

The parameter λ is selected with validation evidence. Reporting only training loss hides the central question: does the model generalise to interactions it did not train on?


Observed and unobserved interactions need different weights

An observed completion provides more evidence than an item never shown. Weighted matrix factorisation assigns different importance to observed and unobserved cells instead of declaring every blank equally negative.

If one popular item dominates the data, frequency weighting may also prevent it from controlling the objective. The exact weighting scheme changes the model’s priorities.

Weights are not neutral housekeeping. They say which mistakes matter. A responsible model card records them and checks performance for less frequent users and items.


Candidate generation, scoring and re-ranking do different jobs

Google’s recommendation-system overview separates candidate generation, scoring and re-ranking. Candidate generation rapidly narrows a huge catalogue; scoring estimates relevance for the smaller set; re-ranking applies additional constraints.

A candidate generator that never retrieves an item prevents later stages from choosing it, no matter how good the scorer is. Recall therefore matters early, while precision and calibration may matter later.

Re-ranking can incorporate diversity, freshness, safety, availability or policy. It is not merely cosmetic sorting; it can express product obligations that the predictive score omitted.


Top-k selection creates a boundary

If a screen shows ten recommendations, the item ranked tenth appears and the item ranked eleventh does not. A tiny score difference can therefore produce a large exposure difference.

Suppose scores around the boundary are 0.711 and 0.710. Displaying three decimals makes the order visible, but the uncertainty may be larger than 0.001. Deterministic ranking can project false confidence.

Systems can randomise near-ties for experiments or rotate exposure, but the rule must preserve safety and user expectations. Ranking position is a scarce resource.


Precision and recall evaluate retrieved sets

If a system recommends ten items and four are judged relevant, precision@10 is 4/10 = 0.4. If there were eight relevant items available and four appeared, recall@10 is 4/8 = 0.5.

Higher precision may come from showing only familiar popular items; higher recall may require broader candidates. Neither metric captures satisfaction, novelty or long-term value alone.

Relevance labels also need a definition. A click, completion and explicit rating create different evaluation targets. A metric without its label policy is incomplete.


Ranking position can be discounted

Discounted cumulative gain gives more credit when relevant items appear near the top. A common discount uses 1/log2(rank+1), so contribution declines with rank.

If relevance scores at ranks 1, 2 and 3 are 3, 0 and 2, a simplified DCG is 3/log2(2) + 0/log2(3) + 2/log2(4) = 4. Normalised DCG compares this with an ideal ordering.

The metric assumes top positions matter more under a chosen discount. That is reasonable for a short screen but less so when users browse deeply or search purposefully.


Offline evaluation can disagree with real use

An offline test hides some historical interactions and checks whether the system predicts them. This is reproducible and safe, but history was generated by a previous interface and previous recommendations.

Items never exposed cannot be clicked, creating selection bias. A model that copies the previous system may score well offline while adding little discovery.

Online experiments can measure behaviour under deployment, but they need ethical design, guardrails and enough time. Neither offline nor online evidence is automatically complete.


Time-based splits protect against looking ahead

Randomly splitting interactions can put a later rating in training and an earlier interaction in testing. The model then indirectly learns from the future.

A time-based split trains on earlier events and evaluates later ones, better matching deployment. It also exposes drift when tastes, catalogue and interface change.

The test window must be long enough to observe meaningful outcomes. Short windows overvalue immediate clicks and can miss whether recommendations remain useful after novelty fades.


Cold-start users need other evidence

A new user has no interaction vector. A system may ask for a few preferred topics, use current context, recommend generally useful starters or allow direct search.

The onboarding questions should be minimal and transparent. Asking for sensitive attributes simply because they might improve prediction creates privacy and fairness risks.

Exploration should let the profile change quickly. A child borrowing a family tablet should not inherit a permanent identity from someone else’s history.


Cold-start items need a route into exposure

A new item has no collaborative evidence, so popularity-based retrieval can exclude it indefinitely. Content features, editorial curation or exploration slots can provide initial exposure.

This is an example of feedback loops. Items shown more often collect more data, which makes them easier to recommend, which produces more exposure.

An evaluation should separate genuine preference from opportunity. The absence of clicks on an item never shown says nothing about audience interest.


Popularity is a powerful baseline

Recommend the most popular items and measure performance. A complex model should beat this simple baseline on relevant goals, not only on training fit.

Popularity can be useful when evidence is scarce, but it can narrow attention and disadvantage specialised content. Global popularity may also be irrelevant to a particular age, language or learning goal.

Baselines keep teams honest. If a complicated neural model improves precision by 0.1 percentage points at huge cost, the practical gain may not justify deployment.


Diversity reduces near-duplicate lists

A top-ten list containing ten versions of the same item may have high predicted relevance and low usefulness. Diversity can penalise similarity among selected items.

One simplified objective is relevance − λ×redundancy. As λ rises, the list sacrifices some predicted relevance to cover more categories or viewpoints.

There is no universal diversity weight. A medical safety page may require tight relevance; a discovery playlist may benefit from variety. The purpose determines the trade-off.


Novelty and serendipity are not the same

Novelty means an item is unfamiliar or less popular. Serendipity means it is both unexpected and usefully relevant. A random irrelevant item can be novel without being helpful.

Metrics might compare recommendations with a user’s history and global popularity, but surprise is personal. Over-optimising novelty can frustrate someone who needs a dependable answer now.

A good interface can separate “Continue learning” from “Try something different,” letting different objectives coexist visibly.


Calibration matches the list to a broader profile

If a user’s recent reading is 60% science and 40% history, a perfectly narrow list of science may maximise immediate predictions but misrepresent the broader profile.

Calibration compares topic distributions in the recommendation list and user history. Divergence measures can quantify mismatch, though the relevant history window is a judgement choice.

Calibration should not freeze identity. A student is allowed to develop a new interest. The system needs both continuity and room for change.


Fairness requires a defined subject and outcome

“Is the recommender fair?” is too broad. Fair to users, creators, sellers or subjects? Equal exposure, equal error, equal opportunity or comparable satisfaction?

Suppose two creator groups have equal-quality candidates but one receives 80% of impressions. Exposure disparity is measurable, yet causes may include catalogue size, history, model bias and policy constraints.

Mathematics can audit distributions and counterfactual changes. It cannot choose the ethical definition alone. Governance must state whose interests and which harms are being considered.


Feedback loops can amplify early accidents

An item receives a few early clicks, moves upward, gains more exposure and collects more clicks. Popularity becomes partly self-produced by the system.

If click probability is 10% and an item receives 1,000 impressions, expected clicks are 100. Another equally appealing item with 100 impressions expects only 10. Raw click totals then exaggerate the difference.

Rates, confidence intervals and randomised exposure help disentangle appeal from opportunity. Raw counts alone reward whoever was already visible.


Position bias changes click probability

Users click top positions more often partly because they are top. A clicked first result may not be more relevant than an unseen fifth result.

Propensity weighting can adjust for estimated exposure probability. If an item had 0.2 probability of being observed, one observed click may receive weight 1/0.2 = 5 in a simplified estimator.

Large inverse weights create variance, and position propensities must be estimated carefully. Bias correction is a model, not a magic eraser.


A/B tests need guardrails

Randomly assign eligible users to a current and new recommender, then compare predefined outcomes. Randomisation supports causal interpretation when assignment and analysis remain valid.

If click-through rises from 10.0% to 10.3%, the relative rise is 3%, but the absolute change is 0.3 percentage points. Sample size and uncertainty determine whether the difference is distinguishable from noise.

Guardrails might include complaints, harmful-content exposure, latency and creator concentration. A model should not win by improving one metric while damaging the system elsewhere.


Multiple testing can manufacture a winner

If a team tests many variants and outcomes, chance alone can produce an apparently impressive result. Choosing the best metric after seeing data inflates false discoveries.

Pre-register the primary outcome, duration and decision rule. Correct for multiplicity when many hypotheses genuinely matter, and report all planned analyses.

The lesson matches Why Mathematics? | Medical Screening, Base Rates and Test Results: a positive signal means little without the process that generated it.


Privacy changes what should be modelled

Browsing and listening histories can reveal sensitive interests. Collecting more data may improve a narrow metric while increasing privacy risk.

Data minimisation asks whether each field is necessary. Aggregation, retention limits, access controls and privacy-preserving techniques can reduce exposure, but none makes misuse impossible.

A child-facing system deserves especially careful design. Personalisation should not require covert profiling or make opting out unusably difficult.


Negative sampling changes the training question

With millions of items, comparing every positive interaction against every unobserved item is expensive. Training may sample a small set of unobserved items as negatives.

The sampling distribution matters. Choosing only popular negatives teaches a different boundary from sampling uniformly across the catalogue. If an item was never exposed, calling it negative remains an approximation rather than an observed dislike.

Evaluation should not quietly reuse the same convenient sampling scheme as proof of real-world ranking quality. A model can look excellent at separating easy sampled negatives while struggling among realistic candidates.


Softmax turns scores into a probability distribution

Given candidate scores z_i, softmax assigns probability exp(z_i)/sum_j exp(z_j). Exponentiation makes higher scores count more while the denominator normalises the probabilities to sum to one.

For scores 2, 1 and 0, exponentials are about 7.389, 2.718 and 1. The probabilities are approximately 0.665, 0.245 and 0.090. Adding the same constant to every score leaves these probabilities unchanged.

A temperature parameter can flatten or sharpen the distribution. Lower temperature concentrates probability on top items; higher temperature explores more widely. Temperature controls uncertainty representation, not the truth of the underlying scores.


Approximate nearest neighbours trade exactness for speed

An exact search can compare a user vector with every item vector, but that becomes costly for enormous catalogues. Approximate nearest-neighbour indexes organise the space so promising regions are searched first.

The method may miss the mathematically closest item, so teams measure recall of the retrieval stage as well as latency. A candidate absent from retrieval cannot be rescued by a later scorer.

This is a practical optimisation trade-off: a slightly imperfect answer in milliseconds may serve the user better than an exact answer after a long delay, provided important safety and fairness constraints remain protected.


Multi-armed bandits balance learning and earning

A recommender sometimes needs to choose between exploiting items with high estimated reward and exploring uncertain items to learn more. Multi-armed bandit models formalise this tension.

An upper-confidence-bound rule might rank an item by estimated reward plus an uncertainty bonus. Items with little data receive more opportunity, while strong evidence eventually dominates.

Exploration affects real people, so it needs limits. A learning system should not expose users to unsafe or unsuitable content merely to improve its estimates. Feasible exploration occurs inside a governed candidate set.


Long-term value can disagree with the next click

A sensational item may attract an immediate click and reduce trust later. A challenging lesson may be skipped now yet support learning when paired with preparation.

Sequential models try to estimate future states and cumulative reward, but longer horizons make causal assumptions harder. The platform’s actions change what data becomes available next.

Short-term and long-term metrics should be reported together. Choosing a discount factor or horizon is not a technical afterthought; it states how much the system values future wellbeing relative to immediate response.


Explanations should reflect the actual model

“Because you watched X” is helpful only if X genuinely influenced the recommendation. A decorative explanation can create false confidence.

Nearest-neighbour and content models may support local explanations through similar items or features. Complex re-ranking can involve several reasons, including availability and safety.

An explanation should be understandable without pretending to reveal a person’s inner preferences. It can describe evidence and uncertainty rather than claiming certainty about identity.


Manipulation is different from assistance

Optimising time spent can produce endless feeds even when the user intended a short visit. The mathematics can be technically successful and still misalign with human goals.

Interfaces can offer stopping cues, chronological modes, topic controls and explicit objectives such as “help me revise for twenty minutes.” User agency becomes part of system design.

The important question is not only “Can we predict the next click?” but “What useful purpose should the prediction serve?”


Did You Know? Embeddings create a geometry of behaviour

Learned user and item vectors turn interaction patterns into points in a space. Nearby directions can encode shared behaviour even when nobody manually named the relationship.

Vector arithmetic can then retrieve candidates rapidly. Approximate nearest-neighbour algorithms trade a little exactness for speed when catalogues contain millions of items.

The geometry is powerful and limited. Distance reflects training data and objective; it does not prove that two people or two works are essentially alike.


A student project: build a tiny book recommender

Create a fictional table with six readers and eight books. Use a 1–5 rating scale, leaving at least half the cells blank. State that blanks mean unobserved.

Compute each reader’s mean rating and compare two users using mean-centred cosine similarity over co-rated books. Predict one missing rating with a weighted average from two neighbours.

Then build a content vector for each book using three declared genres. Compare content and collaborative recommendations. Explain one disagreement instead of hiding it.


A second project: audit a ranked list

Invent 20 candidate lessons with predicted relevance, topic, age suitability and freshness. Select the top five by relevance alone.

Create a re-ranking rule that removes unsuitable ages and penalises repeated topics. Calculate how average relevance, topic coverage and freshness change.

Write the rule before seeing which lessons benefit. The project shows that ranking is a policy implemented through arithmetic, not a neutral final sort.


Practical learning steps for students

Start with vectors, dot products, cosine similarity and weighted averages. Build tiny tables by hand before using code. Keep training, validation and test data separate.

Next learn matrices, linear algebra, probability, optimisation and experimental design. Implement a popularity baseline and a nearest-neighbour model before matrix factorisation.

Finally, inspect who receives exposure, how missing data arose and whether the objective matches the human purpose. Technical accuracy and responsible reasoning should grow together.


Parent guidance: ask what the system is optimising

When a platform says “recommended for you,” ask what action trained the model and what outcome the platform rewards. A recommendation based on completion may differ from one based on clicks.

Give children permission to reset history, use search, choose a different route and stop. A personalised feed should not become a command or a label about who they are.

Why Mathematics? | Comparing Percentages Fairly helps compare rate changes, while Why Mathematics? | Spreadsheets, Formulas and Reliable Decisions supports a transparent classroom model.


Learning and careers should remain open

Recommendation mathematics appears in machine learning, data science, software engineering, information retrieval, product analytics, digital media and education technology.

These roles also require programming, statistics, communication, privacy, security, domain knowledge and ethical judgement. Mathematics is a foundation, not an automatic career ticket or salary promise.

The authorised mathematics keyword cloud identifies “maths for machine learning” and “maths for AI” as real reader intents. Students can explore those pathways while keeping broader options open through algebra, statistics and computing.


Questions students and parents often ask

Does a recommendation system know what I like?

It estimates patterns from available signals. Those signals are incomplete and context-dependent, so the estimate can be useful without being a fact about your identity.

Is cosine similarity always better than a dot product?

No. Cosine compares direction; dot products include magnitude. The appropriate choice depends on how vectors were built and what scale means.

Does a blank rating mean dislike?

Usually not. It often means the item was never seen or rated. Treating every blank as negative can bias a model.

Why not recommend only the highest predicted scores?

Safety, diversity, freshness, availability and user control may matter. Re-ranking makes those additional constraints explicit.

Can recommendations create filter bubbles?

They can narrow exposure when optimisation repeatedly favours familiar content. Exploration, diversity and user controls can reduce that risk, though no single metric solves it.

What mathematics should a student learn next?

Practise vectors, matrices, dot products, probability, weighted averages, optimisation, statistics, evaluation metrics and experimental design.


Mathematics makes personalisation inspectable

Recommendation systems matter because they allocate attention. Vectors turn behaviour into comparable representations. Matrix factorisation compresses sparse interactions. Loss functions define what training values. Ranking metrics evaluate some outcomes, while re-ranking expresses additional responsibilities.

The hopeful lesson is that personalisation need not be mysterious. A student can reproduce a tiny model, trace every score, test an alternative metric and ask who was excluded by the candidate generator.

That habit transfers beyond feeds. Admissions shortlists, search results, job matches and learning suggestions all combine prediction with allocation. Clear mathematics does not make the values disappear; it makes them visible enough to question, audit and improve.

Continue through the Mathematics Learning Hub or read Why Mathematics? | Video Games, Coordinates and Collision Detection for another computing setting where vectors turn a screen action into a measurable decision.