Statistical Analysis of ONGC Stock
收藏Mendeley Data2024-04-29 更新2024-06-26 收录
下载链接:
https://data.mendeley.com/datasets/c9nbg688tg
下载链接
链接失效反馈官方服务:
资源简介:
The provided data is sourced from a CSV file named 'ONGCprice.csv' and represents historical closing prices for a financial asset, likely the Oil and Natural Gas Corporation (ONGC) given the filename. The data is loaded into a DataFrame using the pandas library in Python for analysis and visualization. The first few rows of the DataFrame are displayed using the head() function to provide an initial glimpse into the dataset's structure and content. Summary statistics of the dataset are computed using the describe() function, which includes metrics such as count, mean, standard deviation, minimum, 25th percentile, median (50th percentile), 75th percentile, and maximum values for each numeric column in the DataFrame. These statistics offer insights into the central tendency, variability, and distribution of the closing prices over the given period. Additionally, specific calculations are performed on the closing price data: The average closing price is computed using the mean() function to determine the typical value of the asset over the observed period. The highest closing price is identified using the max() function, indicating the peak value reached by the asset during the period. The lowest closing price is determined using the min() function, representing the minimum value observed for the asset's closing price. Finally, a line plot of the closing prices is generated using the plot() function to visualize the trend and fluctuations in the asset's prices over time. The title of the plot is set as 'Closing Prices for ONGC' to provide context to the plotted data.
本数据集源自名为'ONGCprice.csv'的逗号分隔值(Comma-Separated Values, CSV)文件,收录了某金融资产的历史收盘价。结合文件名可推测,该资产对应印度石油天然气公司(Oil and Natural Gas Corporation, ONGC)的相关标的。我们使用Python的pandas库将数据加载至数据框(DataFrame)以开展分析与可视化工作,通过head()函数展示数据框的前几行以初步了解数据集的结构与内容。我们通过describe()函数计算数据集的汇总统计量,涵盖各数值列的计数、均值、标准差、最小值、25%分位数、中位数(50%分位数)、75%分位数及最大值,此类统计量可用于揭示观测期内收盘价的集中趋势、离散程度与分布特征。此外,我们还针对收盘价数据开展了专项计算:通过mean()函数计算平均收盘价以确定观测期内该资产的典型价值,通过max()函数识别最高收盘价,代表该资产在观测期内触及的峰值,通过min()函数确定最低收盘价,即观测期内该资产收盘价的最小值。最终,我们使用plot()函数生成收盘价折线图以可视化该资产价格随时间的变化趋势与波动情况,并将图表标题设为“ONGC收盘价”,为所绘制的数据提供清晰的上下文说明。
创建时间:
2024-04-25



