Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

Shazam is a mobile phone app that helps users determine a song that may be currently playing where ever they are.

Shazam is a mobile phone app that helps users determine a song that may be currently playing where ever they are.

Lets try tounderstand the basic working principle of the application. To keep things simple suppose the following

• there are only two possible songs and they are equally likely

• the application records a few seconds of the song, which we will assume, again for simplicty, correspond to the first few seconds of the song, giving a vector of length n samples. These are represented by two equal length vectors

a = (a1,a2,….an) or b = (b1,b2,….bn)

• assume that the vectors have equal energy i.e., a21 +a22 +….a2n = b21 +b22 +….b2n. and assume that they are roughly orthogonal i.e., <a,b> = δ.

• if song a is playing the recording is modelled by a vector X corresponding to the samples a plus IID Gaussian noise with meanzero and variance σ2, i.e.,

X = a+N where Xi = ai +Ni

and Ni ∼ N(0,σ2). A similar model applies if song b is playing.A basic strategy in determing which song is playing is suggested to you. Given you record the vector X = x determine if

<x,a> ≥ <x,b> if so it is song a otherwise it is b. This particular structure for deciding is called a matched filter as we match the received signal(x1, x2…xn) with each one of the possible songs by inner products and then select the one which gives the highest value.

1. Prove that this rule corresponds to the MAP decision rule.

2. In practice the snippet you record is not the first few seconds of the song, but could be any snippet of a given length. How would you address this problem?

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"