File:Interaction between sample size, effect size, and statistical power.svg
From testwiki
Jump to navigation
Jump to search
Original file (SVG file, nominally 1,152 × 960 pixels, file size: 366 KB)
Contents
This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.
Summary
)
ax.axvline(threshold, color='gray', linestyle='--', label='Threshold')
ax.fill_between(x, null_dist, where=(x > threshold), color='red', alpha=0.3, label='Significance (α)')
ax.fill_between(x, alt_dist, where=(x > threshold), color='green', alpha=0.3, label='Power (1-β)')
# Set subplot title and labels
ax.set_title(rf'$n={n}, \theta={theta}$ Power$={power:.2f}}})
ax.set_xlabel('Sample Mean (x̄)')
ax.set_yticks([])
ax.set_xlim(xmin, xmax)
# ax.set_ylabel('Probability Density')
if i == 0 and j == 0: ax.legend(fontsize='small')
plt.tight_layout() plt.savefig('power_analysis.svg') plt.show() ``` }} |date=2024-07-26 |source=Own work |author=Cosmia Nebula }}
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Captions
Add a one-line explanation of what this file represents
Items portrayed in this file
depicts
image/svg+xml
375,179 byte
21ee0e509f5fa685a496e95554a3efd3f0601da3
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 03:11, 27 July 2024 | 1,152 × 960 (366 KB) | wikimediacommons>Cosmia Nebula | Uploaded while editing "Replication crisis" on en.wikipedia.org |
File usage
There are no pages that use this file.