Question: You can think this as a term-document matrix, where each number indicate the term frequency (TF) of a term (column) in a document (row). Given

You can think this as a term-document matrix, where each number indicate the term frequency (TF) of a term (column) in a document (row).

Given this collection of 5 documents, your need to use proper Excel formula to calculate document frequency (DF) and TF-IDF.

Hint:

  • For cells in Row 11, you can use the COUNTIF() function.
  • For cells in Rows 14-18, make good use of relative and absolute cell references when creating your formula. You can think this as a term-document matrix,
Rug LCIS Long SCUISICIVIL B11 fax 0 A B D E F G H 1 K L M N o P Q R s T U V w Y Z 1 1 2 Term Frequency (TF) Victarion Tyrion Lan Theon Gre Sansa Star Samwell 1 Quentyn I Melisandr Jon Snow Jon Conni Jaime Lan Eddard St Davos Sea Daenerys Cersei Lar Catelyn Tu Brienne o Bran Stark Barristan Asha Grey Arys Oakh Arya Stark Arianne M Areo Hota Aeron Greyjoy 3 A Game of Thrones 0 9 0 6 0 0 0 9 0 0 15 0 10 0 11 0 7 0 0 0 5 0 0 0 4 A Clash of Kings 0 15 6 8 0 0 0 8 0 0 0 3 5 0 7 0 7 0 0 0 10 0 0 0 5 A Storm of Swords 0 11 0 7 5 0 0 12 0 9 0 6 6 0 7 0 4 0 0 0 13 0 0 0 6 A Feast for Crows 2 0 0 3 5 0 0 0 0 7 0 0 0 10 0 8 0 0 1 1 3 2 1 2 7 A Dance with Dragons 2 12 7 0 0 4 1 13 2 1 0 4 10 2 0 0 3 4 3 0 2 0 1 8 8 9 # of documents (N) 5 10 11 Document Frequency (DF) 12 13 TF.IDF Victarion Tyrion Lar Theon Gre Sansa Star Samwell 1 Quentyn Melisandr Jon Snow Jon Conni Jaime Lan Eddard St Davos Sea Daenerys Cersei Lar Catelyn Tu Brienne o Bran Stark Barristan: Asha Grey Arys Oakh Arya Stark Arianne M Areo Hota Aeron Greyjoy 14 A Game of Thrones 15 A Clash of Kings 16 A Storm of Swords 17 A Feast for Crows 18 A Dance with Dragons 19 20 21 Rug LCIS Long SCUISICIVIL B11 fax 0 A B D E F G H 1 K L M N o P Q R s T U V w Y Z 1 1 2 Term Frequency (TF) Victarion Tyrion Lan Theon Gre Sansa Star Samwell 1 Quentyn I Melisandr Jon Snow Jon Conni Jaime Lan Eddard St Davos Sea Daenerys Cersei Lar Catelyn Tu Brienne o Bran Stark Barristan Asha Grey Arys Oakh Arya Stark Arianne M Areo Hota Aeron Greyjoy 3 A Game of Thrones 0 9 0 6 0 0 0 9 0 0 15 0 10 0 11 0 7 0 0 0 5 0 0 0 4 A Clash of Kings 0 15 6 8 0 0 0 8 0 0 0 3 5 0 7 0 7 0 0 0 10 0 0 0 5 A Storm of Swords 0 11 0 7 5 0 0 12 0 9 0 6 6 0 7 0 4 0 0 0 13 0 0 0 6 A Feast for Crows 2 0 0 3 5 0 0 0 0 7 0 0 0 10 0 8 0 0 1 1 3 2 1 2 7 A Dance with Dragons 2 12 7 0 0 4 1 13 2 1 0 4 10 2 0 0 3 4 3 0 2 0 1 8 8 9 # of documents (N) 5 10 11 Document Frequency (DF) 12 13 TF.IDF Victarion Tyrion Lar Theon Gre Sansa Star Samwell 1 Quentyn Melisandr Jon Snow Jon Conni Jaime Lan Eddard St Davos Sea Daenerys Cersei Lar Catelyn Tu Brienne o Bran Stark Barristan: Asha Grey Arys Oakh Arya Stark Arianne M Areo Hota Aeron Greyjoy 14 A Game of Thrones 15 A Clash of Kings 16 A Storm of Swords 17 A Feast for Crows 18 A Dance with Dragons 19 20 21

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!