Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
guyscottsouth
Frequent Visitor

Significance testing

I have two unequally sized samples with similar varience and broadly normal distributions. What is the best way to perform a two tailed significance test to determine if the two means are significantly difference nd how do I do this in power BI desktop?

Can a 2 tailed t test be done easily? 

11 REPLIES 11
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @guyscottsouth,

 

There are many build-in statistical functions in Power BI. It seems this isn't a hard work for Power BI. If you can post more details, maybe I can translate them into DAX formula, which is a functional language used by Power BI. 

Please reference these functions: https://msdn.microsoft.com/en-us/library/ee634822.aspx

and this post: significance-testing

 

Best Regards!

Dale

 

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 I have a much larger dataset, but this is a smaller version. I want to look by question at the result score for those answering yes against those answering no, in the full dataset the variances in the two samples are similar, but the sample size is quite variable. I was hopeing to use a 2 tailed T test to test the null hypothesis that the means of the two samples are the same. Ideally i would show the differences between the means and the confidence level.

 

Assessment numberQuestion numberAnswerOverall Result
11NO24.2
12YES24.2
13YES24.2
14NO24.2
15YES24.2
21YES68.9
22YES68.9
23NO68.9
24YES68.9
25YES68.9
31YES56.1
32NO56.1
33NO56.1
34YES56.1
35NO56.1
41NO74.2
42NO74.2
43NO74.2
44NO74.2
45NO74.2
51NO66.7
52YES66.7
53YES66.7
54YES66.7
55YES66.7
61NO11.6
62NO11.6
63YES11.6
64NO11.6
65YES11.6
71YES92.6
72YES92.6
73YES92.6
74YES92.6
75NO92.6
81NO48.8
82NO48.8
83NO48.8
84YES48.8
85YES48.8
91NO55.8
92NO55.8
93NO55.8
94YES55.8
95YES55.8
101NO94.3
102NO94.3
103YES94.3
104YES94.3
105YES94.3
111YES24.1
112NO24.1
113YES24.1
114NO24.1
115NO24.1
121NO16.0
122YES16.0
123YES16.0
124YES16.0
125NO16.0
131YES76.5
132NO76.5
133NO76.5
134YES76.5
135YES76.5
141NO32.8
142NO32.8
143NO32.8
144YES32.8
145NO32.8
151NO58.3
152NO58.3
153NO58.3
154YES58.3
155NO58.3
161NO37.2
162NO37.2
163NO37.2
164YES37.2
165NO37.2

 

 

Anonymous
Not applicable

In your context, what does "overall result" indicate?

The overall result could be anything really, but it's probably most easily demonstrated as:

 

Q: Did you revise for your exam?

A: Yes

A: No

 

The result for each group would be the mean average score of the 'Yes' cohort and the mean average score for the 'No' ohort.

In this case, one might expect the the 'Yes' cohort average test score to be significantly different from the 'No' cohort, where as posing the question:

 

Q: Are you taller than 5'10"?

 

is somewhat less likely to show a statisticaly significant effect

 

I hope that helps

Anonymous
Not applicable

Thank you very much, that makes sense.

 

I know this is from a few years back, but did you end up using .pbix file Dale shared? We've been working to reverse engineer it a bit for our purposes but have hit a few snags.

 

Or, alternatively, have you created or encountered other DAX-based approaches for sig. testing in Power BI?

It was helpul, but I ended up going back and building something from first principles. What I would say is that the exercise is significantly easier in R or python, so I've subsequently used that

Apologies for the bump, but i wondered if anyone had any further advice?

Hi @guyscottsouth,

 

I recalled my statistics. I don't know if this could help. Maybe you review it first, then we could go further. Please check this file:https://1drv.ms/u/s!ArTqPk2pu-BkgRFQZ5z_1PDA0QpQ.Significance testing.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

 

 

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Dale, do you stil have the file? I am Looking for the exact same thing. The link is not valid anymore.

Thanks

Anonymous
Not applicable

This is awesome Dale. Are you by chance available at all to work me though how I might re-create this to generate a template table I can use on all or most of my data sets?

 

Thanks for the response, your time and effort are greatly appreciated, I'll have a look through tomorrow as you suggest and get back to you

 

regards

 

Guy

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.