0% found this document useful (0 votes)
4 views1 page

Dat Analysis 2

The document presents data analysis involving resistance, visibility, inside and outside temperatures, and humidity levels. It computes the Pearson correlation coefficients between resistance and visibility, temperature differential, and humidity differential, revealing a significant correlation between resistance and visibility (r = 0.565, p = 0.008). The other correlations with temperature and humidity differentials were not significant.

Uploaded by

FROILAN COLLADO
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Dat Analysis 2

The document presents data analysis involving resistance, visibility, inside and outside temperatures, and humidity levels. It computes the Pearson correlation coefficients between resistance and visibility, temperature differential, and humidity differential, revealing a significant correlation between resistance and visibility (r = 0.565, p = 0.008). The other correlations with temperature and humidity differentials were not significant.

Uploaded by

FROILAN COLLADO
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

% Example data (replace with your actual data)

resistance = [27100, 447, 378, 596, 410, 246, 75.8, 14500, 411, 403, 577,
894, 426, 296, 23300, 545, 595, 697, 526, 340, 65.3];
visibility = [10, 7, 2, 7, 6, 2, 1, 10, 7, 7, 8, 9, 5, 2, 10, 7, 7, 8, 6, 4,
1];
inside_temp = [28.9, 29.9, 30.2, 30.9, 31.2, 31.5, 31.4, 28.9, 29.0, 28.5,
29.9, 30.2, 30.2, 30.9, 31.0, 31.2, 31.5, 31.4, 28.4, 31.0, 29.2];
outside_temp = [21.7, 19.4, 21.5, 20.6, 21.2, 19.8, 22.2, 26.5, 27.2, 27.4,
28.2, 27.5, 26.7, 27.3, 24.2, 23.3, 24.4, 23.2, 22.6, 22.5, 21.8];
inside_humidity = [70.5, 71.8, 72.6, 71.5, 72.0, 75.3, 77.2, 66.9, 73.2,
74.0, 72.8, 70.5, 72.6, 77.9, 67.5, 68.5, 71.9, 68.8, 70.9, 72.9, 75.3];
outside_humidity = [76.3, 77.7, 78.3, 79.8, 78.1, 76.5, 76.8, 56.8, 57.5,
56.7, 53.3, 55.4, 52.5, 54.6, 78.8, 79.4, 80.3, 79.7, 78.2, 80.5, 81.3];

% Compute differentials
temp_diff = inside_temp - outside_temp;
humidity_diff = inside_humidity - outside_humidity;

% Pearson correlation coefficients


[r_res_vis, p_res_vis] = corr(resistance', visibility', 'Type', 'Pearson');
[r_res_tempdiff, p_res_tempdiff] = corr(resistance', temp_diff', 'Type',
'Pearson');
[r_res_humdiff, p_res_humdiff] = corr(resistance', humidity_diff', 'Type',
'Pearson');

% Display results
fprintf('Resistance vs. Visibility: r = %.3f, p = %.3f\n', r_res_vis,
p_res_vis);
fprintf('Resistance vs. Temp Differential: r = %.3f, p = %.3f\n',
r_res_tempdiff, p_res_tempdiff);
fprintf('Resistance vs. Humidity Differential: r = %.3f, p = %.3f\n',
r_res_humdiff, p_res_humdiff);

Resistance vs. Visibility: r = 0.565, p = 0.008


Resistance vs. Temp Differential: r = -0.066, p = 0.777
Resistance vs. Humidity Differential: r = -0.182, p = 0.430

Published with MATLAB® R2024b

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy