Tag: math

External Knowledge in LLMs
Reading Time: 10 minutes
[medium and substack discussion] LLMs are trained on finite set of data. While it can answer wide variety of questions across multiple domain, it often fails to answer questions which are highly domainspecific and out of its training context. Additionally, training LLMs from scratch for any new information is not possible like traditional models with…

Mathematical Expectation for Interviews
Reading Time: 5 minutes
In this post, I will just solve for expected value of a probabilistic model with as many methods as I can. You can encountered these types of problem in data science and quant interviews. Problem Assume there is a 2×2 grid, as shown in the figure below. You can randomly walk to a neighboring block…