File:Critical correlation vs. sample size.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file(SVG file, nominally 723 × 405 pixels, file size: 20 KB)

Summary

Description
English: Critical values of Pearson's correlation coefficient that must be exceeded to be considered significantly nonzero at the 0.05 level.
Date
Source Own work
Author Muhali
SVG development
InfoField
 
The SVG code is valid.
 
This vector image was created with GNU Octave.

Matlab

alpha = 0.05 ;
n = 0:250 ;
rc = cor_crit(n, alpha) ;
plot(n, rc) ;
grid on ;
xlabel('sample size') ;
ylabel('critical correlation') ;
legend({'1-tailed' '2-tailed'}, 'box', 'off', 'location', 'northeast') ;
text(110, 0.9, '{\alpha = 0.05}') ;
print -dsvg cor_crit.svg

%% usage: rc = cor_crit (n, alpha)
%%
%% critical correlation values from sample size
function rc = cor_crit (n, alpha)

   df = n - 2 ;
   tc(1,:) = tinv(1-alpha, df) ;
   tc(2,:) = tinv(1-alpha/2, df) ;

   rc = tc ./ sqrt(df + tc.^2) ;

end

Source code
InfoField

SVG code

alpha = 0.05 ;
n = 0:250 ;
rc = cor_crit(n, alpha) ;
plot(n, rc) ;
grid on ;
xlabel('sample size') ;
ylabel('critical correlation') ;
legend({'1-tailed' '2-tailed'}, 'box', 'off', 'location', 'northeast') ;
text(110, 0.9, '{\alpha = 0.05}') ;
print -dsvg cor_crit.svg

%% usage: rc = cor_crit (n, alpha)
%%
%% critical correlation values from sample size
function rc = cor_crit (n, alpha)

   df = n - 2 ;
   tc(1,:) = tinv(1-alpha, df) ;
   tc(2,:) = tinv(1-alpha/2, df) ;

   rc = tc ./ sqrt(df + tc.^2) ;

end

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
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

6 June 2018

image/svg+xml

3ef96a9e0d6d091a24a01cd102d4fe5ec5e8decd

20,421 byte

405 pixel

723 pixel

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current21:43, 14 January 2024Thumbnail for version as of 21:43, 14 January 2024723 × 405 (20 KB)Olexa RiznykReverted to version as of 09:27, 23 July 2021 (UTC): https://svgtranslate.toolforge.org/ corrupts it
21:41, 14 January 2024Thumbnail for version as of 21:41, 14 January 2024723 × 405 (22 KB)Olexa RiznykFile uploaded using svgtranslate tool (https://svgtranslate.toolforge.org/). Added translation for uk.
09:27, 23 July 2021Thumbnail for version as of 09:27, 23 July 2021723 × 405 (20 KB)Muhaliadded 1-tailed
11:17, 6 June 2018Thumbnail for version as of 11:17, 6 June 2018535 × 383 (14 KB)MuhaliUser created page with UploadWizard
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Global file usage

The following other wikis use this file:

Metadata