Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Need a help with DAX (confidence Interval) -New USER

 
Hello, I am a new user of Dax.  I need to calculate the confidence Interval based on ITEMSID  in the table.

Also, Could you please suggest the best way to plot confidence Intervals based on items.  Thanks!

 

AuctionIdBidderIDItemsIDBID($)
A11235
A212315
A27809
A378010
B499215
B399220
B510030
B610032
B688920
D715530
D815535
D611030
D911032
 
 
 
 
 
 
  • Anonymous's avatar
    Anonymous
    6 years ago
    // hidden auxiliary measure
    [__95-Conf Delta] =
    var __sd = STDEV.S( T[BID($)] )
    var __size = COUNTROWS( T )
    var __alpha = 0.05
    var __delta =
    	CONFIDENCE.T(
    		__alpha, 
    		__sd,
    		__size
    	)	
    return
    	__delta
    
    [95-Conf Lower Bound] =
    var __mean = AVERAGE( T[BID($)] )
    var __delta = [__95-Conf Delta]
    return
    	__mean - __delta
    	
    [95-Conf Upper Bound] =
    var __mean = AVERAGE( T[BID($)] )
    var __delta = [__95-Conf Delta]
    return
    	__mean + __delta
    
    // The above work for any slicing,
    // not only when you do by ITEMSID.
    // Now you can plot both measures
    // against anything in your table(s).

6 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    Anonymous - What is your calculation for confidence interval?

    • Anonymous's avatar
      Anonymous
      Not applicable

      95%. Thanks

  • Anonymous's avatar
    Anonymous
    Not applicable
    You have to tell which formula you want to use since there are different formulas for different things. I'd assume you want an interval - that is, the bounds - for the mean but even so, you have to say what assumptions you're making about the data.

    Thanks.
    • Anonymous's avatar
      Anonymous
      Not applicable

      Anonymous 

       

      Yes, you are right. I am looking for interval based on means. Formula I want to use is Confidence.T(). 

    • Anonymous's avatar
      Anonymous
      Not applicable
      Hi, I am a new user of DAX.  Could you please help me with the following problems.

      I am trying to get  Probability (Poison Distribution) based on the Item ID for a given range of values. For Example,  itemID 123, there is 10%  probability values fall between 10 to 15. 

       

      I used the following formula. But it is picking a range of values from 0 to Given value.  Need something like a Poison Distribution Column. 

       

      ItemsIDBID($)Poison Distribution Probability
      123510%
      1231510%
      780915%
      7801015%
      9921510%
      9922010%
      100303%
      100323%
      889201%
      155302%
      155352%
      1103017%
      1103217%

       

      Currently, I am getting this with the following Measure formula.

      Prob = POISSON.DIST(10;[MEAN2];TRUE)

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

      Thank you in anticipation.

       

       
       
       
       
       
       
       
  • Anonymous's avatar
    Anonymous
    Not applicable
    // hidden auxiliary measure
    [__95-Conf Delta] =
    var __sd = STDEV.S( T[BID($)] )
    var __size = COUNTROWS( T )
    var __alpha = 0.05
    var __delta =
    	CONFIDENCE.T(
    		__alpha, 
    		__sd,
    		__size
    	)	
    return
    	__delta
    
    [95-Conf Lower Bound] =
    var __mean = AVERAGE( T[BID($)] )
    var __delta = [__95-Conf Delta]
    return
    	__mean - __delta
    	
    [95-Conf Upper Bound] =
    var __mean = AVERAGE( T[BID($)] )
    var __delta = [__95-Conf Delta]
    return
    	__mean + __delta
    
    // The above work for any slicing,
    // not only when you do by ITEMSID.
    // Now you can plot both measures
    // against anything in your table(s).