フィルターのクリア

Finding the relationship between three columns

1 回表示 (過去 30 日間)
wesso Dadoyan
wesso Dadoyan 2017 年 6 月 7 日
コメント済み: wesso Dadoyan 2017 年 6 月 7 日
I have a data set (attached in zip) downloaded from a database. the first column(date)is the dates column, the second is the id of the firm (RSSD9001), the third is GTA which is the total assets in real term, the fourth(GTAnom) is the nominal total assets and the fifth (implGDPpricedefl) is the implicit GDP price deflator. The relationship between GTA and GTAnom should be theoretically as follows: GTA=GTAnom*(100/implGDPpricedefl); the results however don't match. Is it possible using matlab to find the relationship between GTA,GTAnom and implGDPpricedefl using this long series of data using any kind of solvers?

採用された回答

KSSV
KSSV 2017 年 6 月 7 日
編集済み: KSSV 2017 年 6 月 7 日
[num,txt,raw] = xlsread('Sample.csv') ;
gta = num(:,2) ;
gtanorm = num(:,3) ;
impl = num(:,4) ;
%%actual relation
lhs = gta ;
rhs = gtanorm*100./impl ;
%%Get factor
fac = gta.*impl./gtanorm ;
% fac = uniquetol(fac,0.1)
rhs1 = gtanorm*max(fac)./impl ;
%%plot
figure
hold on
plot(lhs,'.r') ;
plot(rhs,'.b') ;
plot(rhs1,'Ob') ;
legend({'GTA','old relation','Newrelation'})
Relation which is holding here is
GTA=GTAnom*108.6180/implGDPpricedefl);
  2 件のコメント
wesso Dadoyan
wesso Dadoyan 2017 年 6 月 7 日
I tried to run it on a longer dataset but i can't seem to generate this single number. can you please specify how it was generated?
wesso Dadoyan
wesso Dadoyan 2017 年 6 月 7 日
got it. it is the fac column

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFinancial Data Analytics についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by