{
  "id": 8287,
  "title": "Offer Quantity and Value",
  "url": "/competitions/acquire-valued-shoppers-challenge/discussion/8287",
  "author_name": "",
  "post_date": "2014-05-26T22:18:34.523Z",
  "votes": 3,
  "comment_count": 16,
  "views": 5151,
  "content": "<p>Hi all,</p>\n<p>Examining the data and trying to exploit all transactions (not only if customer X has bought the same product/brand/company)&nbsp;I find the explanation of some of the data somewhat confusing.&nbsp;</p>\n<p>Mainly, what is the meaning of Offer value and quantity? According to the specifications in offers.csv:</p>\n<p><strong>quantity</strong> - The number of units one must purchase to get the discount</p>\n<p>I really find this confusing, because in transactions.csv there are transactions of the same product with different 'productsize' and 'productquantity'. So, I'm not sure how to interpret this quantity. &nbsp;For example, I found that product&nbsp;(3203, 13474, 106414464 /&nbsp;category, brand, company) has&nbsp;131492&nbsp;transactions registered with the following product sizes:(&nbsp;24, 20, 10, 8, 6, 5). You can assume the sizes are in Liters, but it doesn't really matter</p>\n<p><strong>offervalue</strong> - The dollar value of the offer</p>\n<p>This field is related to the other, as I assume this is the total amount of money a customer will have as a discount for buying a particular product. But, how does that relate with the quantity/size of the transactions?&nbsp;</p>\n<p>Following the same example as before, the offer for the product mentioned says that there its value of 0.75 buying a minimum of 1 unit. There are many problems here:</p>\n<p>- Is it a 0.75$ dollars discount regardless of the size bought (5L or 8L, for example)? That doesn't make much sense to me</p>\n<p>- Is &nbsp;it 0.75$ dollars for each unit (Liters) purchased? In that case, examining prices, some of them would be negative, which doesn't make much sense either</p>\n<p>Is someone in the same situation?&nbsp;</p>\n\n<p>Thanks</p>",
  "messages": [
    {
      "id": "47102",
      "postDate": "05/26/2014 22:18:34",
      "content": "<p>Hi all,</p>\n<p>Examining the data and trying to exploit all transactions (not only if customer X has bought the same product/brand/company)&nbsp;I find the explanation of some of the data somewhat confusing.&nbsp;</p>\n<p>Mainly, what is the meaning of Offer value and quantity? According to the specifications in offers.csv:</p>\n<p><strong>quantity</strong> - The number of units one must purchase to get the discount</p>\n<p>I really find this confusing, because in transactions.csv there are transactions of the same product with different 'productsize' and 'productquantity'. So, I'm not sure how to interpret this quantity. &nbsp;For example, I found that product&nbsp;(3203, 13474, 106414464 /&nbsp;category, brand, company) has&nbsp;131492&nbsp;transactions registered with the following product sizes:(&nbsp;24, 20, 10, 8, 6, 5). You can assume the sizes are in Liters, but it doesn't really matter</p>\n<p><strong>offervalue</strong> - The dollar value of the offer</p>\n<p>This field is related to the other, as I assume this is the total amount of money a customer will have as a discount for buying a particular product. But, how does that relate with the quantity/size of the transactions?&nbsp;</p>\n<p>Following the same example as before, the offer for the product mentioned says that there its value of 0.75 buying a minimum of 1 unit. There are many problems here:</p>\n<p>- Is it a 0.75$ dollars discount regardless of the size bought (5L or 8L, for example)? That doesn't make much sense to me</p>\n<p>- Is &nbsp;it 0.75$ dollars for each unit (Liters) purchased? In that case, examining prices, some of them would be negative, which doesn't make much sense either</p>\n<p>Is someone in the same situation?&nbsp;</p>\n\n<p>Thanks</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "47306",
      "postDate": "05/30/2014 05:26:58",
      "content": "<p>For me seems that product size is thrash field, 'cause we can see in transactions many products with widely varying product size for SAME price. That seems to me as it can't be used..</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "47417",
      "postDate": "05/31/2014 21:46:31",
      "content": "<p>That's what I observed too.</p>\n<p>I tried to compare prices for the same category products with different brands and company, but it seems rather difficult. I thought it would be an important factor when choosing one product over the other. Apparently we can't easily exploit this information</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "48422",
      "postDate": "06/01/2014 05:17:01",
      "content": "<p>What was problem for you? (Our team made this task, so I can help you with figuring out easiest way)</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "48443",
      "postDate": "06/01/2014 20:21:40",
      "content": "<p>For example, for the product&nbsp;(9115, 93904, 108500080) (category, brand, company)</p>\n<p>I got these prices for 0.2 and 0.05 quantities of product:</p>\n<p>0.2, [ 4. , 4.5 , 5.99 ]<br>0.05, [ 0.89, 0.99, 0.99, 1. , 1.49]</p>\n\n<p>There are more quantities, there are more prices also. But this is just an example for one particular product.&nbsp;</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "48445",
      "postDate": "06/01/2014 20:50:51",
      "content": "<p>That data makes sense.</p>\n<p>Look at real-world examples:</p>\n<p>http://www.coupons.com/</p>\n<p>&quot;Save $1 on any purchase of (two)&nbsp;Ziploc brand bags.&quot;</p>\n<p>It doesn't matter&nbsp;the size of the container purchased. In this case, you will save $1 if you buy one box of 100 count and one box of 500 count, or just 2 boxes of 100 count.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "48446",
      "postDate": "06/01/2014 21:14:21",
      "content": "<p>That's what I'm doing right now. Although having the same discount for two completely different sizes seems odd to me.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "48449",
      "postDate": "06/01/2014 21:33:18",
      "content": "<p>I&nbsp;think it's ok just to know price per unit. So you can divide amount of money of quntity of item, and then find mean price of median, what you prefer.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "48519",
      "postDate": "06/02/2014 21:11:32",
      "content": "<p>Yes,</p>\n<p>I was using the median, it seemed a reasonable approximation.&nbsp;</p>\n<p>First experiments show that many offered products are way expensive than the others. Did you find anything similar?</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "48548",
      "postDate": "06/03/2014 07:01:43",
      "content": "<p>I&nbsp;didn't watch&nbsp;concrete offer prices, just try to use them. I will rethink this part on this week so I'll write you about what I find</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "48911",
      "postDate": "06/09/2014 16:28:09",
      "content": "<p>Hi everybodi,</p>\n\n<p>is logical that there are different offers exactly the same? For example;</p>\n\n<p>offer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; categ&nbsp;&nbsp;&nbsp; q.&nbsp; &nbsp;company&nbsp;&nbsp; offervalue brand</p>\n<p>1198271 &nbsp;5558 &nbsp;&nbsp; 1&nbsp;&nbsp; 107120272&nbsp;&nbsp;&nbsp; 1.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5072<br>1198272 &nbsp;5558&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; 107120272&nbsp;&nbsp;&nbsp;&nbsp;1.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5072<br>1198273&nbsp; 5558&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; 107120272&nbsp;&nbsp;&nbsp; 1.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5072<br>1198274&nbsp; 5558&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; 107120272&nbsp;&nbsp;&nbsp; 1.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5072<br>1198275&nbsp; 5558&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; 107120272&nbsp;&nbsp;&nbsp; 1.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5072</p>\n\n<p>regards!</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "48913",
      "postDate": "06/09/2014 16:43:28",
      "content": "<p>Hi,</p>\n<p>I won't be too worried about that, real company data usually is messy, maybe they don't have time to check whether the offer already exists so they create a new one exactly the same, it's very possible.</p>\n\n<p>Mike</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "48918",
      "postDate": "06/09/2014 17:37:11",
      "content": "<p>You found information that you think is useful, so use it -- make better predictor ;)</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "48919",
      "postDate": "06/09/2014 17:37:54",
      "content": "<p>Could be the offers were in different markets, different chains, or launched at different times. I'd look into that if you think it's important.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "48925",
      "postDate": "06/09/2014 21:39:40",
      "content": "<p>In the offers table, it's basically saying the customer can get e.g. $1 discount when purchasing an item in category X, brand Y. This is a one-time event.</p>\n<p>It's not uncommon for the offer to be valid for more than one product size, e.g. the 8 oz, 12 oz or 16 oz package size. The company making the offer simply wants you to try the product and doesn't care which size you buy (but you can pick only one).</p>\n<p>As for the prices in the transaction file, these are actual prices paid. It's common to have differing prices by market or time. Some promotions are from the manufacturer, and will exist in several chains at once, but sometimes a chain (or even an individual store) may make a promotional offer, and so prices can vary for the same item at different chains.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "49016",
      "postDate": "06/11/2014 17:34:15",
      "content": "<p>can we use the median as a new feature? Is this a good idea? &nbsp;Thank you all.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "49019",
      "postDate": "06/11/2014 18:09:32",
      "content": "<p>In other thread there was a person who said that median values in addtition to means helped him a lot</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 47306,
      "author_name": "dremovd",
      "author_url": "",
      "post_date": "05/30/2014 05:26:58",
      "content": "<p>For me seems that product size is thrash field, 'cause we can see in transactions many products with widely varying product size for SAME price. That seems to me as it can't be used..</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 47417,
      "author_name": "guillempalou",
      "author_url": "",
      "post_date": "05/31/2014 21:46:31",
      "content": "<p>That's what I observed too.</p>\n<p>I tried to compare prices for the same category products with different brands and company, but it seems rather difficult. I thought it would be an important factor when choosing one product over the other. Apparently we can't easily exploit this information</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 48422,
      "author_name": "dremovd",
      "author_url": "",
      "post_date": "06/01/2014 05:17:01",
      "content": "<p>What was problem for you? (Our team made this task, so I can help you with figuring out easiest way)</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 48443,
      "author_name": "guillempalou",
      "author_url": "",
      "post_date": "06/01/2014 20:21:40",
      "content": "<p>For example, for the product&nbsp;(9115, 93904, 108500080) (category, brand, company)</p>\n<p>I got these prices for 0.2 and 0.05 quantities of product:</p>\n<p>0.2, [ 4. , 4.5 , 5.99 ]<br>0.05, [ 0.89, 0.99, 0.99, 1. , 1.49]</p>\n\n<p>There are more quantities, there are more prices also. But this is just an example for one particular product.&nbsp;</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 48445,
      "author_name": "inversion",
      "author_url": "",
      "post_date": "06/01/2014 20:50:51",
      "content": "<p>That data makes sense.</p>\n<p>Look at real-world examples:</p>\n<p>http://www.coupons.com/</p>\n<p>&quot;Save $1 on any purchase of (two)&nbsp;Ziploc brand bags.&quot;</p>\n<p>It doesn't matter&nbsp;the size of the container purchased. In this case, you will save $1 if you buy one box of 100 count and one box of 500 count, or just 2 boxes of 100 count.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 48446,
      "author_name": "guillempalou",
      "author_url": "",
      "post_date": "06/01/2014 21:14:21",
      "content": "<p>That's what I'm doing right now. Although having the same discount for two completely different sizes seems odd to me.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 48449,
      "author_name": "dremovd",
      "author_url": "",
      "post_date": "06/01/2014 21:33:18",
      "content": "<p>I&nbsp;think it's ok just to know price per unit. So you can divide amount of money of quntity of item, and then find mean price of median, what you prefer.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 48519,
      "author_name": "guillempalou",
      "author_url": "",
      "post_date": "06/02/2014 21:11:32",
      "content": "<p>Yes,</p>\n<p>I was using the median, it seemed a reasonable approximation.&nbsp;</p>\n<p>First experiments show that many offered products are way expensive than the others. Did you find anything similar?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 48548,
      "author_name": "dremovd",
      "author_url": "",
      "post_date": "06/03/2014 07:01:43",
      "content": "<p>I&nbsp;didn't watch&nbsp;concrete offer prices, just try to use them. I will rethink this part on this week so I'll write you about what I find</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 48911,
      "author_name": "mike64",
      "author_url": "",
      "post_date": "06/09/2014 16:28:09",
      "content": "<p>Hi everybodi,</p>\n\n<p>is logical that there are different offers exactly the same? For example;</p>\n\n<p>offer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; categ&nbsp;&nbsp;&nbsp; q.&nbsp; &nbsp;company&nbsp;&nbsp; offervalue brand</p>\n<p>1198271 &nbsp;5558 &nbsp;&nbsp; 1&nbsp;&nbsp; 107120272&nbsp;&nbsp;&nbsp; 1.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5072<br>1198272 &nbsp;5558&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; 107120272&nbsp;&nbsp;&nbsp;&nbsp;1.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5072<br>1198273&nbsp; 5558&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; 107120272&nbsp;&nbsp;&nbsp; 1.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5072<br>1198274&nbsp; 5558&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; 107120272&nbsp;&nbsp;&nbsp; 1.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5072<br>1198275&nbsp; 5558&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; 107120272&nbsp;&nbsp;&nbsp; 1.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5072</p>\n\n<p>regards!</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 48913,
      "author_name": "mikedemurtas",
      "author_url": "",
      "post_date": "06/09/2014 16:43:28",
      "content": "<p>Hi,</p>\n<p>I won't be too worried about that, real company data usually is messy, maybe they don't have time to check whether the offer already exists so they create a new one exactly the same, it's very possible.</p>\n\n<p>Mike</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 48918,
      "author_name": "dremovd",
      "author_url": "",
      "post_date": "06/09/2014 17:37:11",
      "content": "<p>You found information that you think is useful, so use it -- make better predictor ;)</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 48919,
      "author_name": "inversion",
      "author_url": "",
      "post_date": "06/09/2014 17:37:54",
      "content": "<p>Could be the offers were in different markets, different chains, or launched at different times. I'd look into that if you think it's important.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 48925,
      "author_name": "rsteger",
      "author_url": "",
      "post_date": "06/09/2014 21:39:40",
      "content": "<p>In the offers table, it's basically saying the customer can get e.g. $1 discount when purchasing an item in category X, brand Y. This is a one-time event.</p>\n<p>It's not uncommon for the offer to be valid for more than one product size, e.g. the 8 oz, 12 oz or 16 oz package size. The company making the offer simply wants you to try the product and doesn't care which size you buy (but you can pick only one).</p>\n<p>As for the prices in the transaction file, these are actual prices paid. It's common to have differing prices by market or time. Some promotions are from the manufacturer, and will exist in several chains at once, but sometimes a chain (or even an individual store) may make a promotional offer, and so prices can vary for the same item at different chains.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 49016,
      "author_name": "potato",
      "author_url": "",
      "post_date": "06/11/2014 17:34:15",
      "content": "<p>can we use the median as a new feature? Is this a good idea? &nbsp;Thank you all.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 49019,
      "author_name": "dremovd",
      "author_url": "",
      "post_date": "06/11/2014 18:09:32",
      "content": "<p>In other thread there was a person who said that median values in addtition to means helped him a lot</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "47102": "",
    "47306": "",
    "47417": "",
    "48422": "",
    "48443": "",
    "48445": "",
    "48446": "",
    "48449": "",
    "48519": "",
    "48548": "",
    "48911": "",
    "48913": "",
    "48918": "",
    "48919": "",
    "48925": "",
    "49016": "",
    "49019": ""
  },
  "source": "meta"
}